Changeset 48254 in vbox for trunk/src/VBox/Additions/darwin/Installer
- Timestamp:
- Sep 3, 2013 9:37:15 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/darwin/Installer/Makefile.kmk
r48251 r48254 23 23 # Globals 24 24 # 25 VBOX_ PATH_DI_SRC := $(PATH_SUB_CURRENT)26 VBOX_ DI_OUT_DIR := $(PATH_TARGET)/additions/Installer27 BLDDIRS += $(VBOX_ DI_OUT_DIR)25 VBOX_ADD_PATH_DI_SRC := $(PATH_SUB_CURRENT) 26 VBOX_ADD_DI_OUT_DIR := $(PATH_TARGET)/additions/Installer 27 BLDDIRS += $(VBOX_ADD_DI_OUT_DIR) 28 28 29 29 ifdef VBOX_WITH_COMBINED_PACKAGE … … 65 65 # Where we do the packing (override this in LocalConfig.kmk if building on smbfs). 66 66 ifndef VBOX_PATH_PACK_TMP 67 VBOX_PATH_PACK_TMP := $(VBOX_ DI_OUT_DIR)67 VBOX_PATH_PACK_TMP := $(VBOX_ADD_DI_OUT_DIR) 68 68 endif 69 69 … … 103 103 $(VBOX_BRAND_DARWIN_DISKIMAGE_BG) \ 104 104 $(VBOX_BRAND_DARWIN_DISKIMAGE_DS_STORE) \ 105 $$(wildcard $(VBOX_ PATH_DI_SRC)/DiskImage/*) \106 $(VBOX_ PATH_DI_SRC)/DiskImage/Uninstall.tool \105 $$(wildcard $(VBOX_ADD_PATH_DI_SRC)/DiskImage/*) \ 106 $(VBOX_ADD_PATH_DI_SRC)/DiskImage/Uninstall.tool \ 107 107 $(VBOX_DARWIN_INST_DEP_ON_MAKEFILE) 108 108 $(call MSG_TOOL,hdiutil,,,$@) … … 118 118 $(QUIET)$(RM) -f $(wildcard $(VBOX_PATH_DIST)/VBoxDarwinAdditions-*-r*.dmg) 119 119 @# Populate the image with uninstaller, readme, picture, and .VolumeIcon.icns. (TODO) 120 $(INSTALL) $(VBOX_ PATH_DI_SRC)/DiskImage/Uninstall.tool $(VBOX_PATH_PACK_TMP)/DiskImage/120 $(INSTALL) $(VBOX_ADD_PATH_DI_SRC)/DiskImage/Uninstall.tool $(VBOX_PATH_PACK_TMP)/DiskImage/ 121 121 ifeq (1,1) 122 122 @# Pedantic mode... … … 140 140 $(VBOX_PATH_PACK_TMP)/Packages/VBoxGuestAdditionsKEXTs.pkg \ 141 141 $(VBOX_PATH_PACK_TMP)/Packages/VBoxGuestAdditionsToolsAndServices.pkg \ 142 $$(wildcard $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditions_mpkg/* \143 $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditions_mpkg/*.lproj/*) \142 $$(wildcard $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditions_mpkg/* \ 143 $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditions_mpkg/*.lproj/*) \ 144 144 $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES), $(VBOX_BRAND_$(f)_VIRTUALBOX_WELCOME_RTF)) \ 145 $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditions_mpkg/Welcome.rtf \146 $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditions_mpkg/Conclusion.rtf \145 $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditions_mpkg/Welcome.rtf \ 146 $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditions_mpkg/Conclusion.rtf \ 147 147 $(VBOX_DARWIN_INST_DEP_ON_MAKEFILE) 148 148 $(call MSG_TOOL,productbuild,,,$@) … … 170 170 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \ 171 171 --output $(VBOX_PATH_PACK_TMP)/VBoxDarwinAdditions.dist.res/English.lproj/Welcome.rtf \ 172 $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditions_mpkg/Welcome.rtf172 $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditions_mpkg/Welcome.rtf 173 173 @# Copy the resources. 174 $(INSTALL) -m 0644 $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditions_mpkg/Conclusion.rtf $(VBOX_PATH_PACK_TMP)/VBoxDarwinAdditions.dist.res/English.lproj/Conclusion.rtf174 $(INSTALL) -m 0644 $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditions_mpkg/Conclusion.rtf $(VBOX_PATH_PACK_TMP)/VBoxDarwinAdditions.dist.res/English.lproj/Conclusion.rtf 175 175 176 176 $(SED) \ … … 179 179 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \ 180 180 --output $(VBOX_PATH_PACK_TMP)/VBoxDarwinAdditions.dist.res/English.lproj/Localizable.strings \ 181 $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditions_mpkg/Localizable.strings181 $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditions_mpkg/Localizable.strings 182 182 $(INSTALL) -m 0644 $(VBOX_BRAND_DARWIN_INSTALLER_BG) $(VBOX_PATH_PACK_TMP)/VBoxDarwinAdditions.dist.res/background.tif 183 183 … … 203 203 @# Build the package. 204 204 $(VBOX_PRODUCTBUILD) \ 205 --distribution $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditions_mpkg/distribution.dist \205 --distribution $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditions_mpkg/distribution.dist \ 206 206 --package-path $(VBOX_PATH_PACK_TMP)/Packages \ 207 207 --resources $(VBOX_PATH_PACK_TMP)/VBoxDarwinAdditions.dist.res \ … … 222 222 # The VirtualBox Kernel extensions. 223 223 # 224 VBOX_ DI_KEXTS_UNIVERSAL = VBoxGuest225 VBOX_ DI_KEXTS = $(VBOX_DI_KEXTS_UNIVERSAL)224 VBOX_ADD_DI_KEXTS_UNIVERSAL = VBoxGuest 225 VBOX_ADD_DI_KEXTS = $(VBOX_ADD_DI_KEXTS_UNIVERSAL) 226 226 227 227 $(VBOX_PATH_PACK_TMP)/Packages/VBoxGuestAdditionsKEXTs.pkg: \ 228 $(foreach kext,$(VBOX_ DI_KEXTS_UNIVERSAL), $(call VBOX_DI_FN_DEP_BOTH,$(kext).kext/Contents/MacOS/$(kext))) \229 $(foreach kext,$(VBOX_ DI_KEXTS), $(VBOX_PATH_DIST)/additions/$(kext).kext/Contents/Info.plist) \230 $$(wildcard $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditionsKEXTs/* \231 $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditionsKEXTs/*.lproj/*) \228 $(foreach kext,$(VBOX_ADD_DI_KEXTS_UNIVERSAL), $(call VBOX_DI_FN_DEP_BOTH,$(kext).kext/Contents/MacOS/$(kext))) \ 229 $(foreach kext,$(VBOX_ADD_DI_KEXTS), $(VBOX_PATH_DIST)/additions/$(kext).kext/Contents/Info.plist) \ 230 $$(wildcard $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditionsKEXTs/* \ 231 $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditionsKEXTs/*.lproj/*) \ 232 232 $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES), \ 233 233 $(VBOX_BRAND_$(f)_VBOXKEXTS_DESCRIPTION_PLIST) \ 234 234 $(VBOX_BRAND_$(f)_VBOXKEXTS_README_HTML) \ 235 235 $(VBOX_BRAND_$(f)_VBOXKEXTS_INSTALLATIONCHECK_STRINGS)) \ 236 $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditionsKEXTs/postflight \237 $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditionsKEXTs/PkgBuildComponent.plist \236 $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditionsKEXTs/postflight \ 237 $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditionsKEXTs/PkgBuildComponent.plist \ 238 238 $(VBOX_DARWIN_INST_DEP_ON_MAKEFILE) 239 239 $(call MSG_TOOL,pkgbuild,,,$@) … … 253 253 $(MKDIR) -p -m 0755 \ 254 254 $(VBOX_PATH_PACK_TMP)/VBoxGuestAdditionsKEXTs.pkg.root/Library/Extensions \ 255 $(foreach kext,$(VBOX_ DI_KEXTS), \255 $(foreach kext,$(VBOX_ADD_DI_KEXTS), \ 256 256 $(VBOX_PATH_PACK_TMP)/VBoxGuestAdditionsKEXTs.pkg.root/Library/Extensions/$(kext).kext \ 257 257 $(VBOX_PATH_PACK_TMP)/VBoxGuestAdditionsKEXTs.pkg.root/Library/Extensions/$(kext).kext/Contents \ 258 258 $(VBOX_PATH_PACK_TMP)/VBoxGuestAdditionsKEXTs.pkg.root/Library/Extensions/$(kext).kext/Contents/MacOS ) 259 259 @# Copy the common files (Info.plist). 260 $(foreach kext,$(VBOX_ DI_KEXTS), \260 $(foreach kext,$(VBOX_ADD_DI_KEXTS), \ 261 261 $(NLTAB)$(INSTALL) -m 0644 $(VBOX_PATH_DIST)/additions/$(kext).kext/Contents/Info.plist $(VBOX_PATH_PACK_TMP)/VBoxGuestAdditionsKEXTs.pkg.root/Library/Extensions/$(kext).kext/Contents/) 262 262 @# Copy the binaries and invoking lipo. 263 263 ifdef VBOX_WITH_COMBINED_PACKAGE 264 $(foreach kext,$(VBOX_ DI_KEXTS_UNIVERSAL), \264 $(foreach kext,$(VBOX_ADD_DI_KEXTS_UNIVERSAL), \ 265 265 $(NLTAB)$(VBOX_DI_LIPO) -create \ 266 266 $(VBOX_PATH_DIST_32)/additions/$(kext).kext/Contents/MacOS/$(kext) \ … … 268 268 -output $(VBOX_PATH_PACK_TMP)/VBoxGuestAdditionsKEXTs.pkg.root/Library/Extensions/$(kext).kext/Contents/MacOS/$(kext)) 269 269 else 270 $(foreach kext,$(VBOX_ DI_KEXTS), \270 $(foreach kext,$(VBOX_ADD_DI_KEXTS), \ 271 271 $(NLTAB)$(INSTALL) -m 0755 $(VBOX_PATH_DIST)/additions/$(kext).kext/Contents/MacOS/$(kext) $(VBOX_PATH_PACK_TMP)/VBoxGuestAdditionsKEXTs.pkg.root/Library/Extensions/$(kext).kext/Contents/MacOS/) 272 272 endif 273 273 @# Signed the kext bundles. 274 274 ifdef VBOX_SIGNING_MODE 275 $(foreach kext,$(VBOX_ DI_KEXTS), \275 $(foreach kext,$(VBOX_ADD_DI_KEXTS), \ 276 276 $(NLTAB)$(call VBOX_SIGN_BUNDLE_FN,$(VBOX_PATH_PACK_TMP)/VBoxGuestAdditionsKEXTs.pkg.root/Library/Extensions/$(kext).kext,) ) 277 277 endif … … 281 281 282 282 # Copy package internal files 283 $(INSTALL) $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditionsKEXTs/PkgBuildComponent.plist $(VBOX_PATH_PACK_TMP)/VBoxGuestAdditionsKEXTs.pkg.desc/PkgBuildComponent.plist283 $(INSTALL) $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditionsKEXTs/PkgBuildComponent.plist $(VBOX_PATH_PACK_TMP)/VBoxGuestAdditionsKEXTs.pkg.desc/PkgBuildComponent.plist 284 284 285 285 # Copy installer scripts 286 $(INSTALL) -m 0755 $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditionsKEXTs/postflight $(VBOX_PATH_PACK_TMP)/VBoxGuestAdditionsKEXTs.pkg.res286 $(INSTALL) -m 0755 $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditionsKEXTs/postflight $(VBOX_PATH_PACK_TMP)/VBoxGuestAdditionsKEXTs.pkg.res 287 287 288 288 @# Build the package. … … 312 312 $(foreach f, $(VBOX_DI_VB_GA_BINARIES)\ 313 313 ,$(call VBOX_DI_FN_DEP_BOTH,$(f)) ) \ 314 $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditionsToolsAndServices/org.virtualbox.additions.vboxclient.plist \315 $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditionsToolsAndServices/org.virtualbox.additions.vboxservice.plist \316 $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditionsToolsAndServices/VBoxServiceWrapper \317 $(VBOX_ PATH_DI_SRC)/DiskImage/Uninstall.tool \314 $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditionsToolsAndServices/org.virtualbox.additions.vboxclient.plist \ 315 $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditionsToolsAndServices/org.virtualbox.additions.vboxservice.plist \ 316 $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditionsToolsAndServices/VBoxServiceWrapper \ 317 $(VBOX_ADD_PATH_DI_SRC)/DiskImage/Uninstall.tool \ 318 318 $(VBOX_DARWIN_INST_DEP_ON_MAKEFILE) 319 319 $(call MSG_TOOL,pkgbuild,,,$@) … … 354 354 endif 355 355 # Add Uninstall.tool 356 $(INSTALL) $(VBOX_ PATH_DI_SRC)/DiskImage/Uninstall.tool "$(VBOX_PATH_PACK_TMP)/$(VBOX_GA_PKG).root/Library/Application Support/VirtualBox Guest Additions/" \356 $(INSTALL) $(VBOX_ADD_PATH_DI_SRC)/DiskImage/Uninstall.tool "$(VBOX_PATH_PACK_TMP)/$(VBOX_GA_PKG).root/Library/Application Support/VirtualBox Guest Additions/" \ 357 357 358 358 @# Install launchd stuff 359 $(INSTALL) -m 0755 $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditionsToolsAndServices/VBoxServiceWrapper \359 $(INSTALL) -m 0755 $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditionsToolsAndServices/VBoxServiceWrapper \ 360 360 "$(VBOX_PATH_PACK_TMP)/$(VBOX_GA_PKG).root/Library/Application Support/VirtualBox Guest Additions/" 361 $(INSTALL) -m 644 $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditionsToolsAndServices/org.virtualbox.additions.vboxclient.plist \361 $(INSTALL) -m 644 $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditionsToolsAndServices/org.virtualbox.additions.vboxclient.plist \ 362 362 "$(VBOX_PATH_PACK_TMP)/$(VBOX_GA_PKG).root/Library/LaunchAgents/" 363 $(INSTALL) -m 644 $(VBOX_ PATH_DI_SRC)/VBoxGuestAdditionsToolsAndServices/org.virtualbox.additions.vboxservice.plist \363 $(INSTALL) -m 644 $(VBOX_ADD_PATH_DI_SRC)/VBoxGuestAdditionsToolsAndServices/org.virtualbox.additions.vboxservice.plist \ 364 364 "$(VBOX_PATH_PACK_TMP)/$(VBOX_GA_PKG).root/Library/LaunchDaemons/" 365 365
Note:
See TracChangeset
for help on using the changeset viewer.