[89985] trunk/dports/x11/kinput2/Portfile

takanori at macports.org takanori at macports.org
Sat Feb 18 05:24:01 PST 2012


Revision: 89985
          http://trac.macports.org/changeset/89985
Author:   takanori at macports.org
Date:     2012-02-18 05:23:58 -0800 (Sat, 18 Feb 2012)
Log Message:
-----------
kinput2:
 - use llvm-gcc-4.2 instead of clang
 - declare IMAKECPP explicitly before calling xmkmf to avoid build error (see also: r89983)

Revision Links:
--------------
    http://trac.macports.org/changeset/89983

Modified Paths:
--------------
    trunk/dports/x11/kinput2/Portfile

Modified: trunk/dports/x11/kinput2/Portfile
===================================================================
--- trunk/dports/x11/kinput2/Portfile	2012-02-18 12:38:51 UTC (rev 89984)
+++ trunk/dports/x11/kinput2/Portfile	2012-02-18 13:23:58 UTC (rev 89985)
@@ -47,10 +47,22 @@
     close ${fd}
 }
 
-use_xmkmf       yes
+#use_xmkmf      yes
+depends_build   port:imake
 
+# https://trac.macports.org/ticket/31504
+if {${configure.compiler} == "clang"} { 
+    configure.compiler llvm-gcc-4.2 
+}
+
+configure {
+    # IMAKECPP should be set explicitly before calling xmkmf.
+    system "cd ${worksrcpath} && IMAKECPP=${configure.cpp} xmkmf"
+}
+
 pre-build {
-    system "cd ${worksrcpath} && make Makefiles PREFIX=${prefix}"
+    # IMAKECPP should be declared here too.
+    system "cd ${worksrcpath} && IMAKECPP=${configure.cpp} make Makefiles PREFIX=${prefix}"
     system "cd ${worksrcpath} && make depend PREFIX=${prefix}"
 
     build.target {}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120218/1dc30d8e/attachment-0001.html>


More information about the macports-changes mailing list