#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=mplayer2
pkgver=2.0
pkgrel=1gv
source=("http://ftp.mplayer2.org/pub/release/mplayer2-$pkgver.tar.xz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "authors" "copyright" "license")
url=http://www.mplayer2.org

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"mplayer2 (an advanced general-purpose video player)"
"mplayer2 is a fork of the original MPlayer project, it contains"
"significant further development and supports a number of features not"
"available in other Unix players."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure \
		--prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--confdir=/etc/mplayer \
		--disable-smb \
		--disable-ossaudio \
		--disable-jack \
		--disable-esd \
		--enable-runtime-cpudetection
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg

	# empty dir
	rmdir $startdir/pkg/usr/lib${LIBDIRSUFFIX}
}