[26839] trunk/dports/sysutils/MacPorts/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Mon Jul 9 11:43:04 PDT 2007


Revision: 26839
          http://trac.macosforge.org/projects/macports/changeset/26839
Author:   jberry at macports.org
Date:     2007-07-09 11:43:03 -0700 (Mon, 09 Jul 2007)

Log Message:
-----------
Fix intel build of MacPorts port for 1.5

Modified Paths:
--------------
    trunk/dports/sysutils/MacPorts/Portfile

Modified: trunk/dports/sysutils/MacPorts/Portfile
===================================================================
--- trunk/dports/sysutils/MacPorts/Portfile	2007-07-09 18:17:19 UTC (rev 26838)
+++ trunk/dports/sysutils/MacPorts/Portfile	2007-07-09 18:43:03 UTC (rev 26839)
@@ -117,6 +117,13 @@
                         ${destroot}${prefix}/var/macports/distfiles \
                         ${destroot}${prefix}/var/macports/receipts
 
+
+# Some of MacPort's default flags don't play well when we're building
+# MacPorts itself: nuke them
+configure.cppflags
+configure.ldflags
+
+
 post-pkg {
 	set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
 	file copy -force -- ${filespath}/ReadMe.rtf ${resources}
@@ -155,14 +162,15 @@
 				 xinstall -p ${tclstubpath} ${sdkrootpath}${tclstubpath}
 			}
 			# Supply architecture flags to build MacPorts as fat
-                        configure.cflags-append -isysroot ${sdkrootpath} -arch ppc -arch i386
-                        configure.env-append SHLIB_LDFLAGS='-Wl,-syslibroot,${sdkrootpath} -arch ppc -arch i386'
+            configure.cflags-append -isysroot ${sdkrootpath} -arch ppc -arch i386
+            configure.env-append SHLIB_LDFLAGS='-Wl,-syslibroot,${sdkrootpath} -arch ppc -arch i386'
 		}
 	}
 }
 
+
 platform darwin 8 i386 {
 	# Supply architecture flags to build MacPorts as fat on an Intel Mac
 	configure.cflags-append -arch ppc -arch i386
-        configure.env-append SHLIB_LDFLAGS='-arch ppc -arch i386'
+    configure.args-append SHLIB_LDFLAGS='-arch ppc -arch i386'
 }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070709/078e1cd2/attachment.html


More information about the macports-changes mailing list