aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fltk/APKBUILD
blob: 0c48f45e79c34bcfbfab654731288a15a2820828 (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
50
51
52
53
54
55
56
57
58
# Contributor: ScrumpyJack <scrumpyjack@me.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fltk
pkgver=1.3.2
pkgrel=1
pkgdesc="A cross-platform C++ GUI toolkit"
url="http://fltk.org"
arch="all"
license="GPL"
depends=""
depends_dev="libx11-dev libxext-dev libxft-dev"
makedepends="$depends_dev libpng-dev libjpeg-turbo-dev"
install=""
subpackages="$pkgname-doc $pkgname-dev $pkgname-fluid"
source="http://fltk.org/pub/fltk/$pkgver/$pkgname-$pkgver-source.tar.gz"

_builddir=$srcdir/${pkgname}-${pkgver}
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./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"
sha256sums="176044df94f31bd53a5806cf5054ca78b180bf9ae27ce47649608833695ee4a4  fltk-1.3.2-source.tar.gz"
sha512sums="9372a34d8dfc4b4ece7632683c1c92f9ea9e538ba6eec08bec69615e2b2c885957d229a5ec495830f673b6a059f55a94b61727e8eb1fb7b3bd37005dc0b8312e  fltk-1.3.2-source.tar.gz"