aboutsummaryrefslogtreecommitdiffstats
path: root/community/mplayer
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-02-19 11:22:22 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-02-19 11:22:22 +0000
commit9b238bcbcecab322432ddb2058bba0154382bc2b (patch)
treee3ea99e0299398007feaf014f31cf92ba93c6798 /community/mplayer
parent024537d3f8634dad71486ce72a5bebcee7ecf5eb (diff)
downloadaports-9b238bcbcecab322432ddb2058bba0154382bc2b.tar.bz2
aports-9b238bcbcecab322432ddb2058bba0154382bc2b.tar.xz
community/mplayer: moved from main
Diffstat (limited to 'community/mplayer')
-rw-r--r--community/mplayer/APKBUILD82
-rw-r--r--community/mplayer/mplayer/configure.orig0
-rw-r--r--community/mplayer/mplayer/configure.rej10
-rw-r--r--community/mplayer/x11-libs.patch10
4 files changed, 102 insertions, 0 deletions
diff --git a/community/mplayer/APKBUILD b/community/mplayer/APKBUILD
new file mode 100644
index 0000000000..9fa5a0f359
--- /dev/null
+++ b/community/mplayer/APKBUILD
@@ -0,0 +1,82 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=mplayer
+pkgver=1.3.0
+_ver=${pkgver/_/}
+pkgrel=0
+pkgdesc="A movie player for linux"
+url="http://www.mplayerhq.hu/"
+arch="x86_64"
+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
+ mesa-dev yasm libpng-dev libvdpau-dev libvpx-dev libcdio-paranoia-dev"
+
+source="ftp://ftp1.mplayerhq.hu/MPlayer/releases/MPlayer-$pkgver.tar.xz
+ x11-libs.patch
+ "
+_builddir="$srcdir"/MPlayer-$_ver
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1 ;;
+ esac;
+ done
+}
+
+build() {
+ cd "$_builddir"
+
+ export GCC_SPECS=hardenednopie.specs
+ ./configure \
+ --prefix=/usr \
+ --disable-gui \
+ --disable-gif \
+ --disable-arts \
+ --enable-x11 \
+ --confdir=/etc/mplayer \
+ --disable-nas \
+ --enable-gl \
+ --disable-tv-v4l1 \
+ --enable-tv-v4l2 \
+ --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 -fno-PIC -fno-PIE" \
+ --extra-ldflags="-nopie" \
+ --disable-nemesi \
+ --enable-freetype \
+ --enable-xvmc \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ 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="e8a4d77ad4f509e81dd5e13b51636c1d MPlayer-1.3.0.tar.xz
+01bcc935a6b429347e8e77e1a70bf2b2 x11-libs.patch"
+sha256sums="3ad0846c92d89ab2e4e6fb83bf991ea677e7aa2ea775845814cbceb608b09843 MPlayer-1.3.0.tar.xz
+924ae52abeaad41e4d14c0af82d52a6d65985f3b1c77fa432ed04a5ccbc4c24c x11-libs.patch"
+sha512sums="10007e471a941f8a3dabf6149e6e44fc1a364a9ccb5cd08c670fc22560e5053a15f3249e9d3e18cdda06b6b7e77e537026b5d33dc356e928c63747d6ed73dbae MPlayer-1.3.0.tar.xz
+bba012c5a116cbc6715955a0a563c89a33a1d8ad3c44301a083ce65296ba9112a88a58e38c874d9347f9c3133054e62bd16d3b3367383f207ee40ddae105081c x11-libs.patch"
diff --git a/community/mplayer/mplayer/configure.orig b/community/mplayer/mplayer/configure.orig
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/community/mplayer/mplayer/configure.orig
diff --git a/community/mplayer/mplayer/configure.rej b/community/mplayer/mplayer/configure.rej
new file mode 100644
index 0000000000..c0d42f876f
--- /dev/null
+++ b/community/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"
diff --git a/community/mplayer/x11-libs.patch b/community/mplayer/x11-libs.patch
new file mode 100644
index 0000000000..4e6f8b5c17
--- /dev/null
+++ b/community/mplayer/x11-libs.patch
@@ -0,0 +1,10 @@
+--- ./configure.orig
++++ ./configure
+@@ -4394,6 +4394,7 @@
+ if test "$_x11" = yes ; then
+ def_x11='#define CONFIG_X11 1'
+ vomodules="x11 xover $vomodules"
++ libs_mplayer="$libs_mplayer -lX11 -lXext"
+ else
+ _x11=no
+ def_x11='#undef CONFIG_X11'