[92791] trunk/dports/devel/boehmgc-devel/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sun May 6 21:35:04 PDT 2012


Revision: 92791
          https://trac.macports.org/changeset/92791
Author:   jeremyhu at macports.org
Date:     2012-05-06 21:35:04 -0700 (Sun, 06 May 2012)
Log Message:
-----------
boehmgc-devel: Multiple fixes, including +universal and build failures

Modified Paths:
--------------
    trunk/dports/devel/boehmgc-devel/Portfile

Modified: trunk/dports/devel/boehmgc-devel/Portfile
===================================================================
--- trunk/dports/devel/boehmgc-devel/Portfile	2012-05-07 04:16:10 UTC (rev 92790)
+++ trunk/dports/devel/boehmgc-devel/Portfile	2012-05-07 04:35:04 UTC (rev 92791)
@@ -1,49 +1,52 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
 PortSystem 1.0
+PortGroup  muniversal 1.0
 
 name		boehmgc-devel
+conflicts       boehmgc
 version		7.2alpha6
+revision        1
 categories	devel
-platforms	darwin
+license		Permissive
 maintainers	nomaintainer
-description	Boehm-Demers-Weiser conservative garbage collector (devel version)
+description	Boehm-Demers-Weiser conservative garbage collector
 long_description   The Boehm-Demers-Weiser conservative garbage collector \
 	           can be used as a garbage collecting replacement for C \
 		   malloc or C++ new. It is also used by a number of \
 		   programming language implementations that use C as \
 		   intermediate code.
-set d_name		gc
+set d_name      gc
 homepage        http://www.hpl.hp.com/personal/Hans_Boehm/${d_name}/
-
+platforms	darwin
 master_sites	${homepage}gc_source/
 distname	${d_name}-${version}
-checksums	md5 319d0b18cc4eb735c8038ece9df055e4 \
-			sha1 190fe36d73bc00205a50d01d31664e525ca70389 \
-			rmd160 a634c94992b8cc1fb6ba3a9ae1c7a5e83deb9823
-
+checksums           sha1    190fe36d73bc00205a50d01d31664e525ca70389 \
+                    rmd160  a634c94992b8cc1fb6ba3a9ae1c7a5e83deb9823 \
+                    sha256  ebf425b254773d565e1690287641ed177716a78e952c96fec917edbc64535c16
 configure.args  --with-threads=posix \
-				--enable-parallel-mark \
-				--enable-cplusplus
+		--enable-cplusplus
 
-test.run	yes
-test.target	check
+configure.cppflags-append -D_XOPEN_SOURCE=600 -D_DARWIN_C_SOURCE
 
-if {${configure.compiler} == "llvm-gcc-4.2"} {
-    configure.compiler clang
+variant redirect {
+	configure.args-append  --enable-redirect-malloc
 }
 
-post-destroot	{
-	system "mkdir -p ${destroot}${prefix}/include/gc"
-        system "cd ${worksrcpath} && install -m 444 \
-             include/gc.h ${destroot}${prefix}/include/gc"
+platform darwin 8 {
+	# Not needed to "force" ucontext.h on Tiger, and it actually
+	# forces POSIX sys/mman.h which breaks the build there because
+	# Tiger's sys/mman.h doesn't recognize _DARWIN_C_SOURCE
+	configure.cppflags-delete -D_XOPEN_SOURCE=600
 }
 
-variant redirect {
-	configure.args-append  --enable-redirect-malloc
+# This is now fixed in upstream svn and should be in the next release
+patchfiles asm.patch
+
+# <rdar://problem/11394255>
+if {[string match "*clang*" ${configure.compiler}]} {
+    configure.compiler llvm-gcc-4.2
 }
 
-platform darwin 10 {
-	configure.cflags-append -D_XOPEN_SOURCE
-}
+test.run	yes
+test.target	check
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120506/1143671b/attachment-0001.html>


More information about the macports-changes mailing list