# Maintainer: PktSurf <smlinux@pktsurf.in>
app=fltk
version=1.3.4
build=1sml
homepage="https://www.fltk.org/"
download="https://www.fltk.org/pub/fltk/$version/fltk-$version-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"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf "$app-$version-2"

  tar xf $srcdir/$app-$version-2-source.tar.?z*
  cd "$app-$version-2"
  fixbuilddirpermissions
}

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

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