### this file is sourced not run
PKGVER=1.3.4
PKGBUILD=1
PKGARCH=x86_64

# source: kirk (updated with post-8.0 BLFS 2017-03-05)
TARBALL=fltk-$PKGVER-source.tar.gz
MD5SUM=c0e43ac259ac8c5d0f7634566e21e3f8
SRC_URL=http://fltk.org/pub/fltk/$PKGVER/$TARBALL
BUNDLE=

SLACKREQ='libX11 libpng libjpeg-turbo cairo' # doxygen to build docs
SLACKDESC="fltk: fltk $PKGVER
fltk:  
fltk: The Fast Light Tool Kit (\"FLTK\", pronounced \"fulltick\") is a
fltk: a cross-platform C++ GUI toolkit. 
fltk: 
fltk: 
fltk: 
fltk: 
fltk: 
fltk: 
fltk:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CFLAGS="$CFLAGS -fPIC"
	CONFFLAGS="$CONFFLAGS --enable-shared --enable-cairo"
	
	cd /tmp/fltk* &&
	sed -i -e '/cat./d' documentation/Makefile 
	pkg_build_autoconf &&
	
	# extra docs
	make -C documentation html && # requires Doxygen
	make install && # repeat make to get docs installed this time
	make -C documentation install-linux &&
	#make -C test install-linux && # don't want the sample games, they're big
	rm -rf /usr/share/man/man6 && # remove sample game manuals

	pkg_build_slackdesc
}


