[97817] trunk/dports/emulators/virtualbox/files/patch-configure.diff
royliu at macports.org
royliu at macports.org
Sun Sep 16 12:08:08 PDT 2012
Revision: 97817
http://trac.macports.org//changeset/97817
Author: royliu at macports.org
Date: 2012-09-16 12:08:08 -0700 (Sun, 16 Sep 2012)
Log Message:
-----------
virtualbox: fix the build process
Modified Paths:
--------------
trunk/dports/emulators/virtualbox/files/patch-configure.diff
Modified: trunk/dports/emulators/virtualbox/files/patch-configure.diff
===================================================================
--- trunk/dports/emulators/virtualbox/files/patch-configure.diff 2012-09-16 16:25:47 UTC (rev 97816)
+++ trunk/dports/emulators/virtualbox/files/patch-configure.diff 2012-09-16 19:08:08 UTC (rev 97817)
@@ -1,15 +1,28 @@
---- configure.orig 2012-08-26 19:51:10.000000000 +0200
-+++ configure 2012-08-26 19:58:47.000000000 +0200
-@@ -1961,13 +1961,20 @@
+--- configure.orig 2012-09-06 15:12:21.000000000 -0700
++++ configure 2012-09-06 15:47:11.000000000 -0700
+@@ -1950,8 +1950,8 @@
+ 12\.*)
+ darwin_ver="10.8" # Mountain Lion
+
+- if { test -d "/Developer/SDKs/MacOSX10.7.sdk"; } then
+- sdk="/Developer/SDKs/MacOSX10.7.sdk"
++ if { test -d "`xcode-select -print-path`/SDKs/MacOSX10.7.sdk"; } then
++ sdk="`xcode-select -print-path`/SDKs/MacOSX10.7.sdk"
+ else
+ sdk="`xcode-select -print-path`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"
+ fi
+@@ -1961,21 +1961,28 @@
11\.*)
darwin_ver="10.7" # Lion
+- if { test -d "/Developer/SDKs/MacOSX10.6.sdk"; } then
+- sdk="/Developer/SDKs/MacOSX10.6.sdk"
+- else
+ CXX_FLAGS="-mmacosx-version-min=10.6 -isysroot $sdk -Wl,-syslibroot,$sdk"
+
- if { test -d "/Developer/SDKs/MacOSX10.6.sdk"; } then
++ if { test -d "`xcode-select -print-path`/SDKs/MacOSX10.6.sdk"; } then
+ # Developer tools are not bundled in Xcode.app
- sdk="/Developer/SDKs/MacOSX10.6.sdk"
-- else
++ sdk="`xcode-select -print-path`/SDKs/MacOSX10.6.sdk"
+ elif { test -d "`xcode-select -print-path`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk"; } then
+ # Developer tools are in Xcode.app and there's 10.6 SDK
sdk="`xcode-select -print-path`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk"
@@ -24,3 +37,13 @@
;;
10\.*)
darwin_ver="10.6" # Snow Leopard
+
+ if [ "$BUILD_MACHINE" = "x86" ]; then
+
+- if { test -d "/Developer/SDKs/MacOSX10.5.sdk"; } then
+- sdk="/Developer/SDKs/MacOSX10.5.sdk"
++ if { test -d "`xcode-select -print-path`/SDKs/MacOSX10.5.sdk"; } then
++ sdk="`xcode-select -print-path`/SDKs/MacOSX10.5.sdk"
+ else
+ sdk="`xcode-select -print-path`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.5.sdk"
+ fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120916/30090ff7/attachment.html>
More information about the macports-changes
mailing list