summaryrefslogblamecommitdiff
path: root/user/mplayer/APKBUILD
blob: 4324b35657b3d12eacdc7fde3d504312af13efe4 (plain) (tree)
1
2
3
4
5
                                                         
               
        
















                                                                                                                                       

                                                                   

                                  



                                                                         
                               
                                         
                                        

                                    


            
                                      
                           
 
                                                                                                                                                                
# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=mplayer
pkgver=1.4
pkgrel=2
pkgdesc="Open-source media player and ripper"
url="https://mplayerhq.hu"
arch="all"
options="!check" # broken tests
license="LGPL-2.1+ AND GPL-2.0+ AND Expat AND (BSD-3-Clause OR LGPL-2.1+) AND ISC AND NTP AND (GPL-2.0+ OR LGPL-2.1+) AND BSD-2-Clause"
depends=""
makedepends="yasm ncurses-dev openssl-dev freetype-dev fribidi-dev

	alsa-lib-dev pulseaudio-dev

	libxv-dev libxinerama-dev sdl-dev libva-dev libvdpau-dev

	ffmpeg-dev libpng-dev libjpeg-turbo-dev libdvdread-dev libcdio-dev
	libvorbis-dev libmad-dev speex-dev libtheora-dev libogg-dev faad2-dev
	x264-dev libdvdnav-dev live-media-dev libdca-dev libcdio-paranoia-dev
	cdparanoia-dev libbluray-dev a52dec-dev
	"
subpackages="$pkgname-doc"
source="http://mplayerhq.hu/MPlayer/releases/MPlayer-$pkgver.tar.xz
	ldt.patch
	"
builddir="$srcdir/MPlayer-$pkgver"

build() {
	_extra_conf=""
	case $CTARGET_ARCH in
	pmmx) _extra_conf="--disable-sse2 --disable-sse4 --disable-qtx";;
	esac

	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--confdir=/etc/mplayer \
		--disable-ffmpeg_a \
		--enable-debug=3 \
		$_extra_conf
	make
}

package() {
	make DESTDIR="$pkgdir" install
	rm -r "$pkgdir/etc"
}

sha512sums="8ef71cad187d8c8f81c837279bd3a421b440c892d3347a667670b21c954007e35cf0d15828f0901f347b9c1b053e8da4bc7f0fb6de34382d1e463074923d7b34  MPlayer-1.4.tar.xz
07efeaf1294fb3f0a4d8dd9885641ee919c17e93e1ada505c825645e1f04d18f615fbd0318e0cc09231b67881b18847e853b434f5d8164bd3178ab220c4523df  ldt.patch"