diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-10-10 09:23:56 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-10-10 09:23:56 +0000 |
commit | f182f901a2b76bd1664bfa73c18dfc165ad8010d (patch) | |
tree | b94e94992dcbb6a0b73ced92f52216b7a6c42516 /testing/fltk/APKBUILD | |
parent | 7133d61f1917177d5ee38862a62102f42e49acd5 (diff) | |
download | aports-f182f901a2b76bd1664bfa73c18dfc165ad8010d.tar.bz2 aports-f182f901a2b76bd1664bfa73c18dfc165ad8010d.tar.xz |
testing/fltk: split -dev and fluid subpackages, use system libs
Diffstat (limited to 'testing/fltk/APKBUILD')
-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" |