# Contributor: ScrumpyJack # Maintainer: Natanael Copa pkgname=fltk pkgver=1.3.2 pkgrel=1 pkgdesc="A cross-platform C++ GUI toolkit" url="http://fltk.org" arch="all" license="GPL" depends="" depends_dev="libx11-dev libxext-dev libxft-dev" makedepends="$depends_dev libpng-dev libjpeg-turbo-dev" install="" subpackages="$pkgname-doc $pkgname-dev $pkgname-fluid" source="http://fltk.org/pub/fltk/$pkgver/$pkgname-$pkgver-source.tar.gz" _builddir=$srcdir/${pkgname}-${pkgver} prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --enable-shared \ --enable-threads \ --with-optim="$CXXFLAGS" \ || return 1 make V=1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 # remove static libs rm "$pkgdir"/usr/lib/*.a || return 1 } fluid() { pkgdesc="Fast Light User Interface Designer" depends= mkdir -p "$subpkgdir"/usr/ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } md5sums="9f7e707d4fb7a5a76f0f9b73ff70623d fltk-1.3.2-source.tar.gz" sha256sums="176044df94f31bd53a5806cf5054ca78b180bf9ae27ce47649608833695ee4a4 fltk-1.3.2-source.tar.gz" sha512sums="9372a34d8dfc4b4ece7632683c1c92f9ea9e538ba6eec08bec69615e2b2c885957d229a5ec495830f673b6a059f55a94b61727e8eb1fb7b3bd37005dc0b8312e fltk-1.3.2-source.tar.gz"