Ticket #40786: patch
File patch, 27.3 KB (added by royliu@…, 11 years ago) |
---|
-
config/macports/emulators/virtualbox/Portfile
diff --git a/config/macports/emulators/virtualbox/Portfile b/config/macports/emulators/virtualbox/Portfile index 5a72adb..7f312c6 100644
a b 4 4 PortSystem 1.0 5 5 6 6 name virtualbox 7 version 4. 2.167 version 4.3.2 8 8 # Note: On virtualbox version changes please update the checksums of all 9 9 # subports, and update extension_pack_build to match the current build 10 10 # of the extension pack. 11 11 # Also remember to revision bump port ld64 12 set extension_pack_build 8699212 set extension_pack_build 90405 13 13 14 14 categories emulators 15 15 platforms darwin … … if {${name} == ${subport}} { 48 48 distname VirtualBox-${version} 49 49 use_bzip2 yes 50 50 51 checksums rmd160 a 49d044f6935199a71f6bdf94fd9082f9888d2d6\52 sha256 ff0f8916d039120554d9d73c7cae1863d6161933374374ec2f5313892046d45a51 checksums rmd160 a58adfc3845b8e2d9757ea5c22d4fe6e3acea007 \ 52 sha256 137ee464dcf3ec81fd74793022ecb53d7f4399682759e00cafd322b0dc92967e 53 53 54 54 depends_lib-append port:curl \ 55 55 port:libidl \ … … if {${name} == ${subport}} { 91 91 # This is the open source edition of VirtualBox. 92 92 worksrcdir VirtualBox-${version} 93 93 94 set kext_dir /Library/Extensions94 set kext_dir "/Library/Application Support/VirtualBox" 95 95 set startup_items_dir /Library/StartupItems 96 96 97 97 post-patch { 98 if {[vercmp $xcodeversion "4.4"] >= 0} { 99 set oldest_supported_SDK 10.7 98 if {[vercmp $xcodeversion "5.0"] >= 0} { 99 set oldest_supported_SDK 10.9 100 } elseif {[vercmp $xcodeversion "4.4"] >= 0} { 101 set oldest_supported_SDK 10.8 100 102 } elseif {[vercmp $xcodeversion "4.1"] >= 0} { 101 set oldest_supported_SDK 10. 6103 set oldest_supported_SDK 10.7 102 104 } else { 103 105 set oldest_supported_SDK "10.[expr [lindex [split ${macosx_deployment_target} "."] 1] - 1]" 104 106 } … … if {${name} == ${subport}} { 106 108 reinplace "s|@APPLICATIONS_DIR@|${applications_dir}|g" \ 107 109 ${worksrcpath}/LocalConfig.kmk 108 110 reinplace "s|@MACOSX_DEPLOYMENT_TARGET@|${oldest_supported_SDK}|g" \ 109 ${worksrcpath}/LocalConfig.kmk111 ${worksrcpath}/LocalConfig.kmk 110 112 reinplace "s|@KEXT_DIR@|${prefix}${kext_dir}|g" \ 111 ${worksrcpath}/src/VBox/Installer/darwin/VBox StartupItems/VirtualBox/VirtualBox113 ${worksrcpath}/src/VBox/Installer/darwin/VBoxKEXTs/VirtualBoxStartup.sh 112 114 113 115 if {[variant_isset vde2]} { 114 116 reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/include/VBox/VDEPlugSymDefs.h … … if {${name} == ${subport}} { 126 128 # Set the owner and group to root:wheel, which is required for kernel extensions 127 129 # and possibly startup items. 128 130 129 xinstall -m 755 -o root -g wheel -d ${destroot}${prefix}${kext_dir}131 xinstall -m 755 -o root -g wheel -d "${destroot}${prefix}${kext_dir}" 130 132 131 133 foreach kext [glob -- ${release_dir}/*.kext] { 132 copy ${kext} ${destroot}${prefix}${kext_dir}134 copy ${kext} "${destroot}${prefix}${kext_dir}" 133 135 } 134 136 135 137 xinstall -m 755 -o root -g wheel -d ${destroot}${prefix}${startup_items_dir} 136 copy ${worksrcpath}/src/VBox/Installer/darwin/VBox StartupItems/VirtualBox${destroot}${prefix}${startup_items_dir}138 copy ${worksrcpath}/src/VBox/Installer/darwin/VBoxKEXTs/VirtualBoxStartup.sh ${destroot}${prefix}${startup_items_dir} 137 139 138 140 # Create proxies for binaries bundled with VirtualBox.app. 139 141 … … subport virtualbox-guest-additions { 213 215 214 216 distfiles VBoxGuestAdditions_${version}.iso 215 217 216 checksums rmd160 335365fbe7406aa0a0d3c0b886f0330b611b6ece\217 sha256 cf2b0722da984a5f41a7814ee288262cbdf4c785630b2a7726c3daa6c5caa0c5218 checksums rmd160 7e2e7ef0ce626a4fb1c5ce91d8897925e80ac76c \ 219 sha256 f0b8fec99c65231641d5d01558abb53fe8b81f131dc71519cb7994c9e297300d 218 220 219 221 depends_run port:virtualbox 220 222 … … subport virtualbox-extension-pack { 270 272 271 273 distname ${name_extpack}-${version} 272 274 273 checksums rmd160 b41596eba7d8b402e0030eaa651898cacc8b1d3b\274 sha256 8f88b1ebe69b770103e9151bebf6681c5e049eb5fac45ae8d52c43440aa0fa0d275 checksums rmd160 4437f15de78ca75a5c54a094cb0674b7e1950e66 \ 276 sha256 c42f7ef2ac97138551f73db38180aa56f63dd44b3823156da470f7e9ee3dc8e5 275 277 276 278 worksrcdir ${name_extpack} 277 279 extract.suffix .vbox-extpack -
config/macports/emulators/virtualbox/files/patch-apple-gcc42.diff
diff --git a/config/macports/emulators/virtualbox/files/patch-apple-gcc42.diff b/config/macports/emulators/virtualbox/files/patch-apple-gcc42.diff index a99d1ca..fa7febc 100644
a b 1 1 --- Config.kmk.orig 2013-01-21 13:27:33.000000000 -0500 2 2 +++ Config.kmk 2013-01-21 13:27:33.000000000 -0500 3 @@ -19 16,10 +1916,8 @@3 @@ -1971,10 +1971,8 @@ 4 4 $(error VBox: 64-bit darwin builds require Xcode 3.2 or later, you have $(VBOX_XCODE_VERSION)) 5 5 endif 6 6 endif … … 77 77 TOOL_LLVMGXX42MACHO_OBJC ?= $(TOOL_LLVMGXX42MACHO_PREFIX)gcc$(TOOL_LLVMGXX42MACHO_SUFFIX) 78 78 --- src/libs/kStuff/kStuff/kLdr/kLdrModMachO.c.orig 2013-01-21 13:27:34.000000000 -0500 79 79 +++ src/libs/kStuff/kStuff/kLdr/kLdrModMachO.c 2013-01-21 13:27:34.000000000 -0500 80 @@ -9 67,6 +967,8 @@80 @@ -993,6 +993,8 @@ 81 81 } 82 82 83 83 case LC_DYSYMTAB: -
config/macports/emulators/virtualbox/files/patch-build.diff
diff --git a/config/macports/emulators/virtualbox/files/patch-build.diff b/config/macports/emulators/virtualbox/files/patch-build.diff index 1055ea2..e4d8fa2 100644
a b 1 --- Config.kmk.orig 201 2-06-20 08:07:42.000000000 -05002 +++ Config.kmk 201 2-08-19 05:22:48.000000000 -05003 @@ -11 51,7 +1151,7 @@1 --- Config.kmk.orig 2013-11-01 13:52:01.000000000 -0400 2 +++ Config.kmk 2013-11-03 23:31:15.000000000 -0500 3 @@ -1170,7 +1170,7 @@ 4 4 # of VirtualBox binaries. We request though that you always use something that 5 5 # clearly identifies your build and makes it clear that it is not one done by 6 6 # the VirtualBox team. … … 9 9 endif 10 10 11 11 # Keep in sync with G_virtualBoxPackage in glue-jaxws.xsl and glue-java.xsl 12 @@ -1 877,7 +1877,11 @@12 @@ -1932,7 +1932,11 @@ 13 13 endif 14 14 VBOX_PATH_MACOSX_SDK ?= $(VBOX_PATH_MACOSX_SDK_ROOT)/MacOSX$(VBOX_DEF_MACOSX_VERSION_MIN)u.sdk 15 15 else … … 22 22 endif 23 23 24 24 ## The Xcode version. 25 @@ - 1971,6 +1975,13 @@25 @@ -2030,6 +2034,13 @@ 26 26 endif 27 27 28 28 if1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.4 10.5 10.6) … … 36 36 VBOX_PATH_MACOSX_SDK_10_6 ?= $(VBOX_PATH_MACOSX_SDK_ROOT)/MacOSX10.6.sdk 37 37 VBOX_DARWIN_DEF_SDK_10_6_DEFS := MAC_OS_X_VERSION_MIN_REQUIRED=1060 MAC_OS_X_VERSION_MAX_ALLOWED=1060 38 38 VBOX_DARWIN_DEF_SDK_10_6_CFLAGS := -mmacosx-version-min=10.6 -isysroot $(VBOX_PATH_MACOSX_SDK_10_6) 39 @@ - 1989,7 +2000,7 @@39 @@ -2048,7 +2059,7 @@ 40 40 ifneq ($(wildcard $(VBOX_PATH_MACOSX_SDK_ROOT)/MacOSX10.7.sdk),) 41 41 VBOX_PATH_MACOSX_SDK_10_7 = $(VBOX_PATH_MACOSX_SDK_ROOT)/MacOSX10.7.sdk 42 42 else … … 45 45 endif 46 46 endif 47 47 VBOX_DARWIN_DEF_SDK_10_7_DEFS := MAC_OS_X_VERSION_MIN_REQUIRED=1070 MAC_OS_X_VERSION_MAX_ALLOWED=1070 48 @@ -2169,22 +2180,22 @@ 49 VBOX_GCC32_CHECK_CXX = $(2) 50 else 51 VBOX_GCC_CHECK_CC = $(shell \ 52 - if $(TOOL_$(VBOX_GCC_TOOL)_CC) $(subst -Wno-,-W,$(1)) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; \ 53 + if $(TOOL_$(VBOX_GCC_TOOL)_CC) $(subst -Wno-,-W,$(1)) -S -xc /dev/null > /dev/null 2>&1; \ 54 then echo "$(1)"; \ 55 else echo "$(2)"; fi; ) 48 @@ -2063,6 +2074,45 @@ 49 VBOX_DARWIN_DEF_SDK_10_7_LDFLAGS = $(error VBox: $(if $(target),$(target): ,)Using 10.7 SDK) 50 endif 56 51 57 VBOX_GCC_CHECK_CXX = $(shell \ 58 - if $(TOOL_$(VBOX_GCC_TOOL)_CXX) $(subst -Wno-,-W,$(1)) -S -o /dev/null -xc++ /dev/null > /dev/null 2>&1; \ 59 + if $(TOOL_$(VBOX_GCC_TOOL)_CXX) $(subst -Wno-,-W,$(1)) -S -xc++ /dev/null > /dev/null 2>&1; \ 60 then echo "$(1)"; \ 61 else echo "$(2)"; fi; ) 52 + if1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.4 10.5 10.6 10.7 10.8) 53 + ifndef VBOX_PATH_MACOSX_SDK_10_8 54 + ifneq ($(wildcard $(VBOX_PATH_MACOSX_SDK_ROOT)/MacOSX10.8.sdk),) 55 + VBOX_PATH_MACOSX_SDK_10_8 = $(VBOX_PATH_MACOSX_SDK_ROOT)/MacOSX10.8.sdk 56 + else 57 + VBOX_PATH_MACOSX_SDK_10_8 = $(shell xcode-select -print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk 58 + endif 59 + endif 60 + VBOX_DARWIN_DEF_SDK_10_8_DEFS := MAC_OS_X_VERSION_MIN_REQUIRED=1080 MAC_OS_X_VERSION_MAX_ALLOWED=1080 61 + VBOX_DARWIN_DEF_SDK_10_8_CFLAGS := -mmacosx-version-min=10.8 -isysroot $(VBOX_PATH_MACOSX_SDK_10_8) 62 + VBOX_DARWIN_DEF_SDK_10_8_CXXFLAGS := -mmacosx-version-min=10.8 -isysroot $(VBOX_PATH_MACOSX_SDK_10_8) 63 + VBOX_DARWIN_DEF_SDK_10_8_OBJCFLAGS := -mmacosx-version-min=10.8 -isysroot $(VBOX_PATH_MACOSX_SDK_10_8) 64 + VBOX_DARWIN_DEF_SDK_10_8_OBJCXXFLAGS := -mmacosx-version-min=10.8 -isysroot $(VBOX_PATH_MACOSX_SDK_10_8) 65 + VBOX_DARWIN_DEF_SDK_10_8_LDFLAGS := -mmacosx-version-min=10.8 -Wl,-syslibroot,$(VBOX_PATH_MACOSX_SDK_10_8) \ 66 + -Wl,-headerpad_max_install_names 67 + else 68 + VBOX_DARWIN_DEF_SDK_10_8_CXXFLAGS = $(error VBox: $(if $(target),$(target): ,)Using 10.8 SDK) 69 + VBOX_DARWIN_DEF_SDK_10_8_LDFLAGS = $(error VBox: $(if $(target),$(target): ,)Using 10.8 SDK) 70 + endif 71 + 72 + if1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.4 10.5 10.6 10.7 10.8 10.9) 73 + ifndef VBOX_PATH_MACOSX_SDK_10_9 74 + ifneq ($(wildcard $(VBOX_PATH_MACOSX_SDK_ROOT)/MacOSX10.9.sdk),) 75 + VBOX_PATH_MACOSX_SDK_10_9 = $(VBOX_PATH_MACOSX_SDK_ROOT)/MacOSX10.9.sdk 76 + else 77 + VBOX_PATH_MACOSX_SDK_10_9 = $(shell xcode-select -print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk 78 + endif 79 + endif 80 + VBOX_DARWIN_DEF_SDK_10_9_DEFS := MAC_OS_X_VERSION_MIN_REQUIRED=1090 MAC_OS_X_VERSION_MAX_ALLOWED=1090 81 + VBOX_DARWIN_DEF_SDK_10_9_CFLAGS := -mmacosx-version-min=10.9 -isysroot $(VBOX_PATH_MACOSX_SDK_10_9) 82 + VBOX_DARWIN_DEF_SDK_10_9_CXXFLAGS := -mmacosx-version-min=10.9 -isysroot $(VBOX_PATH_MACOSX_SDK_10_9) 83 + VBOX_DARWIN_DEF_SDK_10_9_OBJCFLAGS := -mmacosx-version-min=10.9 -isysroot $(VBOX_PATH_MACOSX_SDK_10_9) 84 + VBOX_DARWIN_DEF_SDK_10_9_OBJCXXFLAGS := -mmacosx-version-min=10.9 -isysroot $(VBOX_PATH_MACOSX_SDK_10_9) 85 + VBOX_DARWIN_DEF_SDK_10_9_LDFLAGS := -mmacosx-version-min=10.9 -Wl,-syslibroot,$(VBOX_PATH_MACOSX_SDK_10_9) \ 86 + -Wl,-headerpad_max_install_names 87 + else 88 + VBOX_DARWIN_DEF_SDK_10_9_CXXFLAGS = $(error VBox: $(if $(target),$(target): ,)Using 10.9 SDK) 89 + VBOX_DARWIN_DEF_SDK_10_9_LDFLAGS = $(error VBox: $(if $(target),$(target): ,)Using 10.9 SDK) 90 + endif 62 91 63 VBOX_GCC_CHECK_LD = $(shell \ 64 - if $(TOOL_$(VBOX_GCC_TOOL)_LD) -Wl,$(1) $(if $(eq $(KBUILD_HOST),darwin),-Wl$(COMMA)-u$(COMMA)start -Wl$(COMMA)-undefined$(COMMA)dynamic_lookup,) -nostdlib -o /dev/null -xc /dev/null > /dev/null 2>&1 ;\ 65 + if $(TOOL_$(VBOX_GCC_TOOL)_LD) -Wl,$(1) $(if $(eq $(KBUILD_HOST),darwin),-Wl$(COMMA)-u$(COMMA)start -Wl$(COMMA)-undefined$(COMMA)dynamic_lookup,) -nostdlib -xc /dev/null > /dev/null 2>&1 ;\ 66 then echo "-Wl,$(1)"; \ 67 else echo "$(2)"; fi; ) 92 endif # target=darwin 68 93 69 VBOX_GCC32_CHECK_CXX = $(shell \ 70 - if $(TOOL_$(VBOX_GCC32_TOOL)_CXX) $(1) -S -o /dev/null -xc++ /dev/null > /dev/null 2>&1; \ 71 + if $(TOOL_$(VBOX_GCC32_TOOL)_CXX) $(1) -S -xc++ /dev/null > /dev/null 2>&1; \ 72 then echo "$(1)"; \ 73 else echo "$(2)"; fi; ) 74 endif 75 @@ -4225,25 +4236,6 @@ 94 @@ -2227,12 +2238,12 @@ 95 VBOX_GCC32_CHECK_CXX = $(2) 96 else 97 VBOX_GCC_CHECK_EX_CC = $(shell \ 98 - if $(1) $(subst -Wno-,-W,$(2)) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi; ) 99 + if $(1) $(subst -Wno-,-W,$(2)) -S -xc /dev/null > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi; ) 100 VBOX_GCC_CHECK_EX_CXX = $(shell \ 101 - if $(1) $(subst -Wno-,-W,$(2)) -S -o /dev/null -xc++ /dev/null > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi; ) 102 + if $(1) $(subst -Wno-,-W,$(2)) -S -xc++ /dev/null > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi; ) 103 VBOX_GCC_CHECK_EX_LD = $(shell \ 104 if $(1) -Wl,$(2) $(if $(eq $(KBUILD_HOST),darwin),-Wl$(COMMA)-u$(COMMA)start -Wl$(COMMA)-undefined$(COMMA)dynamic_lookup,) \ 105 - -nostdlib -o /dev/null -xc /dev/null > /dev/null 2>&1; \ 106 + -nostdlib -xc /dev/null > /dev/null 2>&1; \ 107 then echo "-Wl,$(2)"; else echo "$(3)"; fi; ) 108 109 VBOX_GCC_CHECK_CC = $(call VBOX_GCC_CHECK_EX_CC, $(TOOL_$(VBOX_GCC_TOOL)_CC),$1,$2) 110 @@ -2296,7 +2307,7 @@ 111 if1of ($(KBUILD_HOST), win os2) 112 VBOX_YASM_CHECK = $(if-expr "$(shell $(TOOL_YASM_AS) -e -o nul $1 - < /dev/null 2>&1)" == "",$(1),) 113 else 114 - VBOX_YASM_CHECK = $(if-expr "$(shell $(TOOL_YASM_AS) -e -o /dev/null $1 - < /dev/null 2>&1)" == "",$(1),) 115 + VBOX_YASM_CHECK = $(if-expr "$(shell $(TOOL_YASM_AS) -e $1 - < /dev/null 2>&1)" == "",$(1),) 116 endif 117 else 118 VBOX_YASM_CHECK = 119 @@ -4521,25 +4532,6 @@ 76 120 # be cleaned up properly later some time (not important now). 77 121 # 78 122 ifeq ($(VBOX_PATH_QT4),) … … 112 156 +VBOX_WITH_TESTSUITE = 113 157 +VBOX_WITH_TESTCASES = 114 158 +kBuildGlobalDefaults_LD_DEBUG = 115 --- Makefile.kmk.orig 201 1-08-15 19:38:16.000000000 -0500116 +++ Makefile.kmk 201 1-08-15 19:38:16.000000000 -0500117 @@ -1 11,53 +111,6 @@159 --- Makefile.kmk.orig 2013-11-03 23:26:27.000000000 -0500 160 +++ Makefile.kmk 2013-11-03 23:42:16.000000000 -0500 161 @@ -122,53 +122,6 @@ 118 162 endif 119 163 120 164 # … … 164 208 -endif 165 209 - 166 210 - 167 -# Below we might need TOOL_ZIP_UNPACK (for the additions/docs/efifw packages168 # from the build server), and it's not really worth the effort of dragging in169 # this tool only if absolutely needed.170 # # @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...211 -# 212 # For building the combined package, just get the additions .ISO 213 # once for amd64 to prevent version inconsistences. In all other 214 # cases we get the .ISO per target architecture. 171 215 --- configure.orig 2011-08-15 19:38:16.000000000 -0500 172 216 +++ configure 2011-08-15 19:38:16.000000000 -0500 173 @@ -10 68,21 +1068,6 @@217 @@ -1077,21 +1077,6 @@ 174 218 check_sdl() 175 219 { 176 220 test_header SDL … … 192 236 if which_wrapper sdl-config > /dev/null; then 193 237 FLGSDL=`sdl-config --cflags` 194 238 INCSDL=`strip_I "$FLGSDL"` 195 @@ -1 091,7 +1076,6 @@239 @@ -1100,7 +1085,6 @@ 196 240 FLDSDL= 197 241 foundsdl=1 198 242 fi … … 200 244 [ "$OS" = "linux" -o "$OS" = "darwin" -o "$OS" = "solaris" ] && LIBSDLMAIN="" 201 245 if [ -n "$foundsdl" ]; then 202 246 cat > $ODIR.tmp_src.cc << EOF 203 @@ -14 39,53 +1423,20 @@247 @@ -1448,53 +1432,20 @@ 204 248 { 205 249 foundqt4= 206 250 test_header Qt4 … … 254 298 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \ 255 299 pkg-config QtCore --libs` 256 300 foundqt4=1 257 @@ -15 27,7 +1478,6 @@301 @@ -1536,7 +1487,6 @@ 258 302 fi 259 303 done 260 304 fi … … 262 306 if [ -n "$foundqt4" ]; then 263 307 cat > $ODIR.tmp_src.cc << EOF 264 308 #include <cstdio> 265 @@ -15 47,21 +1497,6 @@309 @@ -1556,21 +1506,6 @@ 266 310 [ -n "$INCQT4" ] && I_INCQT4=`prefix_I "$INCQT4"` 267 311 if test_compile "$LIBQT4 $LIBPTHREAD $I_INCQT4 $FLGQT4" qt4 qt4 nofatal; then 268 312 if test_execute_path "`strip_L "$LIBQT4"`"; then … … 284 328 # strip .../QtCore as we add components ourself 285 329 INCQT4=`echo "$INCQT4"|$KBUILD_SED 's|\([^ ]*\)/QtCore|\1|g; s| $||g'` 286 330 # store only the first path, remove all other pathes 287 @@ -16 07,7 +1542,6 @@331 @@ -1616,7 +1551,6 @@ 288 332 fi 289 333 fi 290 334 done … … 292 336 fi 293 337 else 294 338 log_failure "qt4 not working" 295 @@ -2 067,19 +2001,55@@339 @@ -2124,19 +2058,66 @@ 296 340 test_header "Darwin version" 297 341 darwin_ver=`uname -r` 298 342 case "$darwin_ver" in 343 + 13\.*) 344 + darwin_ver="10.9" # Mavericks 345 + 346 + if { test -d "`xcode-select -print-path`/SDKs/MacOSX10.8.sdk"; } then 347 + sdk="`xcode-select -print-path`/SDKs/MacOSX10.8.sdk" 348 + else 349 + sdk="`xcode-select -print-path`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk" 350 + fi 351 + 352 + CXX_FLAGS="-mmacosx-version-min=10.8 -isysroot $sdk -Wl,-syslibroot,$sdk" 353 + ;; 299 354 + 12\.*) 300 355 + darwin_ver="10.8" # Mountain Lion 301 356 + … … 352 407 CXX_FLAGS="-mmacosx-version-min=10.6 -isysroot $sdk -Wl,-syslibroot,$sdk" 353 408 fi 354 409 # test "$CC" = "gcc" && CC="gcc-4.0" 355 @@ -2 276,7 +2246,7 @@410 @@ -2357,7 +2327,7 @@ 356 411 --with-openssl-dir=*) 357 412 OPENSSLDIR=`echo $option | cut -d'=' -f2` 358 413 INCCRYPTO="-I${OPENSSLDIR}/include" … … 434 489 435 490 --- src/libs/xpcom18a4/Config.kmk.orig 2013-01-21 13:27:34.000000000 -0500 436 491 +++ src/libs/xpcom18a4/Config.kmk 2013-01-21 13:27:34.000000000 -0500 437 @@ -22 8,6 +228,7 @@492 @@ -223,6 +223,7 @@ 438 493 TEMPLATE_XPCOMOSX104_INCS.darwin = $(VBOX_PATH_MACOSX_SDK_10_4)/Developer/Headers/FlatCarbon 439 494 endif 440 495 … … 442 497 # 443 498 # Template for building VBoxPython against the Mac OS X 10.5 SDK. 444 499 # ASSUMES that the SDK bits are in the .darwin properties we're overriding below. 445 @@ -23 9,7 +240,9 @@500 @@ -234,7 +235,9 @@ 446 501 TEMPLATE_XPCOMOSX105_LDFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_LDFLAGS),$(TEMPLATE_XPCOM_LDFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_5_LDFLAGS) 447 502 TEMPLATE_XPCOMOSX105_DEFS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_DEFS),$(TEMPLATE_XPCOM_DEFS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_5_DEFS) 448 503 TEMPLATE_XPCOMOSX105_INCS.darwin = $(VBOX_PATH_MACOSX_SDK_10_5)/Developer/Headers/FlatCarbon … … 452 507 # 453 508 # Template for building VBoxPhython against the Mac OS X 10.6 SDK. 454 509 # ASSUMES that the SDK bits are in the .darwin properties we're overriding below. 455 @@ -2 51,7 +254,9 @@510 @@ -246,7 +249,9 @@ 456 511 TEMPLATE_XPCOMOSX106_LDFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_LDFLAGS),$(TEMPLATE_XPCOM_LDFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_6_LDFLAGS) 457 512 TEMPLATE_XPCOMOSX106_DEFS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_DEFS),$(TEMPLATE_XPCOM_DEFS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_6_DEFS) 458 513 TEMPLATE_XPCOMOSX106_INCS.darwin = $(VBOX_PATH_MACOSX_SDK_10_6)/Developer/Headers/FlatCarbon … … 462 517 # 463 518 # Template for building VBoxPhython against the Mac OS X 10.7 SDK. 464 519 # ASSUMES that the SDK bits are in the .darwin properties we're overriding below. 465 @@ -2 64,6 +269,7 @@520 @@ -259,6 +264,7 @@ 466 521 TEMPLATE_XPCOMOSX107_LDFLAGS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_LDFLAGS),$(TEMPLATE_XPCOM_LDFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_7_LDFLAGS) 467 522 TEMPLATE_XPCOMOSX107_DEFS.darwin = $(filter-out $(VBOX_DARWIN_DEF_SDK_DEFS),$(TEMPLATE_XPCOM_DEFS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_7_DEFS) 468 523 TEMPLATE_XPCOMOSX107_INCS.darwin = $(VBOX_PATH_MACOSX_SDK_10_7)/Developer/Headers/FlatCarbon … … 470 525 471 526 472 527 # 473 --- src/libs/xpcom18a4/python/Makefile.kmk.orig 201 2-08-21 20:52:14.000000000 -0400474 +++ src/libs/xpcom18a4/python/Makefile.kmk 201 2-08-21 20:53:59.000000000 -0400475 @@ -3 4,14 +34,14@@476 VBOX_PYTHON25_LIB = $(VBOX_PATH_MACOSX_SDK)/usr/lib/libpython2.5.dylib528 --- src/libs/xpcom18a4/python/Makefile.kmk.orig 2013-11-01 13:59:00.000000000 -0400 529 +++ src/libs/xpcom18a4/python/Makefile.kmk 2013-11-03 23:52:09.000000000 -0500 530 @@ -35,15 +35,15 @@ 531 VBOX_PYTHON25_LIB_X86 = $(VBOX_PYTHON25_LIB) 477 532 endif 478 533 if !defined(VBOX_WITHOUT_VBOXPYTHON_FOR_OSX_10_6) \ 479 534 - && ( !defined(VBOX_OSE) \ 480 535 - || "$(wildcard $(VBOX_PATH_MACOSX_SDK_10_6)/usr/lib/libpython2.6.dylib)" != "") 481 + && defined(VBOX_PATH_MACOSX_SDK_10_6)482 + && ("$(wildcard $(VBOX_PATH_MACOSX_SDK_10_6)/usr/lib/libpython2.6.dylib)" != "")536 + && defined(VBOX_PATH_MACOSX_SDK_10_6) \ 537 + && ("$(wildcard $(VBOX_PATH_MACOSX_SDK_10_6)/usr/lib/libpython2.6.dylib)" != "") 483 538 VBOX_PYTHON26_INC = $(VBOX_PATH_MACOSX_SDK_10_6)/usr/include/python2.6 484 539 VBOX_PYTHON26_LIB = $(VBOX_PATH_MACOSX_SDK_10_6)/usr/lib/libpython2.6.dylib 540 VBOX_PYTHON26_LIB_X86 = $(VBOX_PYTHON26_LIB) 485 541 endif 486 542 if !defined(VBOX_WITHOUT_VBOXPYTHON_FOR_OSX_10_7) \ 487 543 - && ( defined(VBOX_NOT_OSE_LATER_SOMETIME) \ 488 544 - || "$(wildcard $(VBOX_PATH_MACOSX_SDK_10_7)/usr/lib/libpython2.7.dylib)" != "") 489 + && defined(VBOX_PATH_MACOSX_SDK_10_7)490 + && ("$(wildcard $(VBOX_PATH_MACOSX_SDK_10_7)/usr/lib/libpython2.7.dylib)" != "")545 + && defined(VBOX_PATH_MACOSX_SDK_10_7) \ 546 + && ("$(wildcard $(VBOX_PATH_MACOSX_SDK_10_7)/usr/lib/libpython2.7.dylib)" != "") 491 547 VBOX_PYTHON27_INC = $(VBOX_PATH_MACOSX_SDK_10_7)/usr/include/python2.7 492 548 VBOX_PYTHON27_LIB = $(VBOX_PATH_MACOSX_SDK_10_7)/usr/lib/libpython2.7.dylib 493 endif549 VBOX_PYTHON27_LIB_X86 = $(VBOX_PYTHON27_LIB) -
config/macports/emulators/virtualbox/files/patch-startup.diff
diff --git a/config/macports/emulators/virtualbox/files/patch-startup.diff b/config/macports/emulators/virtualbox/files/patch-startup.diff index 97f4b7c..26631c9 100644
a b 1 --- src/VBox/Installer/darwin/VBox StartupItems/VirtualBox/VirtualBox.orig 2011-08-15 19:38:17.000000000 -05002 +++ src/VBox/Installer/darwin/VBox StartupItems/VirtualBox/VirtualBox 2011-08-15 19:38:17.000000000 -05003 @@ - 22,46 +22,22 @@1 --- src/VBox/Installer/darwin/VBoxKEXTs/VirtualBoxStartup.sh.orig 2013-11-01 13:58:02.000000000 -0400 2 +++ src/VBox/Installer/darwin/VBoxKEXTs/VirtualBoxStartup.sh 2013-11-04 00:10:08.000000000 -0500 3 @@ -72,46 +72,22 @@ 4 4 VBOXUSB="VBoxUSB" 5 5 6 6 # … … 30 30 - # 31 31 # Check that all the directories exist first. 32 32 # 33 - if [ ! -d /Library/Extensions/${VBOXDRV}.kext]; then34 - ConsoleMessage "Error: /Library/ Extensions/${VBOXDRV}.kext is missing"35 + if [ ! -d @KEXT_DIR@/${VBOXDRV}.kext]; then33 - if [ ! -d "/Library/Application Support/VirtualBox/${VBOXDRV}.kext" ]; then 34 - ConsoleMessage "Error: /Library/Application Support/VirtualBox/${VBOXDRV}.kext is missing" 35 + if [ ! -d "@KEXT_DIR@/${VBOXDRV}.kext" ]; then 36 36 + ConsoleMessage "Error: @KEXT_DIR@/${VBOXDRV}.kext is missing" 37 37 VBOX_RC=1 38 38 fi 39 - if [ ! -d /Library/Extensions/${VBOXUSB}.kext]; then40 - ConsoleMessage "Error: /Library/ Extensions/${VBOXUSB}.kext is missing"41 + if [ ! -d @KEXT_DIR@/${VBOXUSB}.kext]; then39 - if [ ! -d "/Library/Application Support/VirtualBox/${VBOXUSB}.kext" ]; then 40 - ConsoleMessage "Error: /Library/Application Support/VirtualBox/${VBOXUSB}.kext is missing" 41 + if [ ! -d "@KEXT_DIR@/${VBOXUSB}.kext" ]; then 42 42 + ConsoleMessage "Error: @KEXT_DIR@/${VBOXUSB}.kext is missing" 43 43 VBOX_RC=1 44 44 fi 45 - if [ ! -d /Library/Extensions/VBoxNetFlt.kext]; then46 - ConsoleMessage "Error: /Library/ Extensions/VBoxNetFlt.kext is missing"47 + if [ ! -d @KEXT_DIR@/VBoxNetFlt.kext]; then45 - if [ ! -d "/Library/Application Support/VirtualBox/VBoxNetFlt.kext" ]; then 46 - ConsoleMessage "Error: /Library/Application Support/VirtualBox/VBoxNetFlt.kext is missing" 47 + if [ ! -d "@KEXT_DIR@/VBoxNetFlt.kext" ]; then 48 48 + ConsoleMessage "Error: @KEXT_DIR@/VBoxNetFlt.kext is missing" 49 49 VBOX_RC=1 50 50 fi 51 - if [ ! -d /Library/Extensions/VBoxNetAdp.kext]; then52 - ConsoleMessage "Error: /Library/ Extensions/VBoxNetAdp.kext is missing"53 + if [ ! -d @KEXT_DIR@/VBoxNetAdp.kext]; then51 - if [ ! -d "/Library/Application Support/VirtualBox/VBoxNetAdp.kext" ]; then 52 - ConsoleMessage "Error: /Library/Application Support/VirtualBox/VBoxNetAdp.kext is missing" 53 + if [ ! -d "@KEXT_DIR@/VBoxNetAdp.kext" ]; then 54 54 + ConsoleMessage "Error: @KEXT_DIR@/VBoxNetAdp.kext is missing" 55 55 VBOX_RC=1 56 56 fi 57 57 58 @@ - 93,26 +69,26 @@58 @@ -143,26 +119,26 @@ 59 59 # 60 60 if [ $VBOX_RC -eq 0 ]; then 61 61 ConsoleMessage "Loading ${VBOXDRV}.kext" 62 - if ! kextload /Library/Extensions/${VBOXDRV}.kext; then63 - ConsoleMessage "Error: Failed to load /Library/ Extensions/${VBOXDRV}.kext"64 + if ! kextload @KEXT_DIR@/${VBOXDRV}.kext; then62 - if ! kextload "/Library/Application Support/VirtualBox/${VBOXDRV}.kext"; then 63 - ConsoleMessage "Error: Failed to load /Library/Application Support/VirtualBox/${VBOXDRV}.kext" 64 + if ! kextload "@KEXT_DIR@/${VBOXDRV}.kext"; then 65 65 + ConsoleMessage "Error: Failed to load @KEXT_DIR@/${VBOXDRV}.kext" 66 66 VBOX_RC=1 67 67 fi 68 68 69 69 ConsoleMessage "Loading ${VBOXUSB}.kext" 70 - if ! kextload -d /Library/Extensions/${VBOXDRV}.kext /Library/Extensions/${VBOXUSB}.kext; then71 - ConsoleMessage "Error: Failed to load /Library/ Extensions/${VBOXUSB}.kext"72 + if ! kextload -d @KEXT_DIR@/${VBOXDRV}.kext @KEXT_DIR@/${VBOXUSB}.kext; then70 - if ! kextload -d "/Library/Application Support/VirtualBox/${VBOXDRV}.kext" "/Library/Application Support/VirtualBox/${VBOXUSB}.kext"; then 71 - ConsoleMessage "Error: Failed to load /Library/Application Support/VirtualBox/${VBOXUSB}.kext" 72 + if ! kextload -d "@KEXT_DIR@/${VBOXDRV}.kext" "@KEXT_DIR@/${VBOXUSB}.kext"; then 73 73 + ConsoleMessage "Error: Failed to load @KEXT_DIR@/${VBOXUSB}.kext" 74 74 VBOX_RC=1 75 75 fi 76 76 77 77 ConsoleMessage "Loading VBoxNetFlt.kext" 78 - if ! kextload -d /Library/Extensions/${VBOXDRV}.kext /Library/Extensions/VBoxNetFlt.kext; then79 - ConsoleMessage "Error: Failed to load /Library/ Extensions/VBoxNetFlt.kext"80 + if ! kextload -d @KEXT_DIR@/${VBOXDRV}.kext @KEXT_DIR@/VBoxNetFlt.kext; then78 - if ! kextload -d "/Library/Application Support/VirtualBox/${VBOXDRV}.kext" "/Library/Application Support/VirtualBox/VBoxNetFlt.kext"; then 79 - ConsoleMessage "Error: Failed to load /Library/Application Support/VirtualBox/VBoxNetFlt.kext" 80 + if ! kextload -d "@KEXT_DIR@/${VBOXDRV}.kext" "@KEXT_DIR@/VBoxNetFlt.kext"; then 81 81 + ConsoleMessage "Error: Failed to load @KEXT_DIR@/VBoxNetFlt.kext" 82 82 VBOX_RC=1 83 83 fi 84 84 85 85 ConsoleMessage "Loading VBoxNetAdp.kext" 86 - if ! kextload -d /Library/Extensions/${VBOXDRV}.kext /Library/Extensions/VBoxNetAdp.kext; then87 - ConsoleMessage "Error: Failed to load /Library/ Extensions/VBoxNetAdp.kext"88 + if ! kextload -d @KEXT_DIR@/${VBOXDRV}.kext @KEXT_DIR@/VBoxNetAdp.kext; then86 - if ! kextload -d "/Library/Application Support/VirtualBox/${VBOXDRV}.kext" "/Library/Application Support/VirtualBox/VBoxNetAdp.kext"; then 87 - ConsoleMessage "Error: Failed to load /Library/Application Support/VirtualBox/VBoxNetAdp.kext" 88 + if ! kextload -d "@KEXT_DIR@/${VBOXDRV}.kext" "@KEXT_DIR@/VBoxNetAdp.kext"; then 89 89 + ConsoleMessage "Error: Failed to load @KEXT_DIR@/VBoxNetAdp.kext" 90 90 VBOX_RC=1 91 91 fi -
config/macports/emulators/virtualbox/files/patch-vde.diff
diff --git a/config/macports/emulators/virtualbox/files/patch-vde.diff b/config/macports/emulators/virtualbox/files/patch-vde.diff index 7f0f0f4..0b23ca2 100644
a b 1 1 --- configure.orig 2011-08-15 19:38:16.000000000 -0500 2 2 +++ configure 2011-08-15 19:38:16.000000000 -0500 3 @@ -2 605,7 +2605,7 @@3 @@ -2705,7 +2705,7 @@ 4 4 fi 5 5 6 6 # VDE