APP=fltk
VERSION=1.3.4
BUILD=1sml
HOMEPAGE="https://www.fltk.org/"
DOWNLOAD="https://www.fltk.org/pub/fltk/1.3.4/fltk-1.3.4-2-source.tar.bz2"
DESC="Graphical user interface toolkit for X"
REQUIRES="gcc-libs desktop-file-utils libjpeg-turbo libxcursor libxext fontconfig libxinerama glu shared-mime-info cairo"

build() {
  mkandenterbuilddir
  rm -rf "$APP-$VERSION-2"

  tar xf $SRCDIR/$APP-$VERSION-2-source.tar.?z*
  cd "$APP-$VERSION-2"
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --enable-shared \
    --enable-gl \
    --enable-largefile \
    --enable-threads \
    --enable-xinerama \
    --enable-xft \
    --enable-xdbe 

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  removestaticlibs

  mkfinalpkg
}

SHA512SUMS="
dabff7a1adea31a16b858f5d4360719099e70470b3acebd3e4b26f189bffae0d2f4ec910dab262deec3cef4dc652be435ebcb7ee9a9dca518780d9140a9f4ce6  fltk-1.3.4-2-source.tar.lz
"
