diff options
-rw-r--r-- | testing/fltk/APKBUILD | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/testing/fltk/APKBUILD b/testing/fltk/APKBUILD index 8fcdc0aada..0c48f45e79 100644 --- a/testing/fltk/APKBUILD +++ b/testing/fltk/APKBUILD @@ -1,17 +1,17 @@ # Contributor: ScrumpyJack <scrumpyjack@me.com> -# Maintainer: +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=fltk pkgver=1.3.2 -pkgrel=0 +pkgrel=1 pkgdesc="A cross-platform C++ GUI toolkit" url="http://fltk.org" arch="all" license="GPL" depends="" -depends_dev="libx11-dev" -makedepends="$depends_dev" +depends_dev="libx11-dev libxext-dev libxft-dev" +makedepends="$depends_dev libpng-dev libjpeg-turbo-dev" install="" -subpackages="$pkgname-doc" +subpackages="$pkgname-doc $pkgname-dev $pkgname-fluid" source="http://fltk.org/pub/fltk/$pkgver/$pkgname-$pkgver-source.tar.gz" _builddir=$srcdir/${pkgname}-${pkgver} @@ -27,13 +27,30 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr - make + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --enable-shared \ + --enable-threads \ + --with-optim="$CXXFLAGS" \ + || return 1 + make V=1 } + package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 + # remove static libs + rm "$pkgdir"/usr/lib/*.a || return 1 +} + +fluid() { + pkgdesc="Fast Light User Interface Designer" + depends= + mkdir -p "$subpkgdir"/usr/ + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } md5sums="9f7e707d4fb7a5a76f0f9b73ff70623d fltk-1.3.2-source.tar.gz" |