summaryrefslogtreecommitdiff
path: root/pcr/libav/PKGBUILD
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-07-26 23:47:06 -0300
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-07-26 23:47:06 -0300
commit17472cfea93dc052a20c158bb834ca943a6b5991 (patch)
tree2c4d4b856bc7e0e34d24e5339e7978605df8d682 /pcr/libav/PKGBUILD
parentda08bbb8cbb9ee3c206ccdc04b8c5270ea22e642 (diff)
libav: updating pkg
Diffstat (limited to 'pcr/libav/PKGBUILD')
-rw-r--r--pcr/libav/PKGBUILD80
1 files changed, 41 insertions, 39 deletions
diff --git a/pcr/libav/PKGBUILD b/pcr/libav/PKGBUILD
index 782e12a15..4b92e0118 100644
--- a/pcr/libav/PKGBUILD
+++ b/pcr/libav/PKGBUILD
@@ -1,21 +1,18 @@
# Maintainer: Márcio Silva <coadde@lavabit.com>
-static=false
+_static=false # will be droped
+
_pkgname=libav
-if [[ $static == true ]] || [[ $static == 1 ]] || [[ $static == enable ]]; then
- pkgname=libav-static
- pkgflag=-static
- staticdesc=', with static library'
-elif [[ $static == false ]] || [[ $static == 0 ]] || [[ $static == disable ]]; then
- pkgname=libav
-fi
-pkgver=9.7
-pkgrel=1
-pkgdesc="Complete and free Internet live audio and video broadcasting solution for GNU/Linux$staticdesc"
+pkgname=$_pkgname
+[[ $_static == true ]] && pkgname=$_pkgname-static
+pkgver=9.8
+pkgrel=2
+pkgdesc="Complete and free Internet live audio and video broadcasting solution for GNU/Linux"
+[[ $_static == true ]] && pkgdesc="Complete and free Internet live audio and video broadcasting solution for GNU/Linux, with static library"
arch=(
- i686
- x86_64
mips64el
+ x86_64
+ i686
)
url=http://$_pkgname.org/
license=GPL3
@@ -46,19 +43,31 @@ makedepends=(
libvdpau
)
source=http://$_pkgname.org/releases/$_pkgname-$pkgver.tar.gz
-sha512sums=6a446e8dceb9ee4f1fb7a7d68d254086990bbcab5b1014598b21c75e0add22dab47c30a95bc3129835cc40a8d32de9c61fb267b2fa2aa9353dbbfc4b716767e4
+sha512sums=ef7c164fb29d365a236ead927e6355ca9191203dce86f0d0d8251f275ed5be4ab5e3f56a0c51384d7b9e83c3c3ef7ebdee95c9a7ac7b6520eaf25973a2bd20ae
build() {
cd $_pkgname-$pkgver
-
- [[ $static == false ]] && sttcv=disable || sttcv=enable
-
- setarch $CARCH ./configure\
- --prefix=/opt/$pkgname\
+ if [[ $CARCH == x86_64 ]]; then
+ _asm='--disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vis --disable-altivec\
+ --enable-amd3dnow --enable-mmx --enable-mmxext --enable-amd3dnow --enable-amd3dnowext --enable-sse --enable-sse2 --enable-sse3\
+ --enable-avx --enable-fma4 --enable-sse3 --enable-ssse3 --enable-sse4 --enable-sse42'
+ elif [[ $CARCH == i686 ]]; then
+ _asm='--disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vis --disable-altivec\
+ --enable-amd3dnow --enable-mmx --enable-mmxext --enable-amd3dnow --enable-amd3dnowext --enable-sse --enable-sse2 --enable-sse3\
+ --disable-avx --disable-fma4 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42'
+ else
+ _asm='--disable-asm'
+ fi
+ [[ $_static == false ]] && _stf='--disable-static'
+ ./configure\
+ $_asm $_stf\
+ --prefix=/usr\
+ --incdir=/usr/include/$pkgname\
+ --libdir=/usr/lib/$pkgname\
+ --shlibdir=/usr/lib/$pkgname\
+ --disable-avserver\
--disable-debug\
- --$sttcv-static\
--enable-avresample\
- --enable-avserver\
--enable-dxva2\
--enable-gpl\
--enable-libfreetype\
@@ -77,32 +86,25 @@ build() {
--enable-libvpx\
--enable-libx264\
--enable-libxvid\
+ --enable-pic\
--enable-runtime-cpudetect\
--enable-shared\
+ --enable-vdpau\
--enable-version3\
--enable-x11grab
- setarch $CARCH make
- setarch $CARCH make tools/qt-faststart
- setarch $CARCH make doc/av{conv,play,server}.1
+ make
+ make tools/qt-faststart
+ make doc/av{conv,play}.1 # doc/avserver.1
}
package() {
cd $_pkgname-$pkgver
- setarch $CARCH make DESTDIR=$pkgdir install install-man
- install -m755 -d $pkgdir/etc/ld.so.conf.d
- install -m755 -d $pkgdir/usr/bin
- install -m755 -d $pkgdir/usr/share/man/man1
- install -Dm755 tools/qt-faststart $pkgdir/opt/$pkgname/bin
- ln -s /opt/$pkgname/bin/avconv $pkgdir/usr/bin/avconv$pkgflag
- ln -s /opt/$pkgname/bin/avplay $pkgdir/usr/bin/avplay$pkgflag
- ln -s /opt/$pkgname/bin/avprobe $pkgdir/usr/bin/avprobe$pkgflag
- ln -s /opt/$pkgname/bin/avserver $pkgdir/usr/bin/avserver$pkgflag
- ln -s /opt/$pkgname/bin/qt-faststart $pkgdir/usr/bin/qt-faststart-$pkgname
- ln -s /opt/$pkgname/share/man/man1/avconv.1 $pkgdir/usr/share/man/man1/avconv$pkgflag.1
- ln -s /opt/$pkgname/share/man/man1/avplay.1 $pkgdir/usr/share/man/man1/avplay$pkgflag.1
- ln -s /opt/$pkgname/share/man/man1/avprobe.1 $pkgdir/usr/share/man/man1/avprobe$pkgflag.1
- ln -s /opt/$pkgname/share/man/man1/avserver.1 $pkgdir/usr/share/man/man1/avserver$pkgflag.1
- echo /opt/libav$pkgflag/lib > $pkgdir/etc/ld.so.conf.d/libav$pkgflag.conf
+
+ make DESTDIR=$pkgdir install install-man
+ install -dDm755 tools/qt-faststart $pkgdir/usr/bin/qt-faststart-$_pkgname
+
+ install -vd $pkgdir/etc/ld.so.conf.d
+ echo /usr/lib/$pkgname > $pkgdir/etc/ld.so.conf.d/$pkgname.conf
}
# vim:set ts=2 sw=2 et: