[102299] trunk/dports/lang/gprolog
jeremyhu at macports.org
jeremyhu at macports.org
Wed Jan 30 00:54:02 PST 2013
Revision: 102299
https://trac.macports.org/changeset/102299
Author: jeremyhu at macports.org
Date: 2013-01-30 00:54:02 -0800 (Wed, 30 Jan 2013)
Log Message:
-----------
gprolog: Use blacklisting of llvm compilers and fix a couple other build failures
Modified Paths:
--------------
trunk/dports/lang/gprolog/Portfile
Added Paths:
-----------
trunk/dports/lang/gprolog/files/
trunk/dports/lang/gprolog/files/cflags.patch
Modified: trunk/dports/lang/gprolog/Portfile
===================================================================
--- trunk/dports/lang/gprolog/Portfile 2013-01-30 08:48:17 UTC (rev 102298)
+++ trunk/dports/lang/gprolog/Portfile 2013-01-30 08:54:02 UTC (rev 102299)
@@ -33,17 +33,34 @@
worksrcdir ${name}-${version}/src
+use_parallel_build no
+
+patchfiles cflags.patch
+
+use_autoconf yes
+
configure.args \
--prefix=${destroot}${prefix} \
--with-install-dir=${prefix}/lib/${name}-${version} \
--with-examples-dir=${prefix}/share/${name}-${version} \
--with-doc-dir=${prefix}/share/${name}-${version}
-if {${configure.compiler} == "llvm-gcc-4.2"} {
- configure.compiler gcc-4.2
-} elseif {${configure.compiler} == "clang"} {
- depends_build-append port:apple-gcc42
- configure.compiler apple-gcc-4.2
+# https://trac.macports.org/ticket/30813
+compiler.blacklist-append clang macports-clang-2.9 macports-clang-3.0 macports-clang-3.1 macports-clang-3.2
+compiler.blacklist-append llvm-gcc-4.2 macports-llvm-gcc-4.2
+
+# TODO: base should do this: http://trac.macports.org/ticket/32542
+if {[info exists portconfigure::compiler_name_map(${configure.compiler})]} {
+ depends_build-append port:$portconfigure::compiler_name_map(${configure.compiler})
+
+ # base 2.1.x ignores the argument and just use ${configure.compiler}
+ if {[portconfigure::arch_flag_supported ${configure.compiler}]} {
+ depends_skip_archcheck-append $portconfigure::compiler_name_map(${configure.compiler})
+ }
+
+ if {[string match macports-gcc* ${configure.compiler}]} {
+ depends_lib-append port:$portconfigure::compiler_name_map(${configure.compiler})
+ }
}
post-destroot {
Added: trunk/dports/lang/gprolog/files/cflags.patch
===================================================================
--- trunk/dports/lang/gprolog/files/cflags.patch (rev 0)
+++ trunk/dports/lang/gprolog/files/cflags.patch 2013-01-30 08:54:02 UTC (rev 102299)
@@ -0,0 +1,19 @@
+--- configure.in.orig 2013-01-30 00:41:04.000000000 -0800
++++ configure.in 2013-01-30 00:41:54.000000000 -0800
+@@ -464,16 +464,13 @@ dnl -fomit-frame-pointer does not work o
+
+ CFLAGS_MACHINE=
+ case "$host" in
+- i*86*darwin1*) CFLAGS_MACHINE='-march=i686 -m32';;
+ mips*irix*) CFLAGS_MACHINE='-march=4000';;
+ *sparc*sunos4.1.3) CFLAGS_MACHINE='-msupersparc';;
+ *sparc*solaris) CFLAGS_MACHINE='-msupersparc';;
+ i686*) CFLAGS_MACHINE='-march=pentiumpro -m32';;
+ i586*) CFLAGS_MACHINE='-march=pentium -m32';;
+ i*86*) CFLAGS_MACHINE='-march=i486 -m32';;
+- powerpc*darwin*) CFLAGS_MACHINE='-mpowerpc -no-cpp-precomp';;
+ x86_64*solaris*) CFLAGS_MACHINE='-m64';;
+- x86_64*darwin*) CFLAGS_MACHINE='-march=x86-64 -m64';;
+ esac
+
+ case "$host" in
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130130/cb270038/attachment-0001.html>
More information about the macports-changes
mailing list