aboutsummaryrefslogtreecommitdiffstats
path: root/main/fltk/APKBUILD
blob: 2895c1d64674af5882a1d9df173c89133e4dc8e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=fltk
pkgver=1.3.4
pkgrel=0
pkgdesc="A cross-platform C++ GUI toolkit"
url="http://fltk.org"
arch="all"
license="GPL"
depends=""
depends_dev="libx11-dev libxext-dev libxft-dev mesa-dev"
makedepends="$depends_dev libpng-dev libjpeg-turbo-dev"
subpackages="$pkgname-doc $pkgname-dev $pkgname-fluid"
source="http://fltk.org/pub/fltk/$pkgver/$pkgname-$pkgver-source.tar.gz
	"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-shared \
		--enable-threads \
		--with-optim="$CXXFLAGS" \
		|| return 1
	make V=1 || return 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="c0e43ac259ac8c5d0f7634566e21e3f8  fltk-1.3.4-source.tar.gz"
sha256sums="c8ab01c4e860d53e11d40dc28f98d2fe9c85aaf6dbb5af50fd6e66afec3dc58f  fltk-1.3.4-source.tar.gz"
sha512sums="92c236e426ad9b2a2954a6fc401bc9bf4c4c46d47b08f8c9b879da6031ac158ef9b944f28a8bea64d18072d1af8ceaa09c00abebd745fb76dd628636424446c2  fltk-1.3.4-source.tar.gz"