#Maintainer: R S Ananda Murthy <rsamurti@gmail.com>

pkgname=fltk
pkgver=1.1.10
pkgrel=1am
arch=i486
source=("ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/fltk/$pkgver/$pkgname-$pkgver-source.tar.bz2")
sourcetemplate=http://people.salixos.org/rsamurti/$pkgname/
docs=("announcement" "changes" "copying" "credits" "readme")
url=http://www.fltk.org/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"fltk (C++ GUI toolkit)"
"FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit for"
"UNIX/Linux (X11), Microsoft Windows, and MacOS X. FLTK provides modern"
"GUI functionality without the bloat and supports 3D graphics via"
"OpenGL and its built-in GLUT emulation."
)

build() {
	# Compile & Install
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc \
				--enable-shared --enable-threads --mandir=/usr/man \
				--libdir=/usr/lib${LIBDIRSUFFIX}
	make || return 1
	make install DESTDIR=$startdir/pkg
	
	# Move doc files
	mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver
	mv $startdir/pkg/usr/share/doc/$pkgname/* $startdir/pkg/usr/doc/$pkgname-$pkgver
	rm -r $startdir/pkg/usr/share
}