# Maintainer: Natanael Copa pkgname=mplayer pkgver=1.0_rc4_p20100612 _svnver=SVN-r30554 pkgrel=1 pkgdesc="A movie player for linux" url="http://www.mplayerhq.hu/" license="GPL" depends= subpackages="$pkgname-doc" makedepends="libxxf86dga-dev libxv-dev libmad-dev lame-dev libao-dev libtheora-dev xvidcore-dev zlib-dev sdl-dev freetype-dev x264-dev faac-dev ttf-dejavu libxvmc-dev alsa-lib-dev live-media-dev" # cdparanoia libcaca lirc-utils libgl-dev smbclient-dev # aalib-dev jack-audio-connection-kit libmng-dev libxss-dev source="http://dev.alpinelinux.org/distfiles/$pkgname-$pkgver.tar.bz2" build() { cd "$srcdir"/$pkgname-$pkgver sed -i "s/UNKNOWN/$_svnver/" version.sh export GCC_SPECS=/usr/share/gcc/hardenednopie.specs ./configure --prefix=/usr \ --disable-gui \ --disable-gif \ --disable-arts \ --enable-x11 \ --enable-runtime-cpudetection \ --confdir=/etc/mplayer \ --disable-nas \ --disable-gl \ --enable-tv-v4l1 \ --enable-tv-v4l2 \ --enable-largefiles \ --disable-liblzo \ --disable-speex \ --disable-openal \ --disable-fribidi \ --disable-libdv \ --disable-musepack \ --language=all\ --disable-esd \ --disable-mga \ --disable-lirc \ --enable-debug \ --enable-radio \ --enable-radio-capture \ --extra-cflags="-I/usr/lib/live-media -O2" \ --disable-nemesi \ --enable-freetype \ --enable-xvmc \ || return 1 make || return 1 } package() { cd "$srcdir"/$pkgname-$pkgver make -j1 DESTDIR="$pkgdir" install || return 1 install -Dm644 etc/codecs.conf etc/input.conf etc/example.conf \ "$pkgdir"/etc/mplayer/ || return 1 install -dm755 "$pkgdir"/usr/share/mplayer/ ln -s /usr/share/fonts/TTF/DejaVuSans.ttf \ "$pkgdir"/usr/share/mplayer/subfont.ttf || return 1 rm -rf "$pkgdir"/usr/share/mplayer/font } md5sums="9b2cf68e1f2a20dec54fc6cb22f7e025 mplayer-1.0_rc4_p20100612.tar.bz2"