aboutsummaryrefslogtreecommitdiffstats
path: root/main/gc/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-06-24 11:31:25 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-06-24 11:31:25 +0000
commit6186bbd0bd46751288a5e5568977ba1b39569d0e (patch)
treebbe7acfcf07e499e12e48967cf9c6c83cc4e7bdd /main/gc/APKBUILD
parentf74c1bad0726852da9905fde909a50f3f9037ee0 (diff)
downloadaports-6186bbd0bd46751288a5e5568977ba1b39569d0e.tar.bz2
aports-6186bbd0bd46751288a5e5568977ba1b39569d0e.tar.xz
main/gc: moved from testing
Diffstat (limited to 'main/gc/APKBUILD')
-rw-r--r--main/gc/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/main/gc/APKBUILD b/main/gc/APKBUILD
new file mode 100644
index 0000000000..065fba140b
--- /dev/null
+++ b/main/gc/APKBUILD
@@ -0,0 +1,38 @@
+# 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/"
+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"