diff options
Diffstat (limited to 'libre/mplayer-libre/PKGBUILD')
-rw-r--r-- | libre/mplayer-libre/PKGBUILD | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/libre/mplayer-libre/PKGBUILD b/libre/mplayer-libre/PKGBUILD new file mode 100644 index 000000000..61c96f190 --- /dev/null +++ b/libre/mplayer-libre/PKGBUILD @@ -0,0 +1,59 @@ +# $Id$ +# Maintainer : Ionut Biru <ibiru@archlinux.org> +# Contributor: Hugo Doria <hugo@archlinux.org> +# Maintainer for Parabola GNU/Linux: Omar Botta <omarbotta@gnulinuxlibre.net> + +pkgname=mplayer-libre +pkgver=33159 +pkgrel=1 +pkgdesc="A movie player for linux. Libre version without faac." +arch=('i686' 'x86_64') +depends=('libxxf86dga' 'libxxf86vm' 'libmad' 'cdparanoia' 'libxinerama' 'sdl' 'lame' 'libtheora' 'xvidcore' 'libmng' 'libxss' + 'libgl' 'smbclient' 'aalib' 'jack' 'libcaca' 'x264' 'lirc-utils' 'ttf-dejavu' 'libxvmc' 'enca' 'libvdpau' + 'opencore-amr' 'libdca' 'a52dec' 'schroedinger' 'libvpx' 'libpulse' 'speex' 'fribidi' 'desktop-file-utils') +license=('GPL') +url="http://www.mplayerhq.hu/" +makedepends=('unzip' 'mesa' 'live-media' 'yasm' 'git') +backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf') +source=(ftp://ftp.archlinux.org/other/${pkgname%-libre}/${pkgname%-libre}-${pkgver}.tar.xz mplayer.desktop mplayer.png) +provides=("mplayer=$pkgver") +conflicts=('mplayer') +replaces=("mplayer=$pkgver") +md5sums=('caedcdc1e50b5575c38c2a85f9c53afc' + '647b9f4ab5284a7fef3f84f992214e77' + 'd00874ccc644b7f43d6ef1c942fcef28') + +build() { + # Custom CFLAGS break the mplayer build + unset CFLAGS LDFLAGS + + cd ${srcdir}/${pkgname%-libre} + + ./configure --prefix=/usr \ + --enable-runtime-cpudetection \ + --disable-gui \ + --disable-arts \ + --disable-liblzo \ + --enable-speex \ + --disable-openal \ + --disable-libdv \ + --disable-musepack \ + --disable-esd \ + --disable-mga \ + --disable-faac \ + --enable-xvmc \ + --language=all \ + --confdir=/etc/mplayer + + [ "$CARCH" = "i686" ] && sed 's|-march=i486|-march=i686|g' -i config.mak + + make + make -j1 DESTDIR=${pkgdir} install + install -Dm644 etc/{codecs.conf,input.conf,example.conf} ${pkgdir}/etc/mplayer/ + install -dm755 ${pkgdir}/usr/share/mplayer/ + ln -s /usr/share/fonts/TTF/DejaVuSans.ttf ${pkgdir}/usr/share/mplayer/subfont.ttf + rm -rf ${pkgdir}/usr/share/mplayer/font + #desktop file FS#14770 + install -Dm644 ${srcdir}/mplayer.desktop ${pkgdir}/usr/share/applications/mplayer.desktop + install -Dm644 ${srcdir}/mplayer.png ${pkgdir}/usr/share/pixmaps/mplayer.png +} |