# Contributor: Chase Rayfield

pkgname=fltk
pkgver=1.3.0
pkgrel=1
license=('custom:LGPL')
url="http://www.fltk.org/"
makedepends=('libjpeg' 'libpng' 'libxfont' 'hicolor-icon-theme')
source=(http://ftp.easysw.com/pub/$pkgbase/$pkgver/$pkgbase-$pkgver-source.tar.gz)
md5sums=('44d5d7ba06afdd36ea17da6b4b703ca3')

build() {
  cd "$srcdir/$pkgbase-$pkgver"
  ./configure --prefix=/usr --enable-threads --enable-xft --disable-gl --disable-xinerama \
  --enable-shared --disable-static --disable-localjpeg --disable-localzlib --disable-localpng \
  --disable-largefile --host=$CHOST --build=$CHOST

  make
  make DESTDIR="$pkgdir" install
  #(cd fluid; make DESTDIR="$pkgdir" install install-linux)
  #chmod 644 "$pkgdir"/usr/lib/*.a
  rm -f "$pkgdir"/usr/lib/*.a
  rm -f "$pkgdir"/usr/bin/fluid
  rm -f "$pkgdir"/usr/share/man/cat1/fluid*
  rm -f "$pkgdir"/usr/share/man/man1/fluid*
}