summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-25 00:36:32 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-25 00:36:32 -0500
commita4418a8ff0218e50df62db514d05a7cbeda5550b (patch)
tree20a1877fbf5d2e09163d37c24c72c53e6fdb5cd6 /user
parent59bf995df5593ba620f10a1ab2815f8947620cca (diff)
downloadpackages-a4418a8ff0218e50df62db514d05a7cbeda5550b.tar.gz
packages-a4418a8ff0218e50df62db514d05a7cbeda5550b.tar.bz2
packages-a4418a8ff0218e50df62db514d05a7cbeda5550b.tar.xz
packages-a4418a8ff0218e50df62db514d05a7cbeda5550b.zip
user/fltk: pull in, modernise
Diffstat (limited to 'user')
-rw-r--r--user/fltk/APKBUILD45
1 files changed, 45 insertions, 0 deletions
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 <scrumpyjack@st.ilet.to>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+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"