From ec670d6456a7dafcc71c560c12c57a4705b09e1b Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 16 Oct 2013 21:25:40 -0600 Subject: [PATCH] Convert boehm_gc to working recipe --- dev-libs/boehm_gc/boehm_gc-7.2d.recipe | 58 ++++++++++++++++++++++---- 1 file changed, 49 insertions(+), 9 deletions(-) diff --git a/dev-libs/boehm_gc/boehm_gc-7.2d.recipe b/dev-libs/boehm_gc/boehm_gc-7.2d.recipe index 194c705cb..f724e9412 100644 --- a/dev-libs/boehm_gc/boehm_gc-7.2d.recipe +++ b/dev-libs/boehm_gc/boehm_gc-7.2d.recipe @@ -1,31 +1,71 @@ -DESCRIPTION="The Boehm-Demers-Weiser conservative garbage collector" +SUMMARY="The Boehm-Demers-Weiser conservative garbage collector" +DESCRIPTION=" +The Boehm-Demers-Weiser conservative garbage collector can be used as +a garbage collecting replacement for C malloc or C++ new. It allows +you to allocate memory basically as you normally would, without +explicitly deallocating memory that is no longer useful. The collector +automatically recycles memory when it determines that it can no longer +be otherwise accessed." + HOMEPAGE="http://www.hpl.hp.com/personal/Hans_Boehm/gc/" SRC_URI="http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-7.2d.tar.gz" REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" +ARCHITECTURES="x86 x86_gcc2" CHECKSUM_MD5="91340b28c61753a789eb6077675d87d2" +SOURCE_DIR="gc-7.2" + +PATCHES="boehm_gc-7.2d.patch" + +PROVIDES=" + boehm_gc = $portVersion compat >= 7 + lib:libgc = $portVersion compat >= 7 + lib:libcord = $portVersion compat >= 7 + " + +REQUIRES=" + haiku >= $haikuVersion + " + +BUILD_REQUIRES="" + +BUILD_PREREQUIRES=" + haiku_devel >= $haikuVersion + cmd:libtoolize + cmd:autoconf + cmd:make + cmd:gcc + cmd:ld + " + +PROVIDES_devel=" + boehm_gc_devel = $portVersion compat >= 7 + devel:libgc = $portVersion compat >= 7 + devel:libcord = $portVersion compat >= 7 + " + +REQUIRES_devel=" + boehm_gc == $portVersion + " BUILD() { - cd gc-7.2 libtoolize --force --copy --install autoconf -f - ./configure --prefix=$(finddir B_COMMON_DIRECTORY) \ - --datadir=$(finddir B_COMMON_DOCUMENTATION_DIRECTORY) \ - --enable-threads=posix --enable-thread-local-alloc --enable-parallel-mark + runConfigure ./configure --enable-threads=posix \ + --enable-thread-local-alloc --enable-parallel-mark make } INSTALL() { - cd gc-7.2 make install + prepareInstalledDevelLibs libgc libcord + fixPkgconfig + packageEntries devel $developDir } TEST() { - cd gc-7.2 make check }