[45928] trunk/dports/devel/gmp/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Sun Jan 25 09:13:54 PST 2009


Revision: 45928
          http://trac.macports.org/changeset/45928
Author:   mcalhoun at macports.org
Date:     2009-01-25 09:13:54 -0800 (Sun, 25 Jan 2009)
Log Message:
-----------
gmp: Assume maintainership (with openmaintainer).
Use PortGroup muniversal 1.0 to build universal.

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

Modified: trunk/dports/devel/gmp/Portfile
===================================================================
--- trunk/dports/devel/gmp/Portfile	2009-01-25 17:05:39 UTC (rev 45927)
+++ trunk/dports/devel/gmp/Portfile	2009-01-25 17:13:54 UTC (rev 45928)
@@ -1,12 +1,14 @@
+# -*- 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            gmp
 version         4.2.4
 revision        1
 categories      devel math
-maintainers     nomaintainer
+maintainers     mcalhoun openmaintainer
 platforms       darwin
 description     GNU multiple precision arithmetic library
 long_description \
@@ -30,17 +32,41 @@
 use_bzip2       yes
 use_parallel_build yes
 
-configure.env   ABI=32
+if {![variant_isset universal]} {
+    configure.env   ABI=32
+}
 
 configure.args  --infodir=${prefix}/share/info \
                 --enable-cxx
 
-universal_variant   no
-
 test.run        yes
 test.cmd        make
 test.target     check
 
 platform powerpc {
-    configure.cflags-append -force_cpusubtype_ALL
+    if {![variant_isset universal]} {
+        configure.cflags-append -force_cpusubtype_ALL
+    }
 }
+
+# configure script expects to be able to run binaries
+if { ${os.arch}=="i386" } {
+    if { [llength ${universal_archs}] > 2 } {
+        # with only three architectues, the merge does not work
+        set universal_archs_supported  "i386 x86_64"
+    }
+} else {
+    set universal_archs_supported  "ppc ppc64"
+}
+
+array set merger_configure_env {
+    ppc     ABI=32
+    i386    ABI=32
+    ppc64   ABI=mode64
+    x86_64  ABI=64
+}
+
+array set merger_configure_cflags {
+    ppc     -force_cpusubtype_ALL
+    ppc64   -force_cpusubtype_ALL
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090125/7a936b6c/attachment.html>


More information about the macports-changes mailing list