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

pkgname=smpeg
pkgver=r398
pkgrel=1rl
source=("smpeg-$pkgver.tar.gz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://icculus.org/smpeg/
options=('nosrcpack')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"smpeg (an mpeg decoding library)"
"smpeg is an mpeg decoding library, which runs on just about any"
"platform. It comes with a sample decoder, plaympeg (console, no UI)"
)


build() {
	cd $startdir/src/$pkgname
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-gtk-player --build=$arch-slackware-linux
	make || return 1
	make install DESTDIR=$startdir/pkg

	# we don't need the static lib
	rm $startdir/pkg/usr/lib${LIBDIRSUFFIX}/libsmpeg.a
}