diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-19 06:21:19 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-19 06:21:19 +0000 |
commit | 169ec9a981e04031a3f5636bff971f466beda82f (patch) | |
tree | e235eedbc7479db85706649f932b4dc5936ec1b0 /main/mplayer | |
parent | 6e48595b3aaa5fa73f67a4a161537cec7e3254a7 (diff) | |
download | aports-169ec9a981e04031a3f5636bff971f466beda82f.tar.bz2 aports-169ec9a981e04031a3f5636bff971f466beda82f.tar.xz |
main/mplayer: moved from testing
Diffstat (limited to 'main/mplayer')
-rw-r--r-- | main/mplayer/APKBUILD | 68 | ||||
-rw-r--r-- | main/mplayer/liba52_gcc_bug.patch | 10 | ||||
-rw-r--r-- | main/mplayer/mplayer/configure.orig | 0 | ||||
-rw-r--r-- | main/mplayer/mplayer/configure.rej | 10 |
4 files changed, 88 insertions, 0 deletions
diff --git a/main/mplayer/APKBUILD b/main/mplayer/APKBUILD new file mode 100644 index 0000000000..f5f1ae7bd0 --- /dev/null +++ b/main/mplayer/APKBUILD @@ -0,0 +1,68 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=mplayer +pkgver=1.0_rc4_p20100506 +_svnver=SVN-r30554 +pkgrel=5 +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://mirrors.kernel.org/gentoo/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="38126e7d1cf4044115a617dc331cddcc mplayer-1.0_rc4_p20100506.tar.bz2" diff --git a/main/mplayer/liba52_gcc_bug.patch b/main/mplayer/liba52_gcc_bug.patch new file mode 100644 index 0000000000..c0d42f876f --- /dev/null +++ b/main/mplayer/liba52_gcc_bug.patch @@ -0,0 +1,10 @@ +--- mplayer/configure.old 2009-04-16 12:02:10.000000000 +0200 ++++ mplayer/configure 2009-05-22 15:23:38.000000000 +0200 +@@ -6410,6 +6410,7 @@ + def_liba52='#undef CONFIG_LIBA52' + def_liba52_internal="#undef CONFIG_LIBA52_INTERNAL" + if test "$_liba52_internal" = yes ; then ++ test "$cc_vendor" = gnu && test "$cc_version" = 4.4.0 && CFLAGS=$(echo $CFLAGS|sed "s/ *-O4 */ -O2 /") + _liba52=yes + def_liba52_internal="#define CONFIG_LIBA52_INTERNAL 1" + _res_comment="internal" diff --git a/main/mplayer/mplayer/configure.orig b/main/mplayer/mplayer/configure.orig new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/main/mplayer/mplayer/configure.orig diff --git a/main/mplayer/mplayer/configure.rej b/main/mplayer/mplayer/configure.rej new file mode 100644 index 0000000000..c0d42f876f --- /dev/null +++ b/main/mplayer/mplayer/configure.rej @@ -0,0 +1,10 @@ +--- mplayer/configure.old 2009-04-16 12:02:10.000000000 +0200 ++++ mplayer/configure 2009-05-22 15:23:38.000000000 +0200 +@@ -6410,6 +6410,7 @@ + def_liba52='#undef CONFIG_LIBA52' + def_liba52_internal="#undef CONFIG_LIBA52_INTERNAL" + if test "$_liba52_internal" = yes ; then ++ test "$cc_vendor" = gnu && test "$cc_version" = 4.4.0 && CFLAGS=$(echo $CFLAGS|sed "s/ *-O4 */ -O2 /") + _liba52=yes + def_liba52_internal="#define CONFIG_LIBA52_INTERNAL 1" + _res_comment="internal" |