[50653] trunk/dports/devel/libidl/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Tue May 5 21:57:54 PDT 2009


Revision: 50653
          http://trac.macports.org/changeset/50653
Author:   mcalhoun at macports.org
Date:     2009-05-05 21:57:53 -0700 (Tue, 05 May 2009)
Log Message:
-----------
libidl: Use muniversal PortGroup to build universal binaries.

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

Modified: trunk/dports/devel/libidl/Portfile
===================================================================
--- trunk/dports/devel/libidl/Portfile	2009-05-06 02:53:27 UTC (rev 50652)
+++ trunk/dports/devel/libidl/Portfile	2009-05-06 04:57:53 UTC (rev 50653)
@@ -2,6 +2,7 @@
 # $Id$
 
 PortSystem      1.0
+PortGroup       muniversal 1.0
 
 name            libidl
 set my_name     libIDL
@@ -37,6 +38,17 @@
                 port:libiconv \
                 port:gettext
 
+# Required when cross-compiling.
+if { ${os.arch}=="i386" } {
+    if { ${os.major} >= 10 } {
+        set merger_configure_env(ppc) libIDL_cv_long_long_format=ll
+    }
+    set merger_configure_env(ppc64)   libIDL_cv_long_long_format=ll
+} else {
+    set merger_configure_env(i386)    libIDL_cv_long_long_format=ll
+    set merger_configure_env(x86_64)  libIDL_cv_long_long_format=ll
+}
+
 livecheck.check regex
 livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/
 livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090505/649e7760/attachment.html>


More information about the macports-changes mailing list