aboutsummaryrefslogtreecommitdiffstats
path: root/main/gc/APKBUILD
blob: 143ac78d13249fa9d365744e4bf6f8d5c305bd1a (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gc
pkgver=7.1
pkgrel=0
pkgdesc="A garbage collector for C and C++"
url="http://www.hpl.hp.com/personal/Hans_Boehm/gc/"
arch="x86 x86_64"
license="GPL"
depends=
makedepends=
subpackages="$pkgname-dev $pkgname-doc libgc++:libgccpp"
source="http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-$pkgver.tar.gz
	uclibc-getcontext.patch"

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	patch -p1 -i "$srcdir"/uclibc-getcontext.patch || return 1
}
	
build() {
	cd "$srcdir"/$pkgname-$pkgver
	./configure --prefix=/usr \
		--datadir=/usr/share/doc/gc \
		--enable-cplusplus || return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
}

libgccpp() {
	install -d "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libgccpp.* "$subpkgdir"/usr/lib/
}

md5sums="2ff9924c7249ef7f736ecfe6f08f3f9b  gc-7.1.tar.gz
bce75c75bf0cdb295ac0bf7ba0f6e267  uclibc-getcontext.patch"