blob: 1778d509492d839125b17d60892fc8afa28efa2a (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gc
pkgver=7.4.0
pkgrel=0
pkgdesc="A garbage collector for C and C++"
url="http://www.hpl.hp.com/personal/Hans_Boehm/gc/"
arch="all"
license="GPL"
depends=
makedepends='libatomic_ops-dev'
subpackages="$pkgname-dev $pkgname-doc libgc++:libgccpp"
source="http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-$pkgver.tar.gz
fix-boehm-gc.patch
"
_builddir="$srcdir"/gc-${pkgver%[a-z]}
prepare() {
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"
[ "$CLIBC" == "musl" ] && export CFLAGS="$CFLAGS -D_GNU_SOURCE -DNO_GETCONTEXT -DUSE_MMAP"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--datadir=/usr/share/doc/gc \
--enable-cplusplus \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la
}
libgccpp() {
install -d "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libgccpp.* "$subpkgdir"/usr/lib/
}
md5sums="f40d9a47c90d60791eeecb484f8df5ee gc-7.4.0.tar.gz
2580315e6df59bb167b8292c351f82f5 fix-boehm-gc.patch"
sha256sums="61f8fc6991f8cb003a0d3c7d251c5b9a76093615ef793e0c588a4661e0b5e283 gc-7.4.0.tar.gz
da9ffdb4e7abc3deaaa19ef9de118311a8cf67268df36085c80412b1a60307d1 fix-boehm-gc.patch"
sha512sums="7421dddd963a4eeb3d0c2efd486dcf842793e81385c9a87c38265137626822566c98920d9d6a9423c1dbeb067fd7fe8aeeead2d7bb7083f6056b6288410e1032 gc-7.4.0.tar.gz
f2b533f0a96dabf8ed33316c393ea2878cb3968879e50155c71fbb50bf0cad3fe08836847dcc5c2bc32ad2dae64b8607bf92fa863224e3ca407ef62d61b663bb fix-boehm-gc.patch"
|