#Packager: Maximus (maximuus[at]gmail[dot]com)

pkgname=plib
pkgver=1.8.5
pkgrel=1mb
source=(http://plib.sourceforge.net/dist/$pkgname-$pkgver.tar.gz)
sourcetemplate=http://people.salixos.org/maximus/$pkgname/$pkgver/
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://plib.sourceforge.net/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"plib (a Suite of Portable Game Libraries)"
"PLIB includes sound effects, music, a complete 3D engine, font"
"rendering, a simple Windowing library, a game scripting language, a"
"GUI, networking, 3D math library and a collection of handy utility"
"functions. All are 100% portable across nearly all modern computing"
"platforms. What's more, it's all available on line - and completely"
"free. Each library component is fairly independent of the others -"
"so if you want to use SDL, GTK, GLUT, or FLTK instead of" 
"PLIB's 'PW' windowing library, you can."
)


build() {	
	cd $startdir/src/$pkgname-$pkgver
	./configure \
	--prefix=/usr \
	--libdir=/usr/lib${LIBDIRSUFFIX} \
	--sysconfdir=/etc \
	--localstatedir=/var \
	--mandir=/usr/man \
	--build=$arch-slackware-linux

	make || return 1
	make install DESTDIR=$startdir/pkg
}