[30433] trunk/dports/sysutils/MacPorts/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Sat Oct 27 14:53:06 PDT 2007
Revision: 30433
http://trac.macosforge.org/projects/macports/changeset/30433
Author: sfiera at macports.org
Date: 2007-10-27 14:53:05 -0700 (Sat, 27 Oct 2007)
Log Message:
-----------
Build MacPorts universally on Leopard
Modified Paths:
--------------
trunk/dports/sysutils/MacPorts/Portfile
Modified: trunk/dports/sysutils/MacPorts/Portfile
===================================================================
--- trunk/dports/sysutils/MacPorts/Portfile 2007-10-27 20:55:50 UTC (rev 30432)
+++ trunk/dports/sysutils/MacPorts/Portfile 2007-10-27 21:53:05 UTC (rev 30433)
@@ -69,7 +69,7 @@
}
platform darwin 8 i386 {
- # Supply architecture flags to build MacPorts as fat on an Intel Mac
+ # Supply architecture flags to build MacPorts Universal on an Intel Mac
configure.cflags-append -arch ppc -arch i386
configure.args-append SHLIB_LDFLAGS='-arch ppc -arch i386'
}
@@ -84,6 +84,29 @@
}
}
+platform darwin 9 powerpc {
+ pre-configure {
+ set sdkrootpath /Developer/SDKs/MacOSX10.5.sdk
+ if {[file exists ${sdkrootpath}]} {
+ # User has Universal SDK installed.
+ set tclstubpath /System/Library/Frameworks/Tcl.framework/Versions/8.4/libtclstub8.4.a
+ if {![file exists ${sdkrootpath}${tclstubpath}]} {
+ ui_msg "Fixing your MacOSX10.5 installation by copying libtclstub8.4.a to ${sdkrootpath}${tclstubpath}"
+ xinstall -p ${tclstubpath} ${sdkrootpath}${tclstubpath}
+ }
+ # Supply architecture flags to build MacPorts Universal
+ configure.cflags-append -isysroot ${sdkrootpath} -arch ppc -arch i386
+ configure.env-append SHLIB_LDFLAGS='-Wl,-syslibroot,${sdkrootpath} -arch ppc -arch i386'
+ }
+ }
+}
+
+platform darwin 9 i386 {
+ # Supply architecture flags to build MacPorts Universal on an Intel Mac
+ configure.cflags-append -arch ppc -arch i386
+ configure.args-append SHLIB_LDFLAGS='-arch ppc -arch i386'
+}
+
destroot.keepdirs ${destroot}${prefix}/include \
${destroot}${prefix}/lib \
${destroot}${prefix}/libexec \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071027/e847c1cc/attachment.html
More information about the macports-changes
mailing list