From a4418a8ff0218e50df62db514d05a7cbeda5550b Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 25 Jul 2018 00:36:32 -0500 Subject: user/fltk: pull in, modernise --- user/fltk/APKBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 user/fltk/APKBUILD (limited to 'user/fltk/APKBUILD') diff --git a/user/fltk/APKBUILD b/user/fltk/APKBUILD new file mode 100644 index 000000000..8b8fa2faf --- /dev/null +++ b/user/fltk/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: ScrumpyJack +# Maintainer: ScrumpyJack +pkgname=fltk +pkgver=1.3.4 +pkgrel=1 +pkgdesc="Cross-platform C++ GUI toolkit" +url="http://www.fltk.org/" +arch="all" +options="!check" # No test suite. +license="LGPL-2.0-only WITH FLTK-exception" +depends="" +depends_dev="libx11-dev libxext-dev libxft-dev mesa-dev" +makedepends="$depends_dev libjpeg-turbo-dev libpng-dev libxinerama-dev" +subpackages="$pkgname-doc $pkgname-dev $pkgname-fluid" +source="http://fltk.org/pub/fltk/$pkgver/$pkgname-$pkgver-source.tar.gz + " + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --enable-shared \ + --enable-threads \ + --with-optim="$CXXFLAGS" + make V=1 +} + + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + # remove static libs + rm "$pkgdir"/usr/lib/*.a +} + +fluid() { + pkgdesc="Fast Light User Interface Designer" + depends= + mkdir -p "$subpkgdir"/usr/ + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ +} + +sha512sums="92c236e426ad9b2a2954a6fc401bc9bf4c4c46d47b08f8c9b879da6031ac158ef9b944f28a8bea64d18072d1af8ceaa09c00abebd745fb76dd628636424446c2 fltk-1.3.4-source.tar.gz" -- cgit v1.2.3-70-g09d2