diff options
Diffstat (limited to 'community/ffmpeg2theora')
-rw-r--r-- | community/ffmpeg2theora/PKGBUILD | 11 | ||||
-rw-r--r-- | community/ffmpeg2theora/ffmpeg2theora-0.29-underlinking.patch | 21 |
2 files changed, 28 insertions, 4 deletions
diff --git a/community/ffmpeg2theora/PKGBUILD b/community/ffmpeg2theora/PKGBUILD index db3c97bc3..a6d085088 100644 --- a/community/ffmpeg2theora/PKGBUILD +++ b/community/ffmpeg2theora/PKGBUILD @@ -1,23 +1,26 @@ -# $Id: PKGBUILD 94877 2013-08-01 06:54:51Z bpiotrowski $ +# $Id: PKGBUILD 108553 2014-03-28 15:46:53Z bpiotrowski $ # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> # Contributor: Eric Belanger <eric@archlinux.org> # Contributor: Angelo Theodorou <encelo@users.sourceforge.net> # Contributor: Alexander Rødseth <rodseth@gmail.com> pkgname=ffmpeg2theora pkgver=0.29 -pkgrel=4 +pkgrel=5 pkgdesc="Simple converter to create Ogg Theora files" arch=('x86_64' 'i686') url="http://www.v2v.cc/~j/ffmpeg2theora/" license=('GPL') depends=('ffmpeg') makedepends=('scons') # 'libkate') -source=("http://www.v2v.cc/~j/$pkgname/downloads/$pkgname-$pkgver.tar.bz2") -sha256sums=('214110e2a5afdd8ff8e0be18152e893dbff5dabc1ae1d1124e64d9f93eae946d') +source=("http://www.v2v.cc/~j/$pkgname/downloads/$pkgname-$pkgver.tar.bz2" + "ffmpeg2theora-0.29-underlinking.patch") +sha256sums=('214110e2a5afdd8ff8e0be18152e893dbff5dabc1ae1d1124e64d9f93eae946d' + '3b937c7e3a5afe327ee75e246ef606a747b8fb5880b43a864b3b9db4a245ef7f') prepare() { cd "$srcdir/$pkgname-$pkgver" echo "#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000" >> src/ffmpeg2theora.h + patch -p0 -i ../ffmpeg2theora-0.29-underlinking.patch } build() { diff --git a/community/ffmpeg2theora/ffmpeg2theora-0.29-underlinking.patch b/community/ffmpeg2theora/ffmpeg2theora-0.29-underlinking.patch new file mode 100644 index 000000000..dc8776039 --- /dev/null +++ b/community/ffmpeg2theora/ffmpeg2theora-0.29-underlinking.patch @@ -0,0 +1,21 @@ +For example, pow() from mathlib is used directly in src/ffmpeg2theora.c: + +<snip> +v = pow(v, g) * 255.0; // mplayer's vf_eq2.c multiplies with 256 here, strange... +</snip> + +For build failure and log, see Gentoo bug #504698 + +--- SConstruct ++++ SConstruct +@@ -206,9 +206,8 @@ + if env['crossmingw']: + env.Append(CCFLAGS=['-Wl,-subsystem,windows']) + env.Append(LIBS=['m']) +- elif env['static']: +- env.Append(LIBS=['m', 'dl']) + ++ env.Append(LIBS=['m', 'dl']) + + env = conf.Finish() + |