Commit d7fa5477 authored by Natanael Copa's avatar Natanael Copa

main/gc: upgrade to 7.2d

parent e043807b
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gc
pkgver=7.2
pkgrel=1
pkgver=7.2d
pkgrel=0
pkgdesc="A garbage collector for C and C++"
url="http://www.hpl.hp.com/personal/Hans_Boehm/gc/"
arch="all"
......@@ -10,11 +10,12 @@ 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
getcontext.patch
"
# getcontext.patch
_builddir="$srcdir"/gc-${pkgver%[a-z]}
prepare() {
cd "$srcdir"/$pkgname-$pkgver
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $; patch -p1 -i "$srcdir"/$i || return 1;;
......@@ -23,7 +24,7 @@ prepare() {
}
build() {
cd "$srcdir"/$pkgname-$pkgver
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -35,7 +36,7 @@ build() {
}
package() {
cd "$srcdir"/$pkgname-$pkgver
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la
}
......@@ -45,5 +46,6 @@ libgccpp() {
mv "$pkgdir"/usr/lib/libgccpp.* "$subpkgdir"/usr/lib/
}
md5sums="d17aecedef3d73e75387fb63558fa4eb gc-7.2.tar.gz
4f77dfa0098f982ce42dc1580d31bf47 getcontext.patch"
md5sums="91340b28c61753a789eb6077675d87d2 gc-7.2d.tar.gz"
sha256sums="d9fe0ae8650d43746a48bfb394cab01a319f3809cee19f8ebd16aa985b511c5e gc-7.2d.tar.gz"
sha512sums="5b342754a1efeef0cf78983b7a0e48a36495beac04fc881ab356b26dc153b343e940ec7af070f4fc875be44adc559f7be995919fe9229f68d2e0237cdbeaabcc gc-7.2d.tar.gz"
--- ./include/private/gcconfig.h.orig
+++ ./include/private/gcconfig.h
@@ -2483,6 +2483,7 @@
#if ((defined(UNIX_LIKE) && (defined(DARWIN) || defined(HURD) \
|| defined(OPENBSD) || defined(ARM32) \
|| defined(MIPS) || defined(AVR32))) \
+ || defined(__UCLIBC__) \
|| (defined(LINUX) && (defined(SPARC) || defined(M68K))) \
|| (defined(RTEMS) && defined(I386))) && !defined(NO_GETCONTEXT)
# define NO_GETCONTEXT
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment