aboutsummaryrefslogtreecommitdiffstats
path: root/main/mplayer
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-01-31 16:46:57 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-01-31 16:46:57 +0000
commita052a80be7fee48097d9c4f326e4456ec0514aef (patch)
treec9cdc15651f80e7c9d2f44d90e2b19bd70147aba /main/mplayer
parent356cbad7c367ceb0d3ac45d54bb7fce67c9b471d (diff)
downloadaports-a052a80be7fee48097d9c4f326e4456ec0514aef.tar.bz2
aports-a052a80be7fee48097d9c4f326e4456ec0514aef.tar.xz
main/mplayer: upgrade to 1.0_rc4
Diffstat (limited to 'main/mplayer')
-rw-r--r--main/mplayer/APKBUILD21
1 files changed, 11 insertions, 10 deletions
diff --git a/main/mplayer/APKBUILD b/main/mplayer/APKBUILD
index 19eee12d0e..39885550ba 100644
--- a/main/mplayer/APKBUILD
+++ b/main/mplayer/APKBUILD
@@ -1,8 +1,8 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mplayer
-pkgver=1.0_rc4_p20100612
-_svnver=SVN-r30554
-pkgrel=1
+pkgver=1.0_rc4
+_ver=${pkgver%_*}${pkgver#*_}
+pkgrel=0
pkgdesc="A movie player for linux"
url="http://www.mplayerhq.hu/"
arch="all"
@@ -11,16 +11,17 @@ 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"
+ x264-dev faac-dev ttf-dejavu libxvmc-dev alsa-lib-dev live-media-dev
+ mesa-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"
+source="http://www.mplayerhq.hu/MPlayer/releases/MPlayer-$_ver.tar.bz2"
+_builddir="$srcdir"/MPlayer-$_ver
build() {
- cd "$srcdir"/$pkgname-$pkgver
- sed -i "s/UNKNOWN/$_svnver/" version.sh
+ cd "$_builddir"
export GCC_SPECS=/usr/share/gcc/hardenednopie.specs
./configure --prefix=/usr \
@@ -31,7 +32,7 @@ build() {
--enable-runtime-cpudetection \
--confdir=/etc/mplayer \
--disable-nas \
- --disable-gl \
+ --enable-gl \
--enable-tv-v4l1 \
--enable-tv-v4l2 \
--enable-largefiles \
@@ -57,7 +58,7 @@ build() {
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ 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
@@ -66,4 +67,4 @@ package() {
"$pkgdir"/usr/share/mplayer/subfont.ttf || return 1
rm -rf "$pkgdir"/usr/share/mplayer/font
}
-md5sums="9b2cf68e1f2a20dec54fc6cb22f7e025 mplayer-1.0_rc4_p20100612.tar.bz2"
+md5sums="1699c94de39da9c4c5d34e8f58e418f0 MPlayer-1.0rc4.tar.bz2"