[128705] trunk/dports/lang/gambit-c/Portfile

jmr at macports.org jmr at macports.org
Tue Nov 25 19:06:14 PST 2014


Revision: 128705
          https://trac.macports.org/changeset/128705
Author:   jmr at macports.org
Date:     2014-11-25 19:06:14 -0800 (Tue, 25 Nov 2014)
Log Message:
-----------
gambit-c: build with gcc when possible and don't use --enable-single-host otherwise, following the configure script's advice (#46013)

Modified Paths:
--------------
    trunk/dports/lang/gambit-c/Portfile

Modified: trunk/dports/lang/gambit-c/Portfile
===================================================================
--- trunk/dports/lang/gambit-c/Portfile	2014-11-26 01:37:41 UTC (rev 128704)
+++ trunk/dports/lang/gambit-c/Portfile	2014-11-26 03:06:14 UTC (rev 128705)
@@ -36,11 +36,19 @@
 checksums           rmd160  446ed767c8d6889fc88b7b1ecb4c8c8221b28500 \
                     sha256  0af67b64d8948df3b94292195eefe40fefd554a437a903f83eac7ec096c94b8a
 
+# https://trac.macports.org/ticket/46013
+if {[vercmp $xcodeversion 6.0] < 0} {
+    compiler.blacklist *clang* *llvm-gcc-4.2
+}
+
 configure.args          --infodir=${prefix}/share/info \
                         --libdir=${prefix}/lib/gambit-c \
-                        --enable-single-host \
                         --docdir=${prefix}/share/doc
 
+if {[string match *gcc* ${configure.compiler}]} {
+    configure.args-append --enable-single-host
+}
+
 use_parallel_build      no
 # gsc conficts with a binary installed by Ghostscript. Recommended
 # option (based on mailing list posts from Arch Linux and FreeBSD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141125/ffe2991e/attachment.html>


More information about the macports-changes mailing list