aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-02-04 13:53:24 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-02-04 13:53:24 +0000
commit076377a0b54d95b1d37f2362811aa01ef135d700 (patch)
treed971416150190ddcac42803f3e5dda85a71521d3 /testing
parent53f078975d6c0ab137740eb66a2b19b83c4d7976 (diff)
downloadaports-076377a0b54d95b1d37f2362811aa01ef135d700.tar.bz2
aports-076377a0b54d95b1d37f2362811aa01ef135d700.tar.xz
testing/mplayer: new aport
A movie player for linux http://www.mplayerhq.hu/
Diffstat (limited to 'testing')
-rw-r--r--testing/mplayer/APKBUILD77
-rw-r--r--testing/mplayer/liba52_gcc_bug.patch10
-rw-r--r--testing/mplayer/mplayer/configure.orig0
-rw-r--r--testing/mplayer/mplayer/configure.rej10
4 files changed, 97 insertions, 0 deletions
diff --git a/testing/mplayer/APKBUILD b/testing/mplayer/APKBUILD
new file mode 100644
index 0000000000..1f12d9e0a6
--- /dev/null
+++ b/testing/mplayer/APKBUILD
@@ -0,0 +1,77 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=mplayer
+pkgver=1.0_rc4_p20091124
+_svnver=SVN-r29964
+pkgrel=0
+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"
+
+# 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.tbz2"
+
+unpack() {
+ default_unpack
+ cd "$srcdir"
+ for i in in $source; do
+ case $i in
+ *.tbz2) tar -jxf ${i##*/};;
+ esac
+ done
+}
+
+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="3ef3c9bdd85004f099552592a97f069c mplayer-1.0_rc4_p20091124.tbz2"
diff --git a/testing/mplayer/liba52_gcc_bug.patch b/testing/mplayer/liba52_gcc_bug.patch
new file mode 100644
index 0000000000..c0d42f876f
--- /dev/null
+++ b/testing/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/testing/mplayer/mplayer/configure.orig b/testing/mplayer/mplayer/configure.orig
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/testing/mplayer/mplayer/configure.orig
diff --git a/testing/mplayer/mplayer/configure.rej b/testing/mplayer/mplayer/configure.rej
new file mode 100644
index 0000000000..c0d42f876f
--- /dev/null
+++ b/testing/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"