VirtualBox

source: vbox/trunk/src/VBox/Installer/solaris/Makefile.kmk@ 41101

Last change on this file since 41101 was 41101, checked in by vboxsync, 13 years ago

Solaris/Installer: Remove VBI bits.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 35.5 KB
Line 
1# $Id: Makefile.kmk 41101 2012-04-30 15:27:15Z vboxsync $
2## @file
3# Sub-Makefile for the Solaris installer.
4#
5
6#
7# Copyright (C) 2007-2011 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21ifneq ($(KBUILD_HOST),solaris)
22$(error "The Solaris installer can only be built on Solaris!") # yeah, right.
23endif
24
25# Unset this to speed up things during makefile hacking.
26VBOX_SOL_INST_DEP_ON_MAKEFILE := $(MAKEFILE_CURRENT)
27
28#
29# Globals
30#
31ifdef VBOX_WITH_COMBINED_SOLARIS_PACKAGE ## @todo remove this when tinderclient.pl is updated.
32 VBOX_WITH_COMBINED_PACKAGE := 1
33endif
34VBOX_PATH_SOL_INST_SRC := $(PATH_SUB_CURRENT)
35SOLARIS_DIR_NAME_64 := amd64
36SOLARIS_DIR_NAME_32 := i386
37SOLARIS_INST_OUT_DIR := $(PATH_TARGET)/Installer
38SOLARIS_BASEINST_DIR := $(PATH_TARGET)/Installer/BasePkg
39SOLARIS_VBOXINST_SUBDIR := opt/VirtualBox
40SOLARIS_VBOXINST_DIR := $(SOLARIS_BASEINST_DIR)/$(SOLARIS_VBOXINST_SUBDIR)
41SOLARIS_VBOXINST_DIR_32 := $(SOLARIS_VBOXINST_DIR)/$(SOLARIS_DIR_NAME_32)
42SOLARIS_VBOXINST_DIR_64 := $(SOLARIS_VBOXINST_DIR)/$(SOLARIS_DIR_NAME_64)
43SOLARIS_DRIVERINST_DIR := $(SOLARIS_BASEINST_DIR)/platform/i86pc/kernel/drv
44SOLARIS_DRIVERINST_DIR_32 := $(SOLARIS_DRIVERINST_DIR)
45SOLARIS_DRIVERINST_DIR_64 := $(SOLARIS_DRIVERINST_DIR)/amd64
46SOLARIS_USR_DIR := $(SOLARIS_BASEINST_DIR)/usr
47SOLARIS_USRBIN_DIR := $(SOLARIS_USR_DIR)/bin
48SOLARIS_USRSHR_APPS_DIR := $(SOLARIS_USR_DIR)/share/applications
49SOLARIS_USRSHR_APPREG_DIR := $(SOLARIS_USR_DIR)/share/application-registry
50SOLARIS_USRSHR_MIMEXML_DIR := $(SOLARIS_USR_DIR)/share/mime/packages
51SOLARIS_USRSHR_MIMEINFO_DIR := $(SOLARIS_USR_DIR)/share/mime-info
52SOLARIS_USRSHR_ICONS_DIR := $(SOLARIS_USR_DIR)/share/icons/hicolor
53SOLARIS_USRSHR_PIXMAPS_DIR := $(SOLARIS_USR_DIR)/share/pixmaps
54SOLARIS_VBOXSMF_DIR := $(SOLARIS_BASEINST_DIR)/var/svc/manifest/application/virtualbox
55SOLARIS_ETC_DIR := $(SOLARIS_BASEINST_DIR)/etc
56
57SOLARIS_OUT_BIN_64 := $(PATH_OUT_BASE)/solaris.amd64/$(KBUILD_TYPE)/bin
58SOLARIS_OUT_BIN_32 := $(PATH_OUT_BASE)/solaris.x86/$(KBUILD_TYPE)/bin
59SOLARIS_OUT_BIN := $(PATH_STAGE_BIN)
60
61SOLARIS_DBG_DIR_NAME := DebugPkg
62SOLARIS_DBG_DIR := $(SOLARIS_INST_OUT_DIR)/$(SOLARIS_DBG_DIR_NAME)
63SOLARIS_DBG_DIR_32 := $(SOLARIS_DBG_DIR)/$(SOLARIS_DIR_NAME_32)
64SOLARIS_DBG_DIR_64 := $(SOLARIS_DBG_DIR)/$(SOLARIS_DIR_NAME_64)
65
66ifeq ($(KBUILD_TARGET_ARCH),amd64)
67 SOLARIS_VBOXINST_DIR_ISA := $(SOLARIS_VBOXINST_DIR_64)
68 SOLARIS_DRIVERINST_DIR_ISA := $(SOLARIS_DRIVERINST_DIR_64)
69 SOLARIS_DBG_DIR_ISA := $(SOLARIS_DBG_DIR_64)
70 SOL_DBG_OBJCOPY := /usr/sfw/bin/gobjcopy --only-keep-debug
71 SOL64_PKG := 1
72else
73 SOLARIS_VBOXINST_DIR_ISA := $(SOLARIS_VBOXINST_DIR_32)
74 SOLARIS_DRIVERINST_DIR_ISA := $(SOLARIS_DRIVERINST_DIR_32)
75 SOLARIS_DBG_DIR_ISA := $(SOLARIS_DBG_DIR_32)
76 SOL_DBG_OBJCOPY := $(CP) -p # Solaris ld/gobjcopy(2.15) don't get along on x86, works only on amd64. So just using cp for now.
77endif
78SOL_OBJCOPY := /usr/sfw/bin/gobjcopy --strip-debug -R .comment
79SOL_GTAR := /usr/sfw/bin/gtar
80
81# Figure out the paths to the two platform specific Qt4 directories
82SOLARIS_PATH_QT_32 = $(subst solaris.$(KBUILD_TARGET_ARCH),solaris.x86,$(VBOX_PATH_QT4))
83SOLARIS_PATH_QT_64 = $(subst solaris.$(KBUILD_TARGET_ARCH),solaris.amd64,$(VBOX_PATH_QT4))
84
85# Base package
86PKGINFO_ARCH = $(shell uname -p)
87PKGINFO_REVSTAMP = $(date %Y.%m.%d.%H.%M)
88ifndef VBOX_WITH_COMBINED_PACKAGE
89 PKG_FILENAME = VirtualBox-$(VBOX_VERSION_STRING)-SunOS-$(KBUILD_TARGET_ARCH)-r$(VBOX_SVN_REV)
90else
91 PKG_FILENAME = VirtualBox-$(VBOX_VERSION_STRING)-SunOS-r$(VBOX_SVN_REV)
92endif
93
94# Debug package
95DBG_ARCHIVE = VirtualBoxDebug.tar.bz2
96
97# Kernel interface (vbi) package
98VBIPKG_FILENAME = VirtualBoxKern-$(VBOX_VERSION_STRING)-SunOS-r$(VBOX_SVN_REV)
99
100#
101# Targets
102#
103PROGRAMS += VBoxZoneAccess VBoxISAExec
104INSTALLS += solaris-doc solaris-bin solaris-drv-confs solaris-icons
105
106BLDDIRS += \
107 $(SOLARIS_INST_OUT_DIR) \
108 $(SOLARIS_BASEINST_DIR) \
109 $(SOLARIS_VBOXINST_DIR) \
110 $(SOLARIS_DBG_DIR)
111
112BLDDIRS += $(addprefix $(SOLARIS_BASEINST_DIR)/,\
113 usr \
114 usr/bin \
115 platform \
116 platform/i86pc \
117 platform/i86pc/kernel \
118 platform/i86pc/kernel/drv \
119 platform/i86pc/kernel/drv/amd64 \
120)
121
122PACKING += $(PATH_STAGE_BIN)/$(PKG_FILENAME).tar.gz $(PATH_STAGE_BIN)/$(DBG_ARCHIVE)
123
124OTHER_CLEAN += $(addprefix $(SOLARIS_BASEINST_DIR)/,\
125 vbox.pkginfo vbox.copyright vbox.space vbox.depend vbox.pkgresponse \
126 makepackage.sh prototype postinstall.sh checkinstall.sh preremove.sh)
127
128#
129# VBoxZoneAccess
130#
131VBoxZoneAccess_TEMPLATE = VBOXR3EXE
132VBoxZoneAccess_DEPS = $(VBOX_SVN_REV_KMK)
133VBoxZoneAccess_SOURCES = VBoxZoneAccess.c
134VBoxZoneAccess_LIBS = $(LIB_RUNTIME)
135
136#
137# VBoxISAExec
138#
139VBoxISAExec_TEMPLATE = VBOXR3EXE
140VBoxISAExec_DEPS = $(VBOX_SVN_REV_KMK)
141VBoxISAExec_SOURCES = VBoxISAExec.c
142
143#
144# Solaris installs.
145#
146solaris-doc_INST = bin/
147solaris-doc_MODE = a+r,u+w
148solaris-doc_SOURCES = \
149 $(VBOX_BRAND_LICENSE_TXT)=>LICENSE \
150 $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/$(if $(VBOX_OSE),OSE,NonOSE)/VirtualBox_64px.png=>VBox.png
151
152solaris-bin_INST = bin/
153solaris-bin_MODE = a+rx,u+w
154solaris-bin_SOURCES = \
155 $(if $(VBOX_WITH_PYTHON),$(PATH_ROOT)/src/VBox/Frontends/VBoxShell/vboxshell.py,) \
156 $(VBOX_PATH_SOL_INST_SRC)/vboxconfig.sh \
157 $(VBOX_PATH_SOL_INST_SRC)/VBox.sh \
158 $(VBOX_PATH_SOL_INST_SRC)/pkginstall.sh \
159 $(VBOX_PATH_SOL_INST_SRC)/smf-vboxballoonctrl.sh \
160 $(if $(VBOX_WITH_WEBSERVICES),$(VBOX_PATH_SOL_INST_SRC)/smf-vboxwebsrv.sh,)
161
162solaris-drv-confs_INST = bin/
163solaris-drv-confs_MODE = a+r,u+w
164solaris-drv-confs_SOURCES = \
165 $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf \
166 $(if $(VBOX_WITH_NETFLT),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf) \
167 $(if $(VBOX_WITH_NETFLT_CROSSBOW),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxbow.conf) \
168 $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/vboxnet.conf) \
169 $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusbmon.conf) \
170 $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusb.conf)
171
172solaris-icons_INST = bin/icons/
173solaris-icons_MODE = a+r,u+w
174solaris-icons_SOURCES = $(VBOX_MIME_ICONS)
175
176BLDDIRS += \
177 $(SOLARIS_USR_DIR)/share \
178 $(SOLARIS_USR_DIR)/share/icons \
179 $(SOLARIS_USRSHR_ICONS_DIR) \
180 $(foreach s,16 20 24 32 48 64 72 96 128 256,\
181 $(SOLARIS_USRSHR_ICONS_DIR)/$(s)x$(s) \
182 $(SOLARIS_USRSHR_ICONS_DIR)/$(s)x$(s)/mimetypes)
183
184VBOX_MIME_ICONS = \
185 $(addprefix $(PATH_ROOT)/src/VBox/Resources/other/,\
186 $(foreach f,ova ovf vbox vbox-extpack vdi vmdk vhd hdd, \
187 $(foreach s,16 20 24 32 48 64 72 96 128 256,\
188 virtualbox-$(f)-$(s)px.png=>$(s)x$(s)/mimetypes/virtualbox-$(f).png)))
189
190SOLARIS_COMMON_ICONS = \
191 $(foreach f,ova ovf vbox vbox-extpack vdi vmdk vhd hdd, \
192 $(foreach s,16 20 24 32 48 64 72 96 128 256,\
193 $(s)x$(s)/mimetypes/virtualbox-$(f).png))
194
195
196#
197# Note: Other than the files produced during packing (.pkg, .gzip etc.) all files that
198# go into the temporary install folder $(SOLARIS_VBOXINST_DIR) should be part of $(SOLARIS_ARCH_FILES).
199# For the files produced during packing they should be cleaned up promptly when the work is done.
200#
201
202# Strip these executables
203SOLARIS_STRIP_EXES = \
204 VBoxZoneAccess \
205 $(if $(VBOX_WITH_QTGUI),VirtualBox,) \
206 VBoxManage \
207 $(if $(VBOX_WITH_VBOXBFE),VBoxBFE,) \
208 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
209 $(if $(VBOX_WITH_NETADP),VBoxNetAdpCtl,) \
210 VBoxNetDHCP \
211 $(if $(VBOX_WITH_EXTPACK),VBoxExtPackHelperApp,) \
212 VBoxSVC \
213 $(if $(VBOX_WITH_CROGL),VBoxTestOGL,) \
214 VBoxXPCOMIPCD \
215 $(if $(VBOX_WITH_KCHMVIEWER),kchmviewer,)
216
217SOLARIS_DRIVER_BINS = \
218 vboxdrv \
219 $(if $(VBOX_WITH_NETFLT),vboxflt,) \
220 $(if $(VBOX_WITH_NETFLT_CROSSBOW),vboxbow,) \
221 $(if $(VBOX_WITH_NETADP),vboxnet,) \
222 $(if $(VBOX_WITH_USB),vboxusbmon,) \
223 $(if $(VBOX_WITH_USB),vboxusb,)
224
225SOLARIS_DRIVER_CONFS = \
226 vboxdrv.conf \
227 $(if $(VBOX_WITH_NETFLT),vboxflt.conf,) \
228 $(if $(VBOX_WITH_NETFLT_CROSSBOW),vboxbow.conf,) \
229 $(if $(VBOX_WITH_NETADP),vboxnet.conf,) \
230 $(if $(VBOX_WITH_USB),vboxusbmon.conf,) \
231 $(if $(VBOX_WITH_USB),vboxusb.conf,)
232
233# Strip these binaries
234SOLARIS_STRIP_BINS = \
235 VBoxDD.so \
236 VBoxDD2.so \
237 VBoxREM.so \
238 VBoxRT.so \
239 VBoxDDU.so \
240 VBoxVMM.so \
241 VBoxXPCOM.so \
242 VBoxXPCOMC.so \
243 $(if $(VBOX_WITH_SHARED_FOLDERS),VBoxSharedFolders.so,) \
244 $(if $(VBOX_WITH_SHARED_CLIPBOARD),VBoxSharedClipboard.so,) \
245 $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestPropSvc.so,) \
246 $(if $(VBOX_WITH_GUEST_CONTROL),VBoxGuestControlSvc.so,) \
247 $(if $(VBOX_WITH_JXPCOM),libvboxjxpcom.so,) \
248 $(if $(VBOX_WITH_QTGUI),\
249 VBoxKeyboard.so \
250 $(if $(VBOX_WITH_QT4_SUN),\
251 libQtCoreVBox.so.4 \
252 libQtGuiVBox.so.4 \
253 libQtNetworkVBox.so.4 \
254 $(if $(VBOX_GUI_USE_QGL),libQtOpenGLVBox.so.4,) \
255 accessible/libqtaccessiblewidgets.so,)) \
256 $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so,) \
257 $(if $(VBOX_WITH_CROGL),\
258 VBoxOGLhostcrutil.so \
259 VBoxOGLhosterrorspu.so \
260 VBoxOGLrenderspu.so \
261 VBoxSharedCrOpenGL.so) \
262 components/VBoxC.so \
263 components/VBoxSVCM.so \
264 components/VBoxXPCOMIPCC.so
265ifdef VBOX_WITH_HARDENING
266SOLARIS_STRIP_BINS += \
267 VBoxNetDHCP.so \
268 $(if $(VBOX_WITH_VBOXBFE),VBoxBFE.so,) \
269 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL.so,) \
270 $(if $(VBOX_WITH_QTGUI),VirtualBox.so,)
271endif
272
273# Do not remove relocation information of these binaries
274SOLARIS_STRIP_OBJS = \
275 VBoxDD2GC.gc \
276 VBoxDD2R0.r0 \
277 VBoxDDGC.gc \
278 VBoxDDR0.r0 \
279 VMMGC.gc \
280 VMMR0.r0
281
282# Special differences between 32-bit and 64-bit
283SOLARIS_STRIP_BIN_32 = \
284 VBoxREM32.so \
285 VBoxREM64.so
286
287VBOX_SOL_PYTHON_DIR_64 = 64
288
289# Do not strip anything of these files
290SOLARIS_NO_STRIP = \
291 components/VBoxXPCOMBase.xpt \
292 components/VirtualBox_XPCOM.xpt \
293 $(if $(and $(VBOX_LICENSE_FILES),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_FILES))
294
295SOLARIS_USRBIN_LINKS = \
296 $(if $(VBOX_WITH_QTGUI),VirtualBox,) \
297 $(if $(VBOX_WITH_HEADLESS),VBoxHeadless,) \
298 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
299 VBoxManage
300
301SOLARIS_COMMON_EXES = \
302 vboxconfig.sh \
303 VBox.sh \
304 pkginstall.sh \
305 $(if $(VBOX_WITH_PYTHON),vboxshell.py,) \
306 smf-vboxballoonctrl.sh \
307 $(if $(VBOX_WITH_WEBSERVICES),smf-vboxwebsrv.sh,)
308
309# Things packed explicitly, not from $(PATH_STAGE_BIN), track these to clean-up properly
310SOLARIS_EXTRAS = \
311 LICENSE \
312 VBox.png \
313 autoresponse \
314 $(if $(VBOX_WITH_VBOXSDL),libSDL-1.2.so.0,) \
315 $(if $(not $(VBOX_WITH_NETFLT))vnic_setup.sh,) \
316 $(if $(not $(VBOX_WITH_NETFLT))vnic_term.sh,) \
317 $(if $(VBOX_WITH_QTGUI),virtualbox.desktop,) \
318 virtualbox.xml \
319 virtualbox-balloonctrl.xml \
320 virtualbox-webservice.xml \
321 virtualbox-zoneaccess.xml \
322 VBoxQtconfig \
323 VBoxISAExec \
324 vbox.copyright \
325 ReadMe.txt
326
327# These extra Qt libs are purely for running VBoxQtconfig
328ifdef VBOX_WITH_QTGUI
329 SOLARIS_QTLIBS = \
330 $(if $(VBOX_WITH_QT4_SUN),\
331 libQtXmlVBox.so.4 \
332 libQtSqlVBox.so.4 \
333 libQt3SupportVBox.so.4,)
334
335 include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk
336 SOLARIS_COMMON = $(foreach f,$(VBOX_APPROVED_GUI_LANGUAGES),nls/VirtualBox_$(f).qm nls/qt_$(f).qm)
337else
338 SOLARIS_QTLIBS =
339 SOLARIS_COMMON =
340endif
341
342# Documentation (packed as DOCS as they are arch. neutral)
343ifdef VBOX_WITH_DOCS_PACKING
344 SOLARIS_COMMON += \
345 VirtualBox.chm \
346 UserManual.pdf \
347 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf)
348endif
349
350# Python XPCOM glue
351ifdef VBOX_WITH_PYTHON
352 SOLARIS_COMMON += \
353 $(foreach f,$(notdir $(wildcard $(PATH_STAGE_BIN)/sdk/bindings/xpcom/python/xpcom/*.py)),sdk/bindings/xpcom/python/xpcom/$(f)) \
354 sdk/bindings/xpcom/python/xpcom/client/__init__.py \
355 sdk/bindings/xpcom/python/xpcom/server/__init__.py \
356 sdk/bindings/xpcom/python/xpcom/server/enumerator.py \
357 sdk/bindings/xpcom/python/xpcom/server/factory.py \
358 sdk/bindings/xpcom/python/xpcom/server/loader.py \
359 sdk/bindings/xpcom/python/xpcom/server/module.py \
360 sdk/bindings/xpcom/python/xpcom/server/policy.py \
361 sdk/installer/vboxapisetup.py \
362 sdk/installer/vboxapi/__init__.py \
363 sdk/installer/vboxapi/VirtualBox_constants.py
364endif
365
366ifdef VBOX_WITH_JXPCOM
367 SOLARIS_COMMON += \
368 sdk/bindings/xpcom/java/vboxjxpcom.jar
369endif
370
371# auth stuff
372 SOLARIS_STRIP_BINS += \
373 VBoxAuth.so \
374 VBoxAuthSimple.so
375
376# VRDP
377ifdef VBOX_WITH_VRDP
378 ifndef VBOX_WITH_EXTPACK_PUEL
379 SOLARIS_STRIP_BINS += \
380 VBoxVRDP.so
381 endif
382 SOLARIS_COMMON += \
383 rdesktop-vrdp.tar.gz
384 ifdef VBOX_WITH_VRDP_RDESKTOP
385 SOLARIS_COMMON += $(addprefix rdesktop-vrdp-keymaps/,$(notdir $(wildcard $(SOLARIS_OUT_BIN)/rdesktop-vrdp-keymaps/*)))
386 SOLARIS_STRIP_EXES += \
387 rdesktop-vrdp
388 endif
389endif
390
391SOLARIS_STRIP_BINS += \
392 $(if $(and $(VBOX_WITH_HARDENING),$(VBOX_WITH_HEADLESS)),VBoxHeadless.so,)
393
394SOLARIS_STRIP_EXES += \
395 $(if $(VBOX_WITH_HEADLESS),VBoxHeadless) \
396 VBoxBalloonCtrl \
397 $(if $(VBOX_WITH_WEBSERVICES),vboxwebsrv) \
398 $(if $(VBOX_WITH_WEBSERVICES),webtest)
399
400# Guest Additions
401ifdef VBOX_WITH_ADDITIONS_PACKING
402 SOLARIS_COMMON += \
403 additions/VBoxGuestAdditions.iso
404endif
405
406
407# EFI firmware
408ifdef VBOX_WITH_EFIFW_PACKING
409 SOLARIS_COMMON += \
410 VBoxEFI32.fd \
411 VBoxEFI64.fd
412endif
413
414SOLARIS_ARCH_FILES := \
415 $(SOLARIS_STRIP_EXES) \
416 $(SOLARIS_DRIVER_BINS) \
417 $(SOLARIS_DRIVER_CONFS) \
418 $(SOLARIS_USRBIN_LINKS) \
419 $(SOLARIS_STRIP_BINS) \
420 $(SOLARIS_STRIP_OBJS) \
421 $(SOLARIS_NO_STRIP) \
422 $(SOLARIS_EXTRAS) \
423 $(SOLARIS_QTLIBS) \
424 $(SOLARIS_COMMON_EXES) \
425 $(SOLARIS_COMMON)
426
427SOLARIS_DBG_FILES := \
428 $(SOLARIS_STRIP_EXES) \
429 $(SOLARIS_STRIP_BINS) \
430 $(SOLARIS_DRIVER_BINS)
431
432OTHER_CLEAN += \
433 $(addprefix $(SOLARIS_VBOXINST_DIR)/, $(SOLARIS_ARCH_FILES)) \
434 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz \
435 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg \
436 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_BINS)) \
437 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_DRIVER_BINS)) \
438 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_EXES)) \
439 $(SOLARIS_DBG_DIR)/$(DBG_ARCHIVE)
440
441ifdef VBOX_WITH_COMBINED_PACKAGE
442 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)) \
443 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)) \
444 $(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)) \
445 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)) \
446 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)) \
447 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)) \
448 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)) \
449 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)) \
450 $(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)) \
451 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)) \
452 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)) \
453 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)) \
454 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)) \
455 $(wildcard $(addprefix $(SOLARIS_OUT_BIN_32)/,VBoxPython*.so)) \
456 $(wildcard $(addprefix $(SOLARIS_OUT_BIN_64)/,VBoxPython*.so))
457 SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DBG_FILES)) \
458 $(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DBG_FILES))
459else
460 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_EXES)) \
461 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BINS)) \
462 $(addprefix $(SOLARIS_DRIVERINST_DIR_ISA)/,$(SOLARIS_DRIVER_BINS)) \
463 $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \
464 $(ifeq ($(KBUILD_TARGET_ARCH),x86),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BIN_32)),) \
465 $(ifeq ($(KBUILD_TARGET_ARCH),amd64),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJ_64)),) \
466 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJS)) \
467 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_NO_STRIP)) \
468 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_QTLIBS))
469 SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_ISA)/,$(SOLARIS_DBG_FILES))
470endif
471SOLARIS_ARCH_DEPFILES += $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)) \
472 $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \
473 $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON_EXES)) \
474 $(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS)) \
475 $(addprefix $(SOLARIS_USRSHR_ICONS_DIR)/,$(SOLARIS_COMMON_ICONS))
476
477BLDDIRS += $(foreach d,\
478 additions \
479 rdesktop-vrdp-keymaps \
480 nls \
481 $(SOLARIS_DIR_NAME_64) \
482 $(SOLARIS_DIR_NAME_64)/components \
483 $(SOLARIS_DIR_NAME_64)/accessible \
484 $(VBOX_SOL_PYTHON_DIR_64) \
485 $(SOLARIS_DIR_NAME_32) \
486 $(SOLARIS_DIR_NAME_32)/components \
487 $(SOLARIS_DIR_NAME_32)/accessible \
488 $(if $(VBOX_WITH_PYTHON),\
489 sdk/ \
490 sdk/installer \
491 sdk/installer/vboxapi \
492 sdk/bindings/xpcom/python/xpcom \
493 sdk/bindings/xpcom/python/xpcom/server \
494 sdk/bindings/xpcom/python/xpcom/client,) \
495 $(if $(VBOX_WITH_JXPCOM), \
496 sdk/bindings/xpcom/java,) \
497,$(SOLARIS_VBOXINST_DIR)/$(d)/)
498
499BLDDIRS += $(foreach d,\
500 additions \
501 components \
502 accessible \
503 $(SOLARIS_DIR_NAME_64) \
504 $(SOLARIS_DIR_NAME_64)/components \
505 $(SOLARIS_DIR_NAME_64)/accessible \
506 $(VBOX_SOL_PYTHON_DIR_64) \
507 $(SOLARIS_DIR_NAME_32) \
508 $(SOLARIS_DIR_NAME_32)/components \
509 $(SOLARIS_DIR_NAME_32)/accessible \
510,$(SOLARIS_DBG_DIR)/$(d))
511
512# List of files to be tar.gz'd, the files will be
513# installed in $(SOLARIS_BASEINST_DIR) and .gz'd from there.
514SOLARIS_TAR_GZ_FILES := \
515 $(PKG_FILENAME).pkg \
516 LICENSE \
517 autoresponse \
518 ReadMe.txt
519
520include $(KBUILD_PATH)/subfooter.kmk
521
522#
523# -=-=-=-=-=-=-=- Main package -=-=-=-=-=-=-=-
524#
525
526## @todo r=bird: makepackage.sh packing a directory tree, right? So, there is no guarantee that it's not
527# containing any obsolete files the way packing is performed here. Consider recursively
528# invoking $(MAKE) vbox_copy_sdk_files (or similar) to do the copying after $(RM) -Rf the
529# directory tree.
530$(PATH_STAGE_BIN)/$(PKG_FILENAME).tar.gz: \
531 $(VBOX_VERSION_STAMP) \
532 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh \
533 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh \
534 $(VBOX_PATH_SOL_INST_SRC)/checkinstall.sh \
535 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh \
536 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo \
537 $(VBOX_PATH_SOL_INST_SRC)/vbox.space \
538 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \
539 $(PATH_ROOT)/src/VBox/Installer/common/virtualbox.desktop.in \
540 $(PATH_ROOT)/src/VBox/Installer/common/virtualbox.xml \
541 $(PATH_ROOT)/doc/ReadMe-Solaris.txt \
542 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
543 $(VBOX_BRAND_LICENSE_TXT) \
544 $(PATH_STAGE_BIN)/LICENSE \
545 $(if $(and $(VBOX_LICENSE_BINS),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_BINS),) \
546 $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0,) \
547 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh,) \
548 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh,) \
549 $(addprefix $(PATH_STAGE_BIN)/,$(filter-out $(SOLARIS_EXTRAS) $(SOLARIS_QTLIBS),$(SOLARIS_ARCH_FILES))) \
550 VBoxISAExec \
551 $(SOLARIS_ARCH_DEPFILES)
552 $(QUIET)$(RM) -f $(wildcard $(PATH_STAGE_BIN)/VirtualBox-*-r*.tar.gz)
553 $(call MSG_L1,Installing binaries $(SOLARIS_VBOXINST_DIR))
554ifdef VBOX_WITH_COMBINED_PACKAGE
555 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN_32)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/)
556else
557 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/)
558endif
559 $(call MSG_L1,Installing files $(SOLARIS_VBOXINST_DIR))
560 $(QUIET)$(SED) \
561 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
562 -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \
563 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
564 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
565 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
566 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
567 --output $(SOLARIS_BASEINST_DIR)/vbox.pkginfo \
568 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo
569 @# @todo BLDDIRS doesn't do "-p" subdir creation; so create for now
570 $(QUIET)$(if $(VBOX_WITH_NETADP),$(MKDIR) -p $(SOLARIS_ETC_DIR),)
571 $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXSMF_DIR)
572 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(MKDIR) -p $(SOLARIS_USRSHR_APPS_DIR),)
573 $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_APPREG_DIR)
574 $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_MIMEXML_DIR)
575 $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_MIMEINFO_DIR)
576 $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_PIXMAPS_DIR)
577 $(QUIET)$(if $(VBOX_WITH_NETADP),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0 $(SOLARIS_ETC_DIR)/hostname.vboxnet0,)
578 $(QUIET)$(INSTALL) -m 0644 $(PATH_STAGE_BIN)/LICENSE $(SOLARIS_VBOXINST_DIR)/LICENSE
579 # don't display the license on package install, since 4.0
580 #$(QUIET)$(INSTALL) -m 0644 $(PATH_STAGE_BIN)/LICENSE $(SOLARIS_BASEINST_DIR)/vbox.copyright
581 $(QUIET)$(INSTALL) -m 0644 $(PATH_STAGE_BIN)/LICENSE $(SOLARIS_BASEINST_DIR)/LICENSE
582ifdef VBOX_WITH_COMBINED_PACKAGE
583 ifndef VBOX_OSE
584 $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(INSTALL) -m 0644 $(PATH_DEVTOOLS)/solaris.x86/libSDL/v1.2.13/lib/libSDL-1.2.so.0.11.2 $(SOLARIS_VBOXINST_DIR_32)/libSDL-1.2.so.0,)
585 $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(INSTALL) -m 0644 $(PATH_DEVTOOLS)/solaris.amd64/libSDL/v1.2.13/lib/libSDL-1.2.so.0.11.2 $(SOLARIS_VBOXINST_DIR_64)/libSDL-1.2.so.0,)
586 endif
587 @# @todo -XXX- how to get rid of this manual MKDIR ?
588 $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64)
589 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(wildcard $(SOLARIS_OUT_BIN_32)/VBoxPython*.so) $(SOLARIS_VBOXINST_DIR)/,)
590 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(wildcard $(SOLARIS_OUT_BIN_64)/VBoxPython*.so) $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64)/,)
591 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(if ($VBOX_WITH_QT4_SUN),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_32)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_32)/VBoxQtconfig,),)
592 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(if $(VBOX_WITH_QT4_SUN),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_64)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_64)/VBoxQtconfig,),)
593 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN_32)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
594 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_32)/rdesktop-vrdp-keymaps,)
595 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_64)/rdesktop-vrdp-keymaps,)
596 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_32)/additions,)
597 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_64)/additions,)
598 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI32.fd $(SOLARIS_VBOXINST_DIR_32)/,)
599 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI32.fd $(SOLARIS_VBOXINST_DIR_64)/,)
600 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI64.fd $(SOLARIS_VBOXINST_DIR_32)/,)
601 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI64.fd $(SOLARIS_VBOXINST_DIR_64)/,)
602else
603 ifndef VBOX_OSE
604 $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(INSTALL) -m 0644 $(PATH_DEVTOOLS_TRG)/libSDL/v1.2.13/lib/libSDL-1.2.so.0.11.2 $(SOLARIS_VBOXINST_DIR_ISA)/libSDL-1.2.so.0,)
605 endif
606 @# @todo -XXX- how to get rid of this manual MKDIR ?
607 ifdef VBOX_WITH_PYTHON
608 $(QUIET)$(if $(SOL64_PKG),$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64),)
609 $(QUIET)$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(wildcard $(SOLARIS_OUT_BIN)/VBoxPython*.so) $(SOLARIS_VBOXINST_DIR)/$(if $(SOL64_PKG),$(VBOX_SOL_PYTHON_DIR_64)/,)
610 endif
611 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(if $(VBOX_WITH_QT4_SUN),$(INSTALL) -m 0755 $(VBOX_PATH_QT4)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_ISA)/VBoxQtconfig,),)
612 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
613 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_ISA)/rdesktop-vrdp-keymaps,)
614 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_ISA)/additions,)
615 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI32.fd $(SOLARIS_VBOXINST_DIR_ISA)/,)
616 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI64.fd $(SOLARIS_VBOXINST_DIR_ISA)/,)
617endif
618 $(QUIET)$(LN_SYMLINK) -f ./pkginstall.sh $(SOLARIS_VBOXINST_DIR)/ipsinstall.sh
619 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $(SOLARIS_USRBIN_DIR)/VBoxQtconfig,)
620 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-zoneaccess.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-zoneaccess.xml
621 $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-webservice.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-webservice.xml,)
622 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-balloonctrl.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-balloonctrl.xml
623 $(QUIET)$(if $(not $(VBOX_WITH_NETFLT))$(INSTALL) -m 0755 $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh $(SOLARIS_VBOXINST_DIR)/vnic_setup.sh,)
624 $(QUIET)$(if $(not $(VBOX_WITH_NETFLT))$(INSTALL) -m 0755 $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh $(SOLARIS_VBOXINST_DIR)/vnic_term.sh,)
625 $(QUIET)$(SED) \
626 -e "s/_HARDENED_/$(if $(VBOX_WITH_HARDENED),hardened,)/" \
627 --output $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp \
628 $(PATH_STAGE_BIN)/vboxconfig.sh
629 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh
630 $(QUIET)$(RM) -f $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp
631 $(QUIET)$(SED) \
632 -e "s+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+" \
633 -e "s+@VBOX_DOC_PATH@+/opt/VirtualBox+" \
634 --output $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop.tmp \
635 $(PATH_ROOT)/src/VBox/Installer/common/virtualbox.desktop.in
636 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop.tmp $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop
637 $(QUIET)$(RM) -f $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop.tmp
638 # S10 cannot deal with icon information in virtualbox.xml
639 $(QUIET)$(SED) \
640 -e '/<icon/d' \
641 --output $(SOLARIS_USRSHR_MIMEXML_DIR)/virtualbox.xml.tmp \
642 $(PATH_ROOT)/src/VBox/Installer/common/virtualbox.xml
643 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_USRSHR_MIMEXML_DIR)/virtualbox.xml.tmp $(SOLARIS_USRSHR_MIMEXML_DIR)/virtualbox.xml
644 $(QUIET)$(RM) -f $(SOLARIS_USRSHR_MIMEXML_DIR)/virtualbox.xml.tmp
645 $(QUIET)$(SED) \
646 -e "s+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+" \
647 --output $(SOLARIS_USRSHR_APPREG_DIR)/virtualbox.applications.tmp \
648 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.applications.in
649 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_USRSHR_APPREG_DIR)/virtualbox.applications.tmp $(SOLARIS_USRSHR_APPREG_DIR)/virtualbox.applications
650 $(QUIET)$(RM) -f $(SOLARIS_USRSHR_APPREG_DIR)/virtualbox.applications.tmp
651 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.keys $(SOLARIS_USRSHR_MIMEINFO_DIR)/virtualbox.keys
652 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.mime $(SOLARIS_USRSHR_MIMEINFO_DIR)/virtualbox.mime
653 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh $(SOLARIS_BASEINST_DIR)/postinstall.sh
654 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/VBox.png $(SOLARIS_USRSHR_PIXMAPS_DIR)/VBox.png
655 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh $(SOLARIS_BASEINST_DIR)/postinstall.sh
656 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/checkinstall.sh $(SOLARIS_BASEINST_DIR)/checkinstall.sh
657 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh $(SOLARIS_BASEINST_DIR)/preremove.sh
658 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh $(SOLARIS_BASEINST_DIR)/makepackage.sh
659 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_VBOXINST_DIR)/autoresponse
660 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_BASEINST_DIR)/autoresponse
661 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.space $(SOLARIS_BASEINST_DIR)/vbox.space
662 $(QUIET)$(SED) \
663 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
664 -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \
665 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
666 -e "s/@BUILD_TARGET_ARCH@/$(KBUILD_TARGET_ARCH)/g" \
667 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
668 --output $(SOLARIS_BASEINST_DIR)/ReadMe.txt \
669 $(PATH_ROOT)/doc/ReadMe-Solaris.txt
670 $(call MSG_L1,Creating install package: $(PKG_FILENAME).tar.gz)
671 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_BASEINST_DIR)/makepackage.sh $(if $(VBOX_WITH_HARDENING),--hardened) \
672 $(SOLARIS_BASEINST_DIR) \
673 $(PKG_FILENAME) \
674 $(if-expr defined(VBOX_WITH_COMBINED_PACKAGE),neutral,$(KBUILD_TARGET_ARCH)) \
675 $(VBOX_SVN_REV) \
676 $(call MSG_L1,Creating final tar.gz package)
677 $(QUIET)$(SOL_GTAR) -C $(SOLARIS_BASEINST_DIR) -zcvf $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz $(SOLARIS_TAR_GZ_FILES)
678 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz $(SOLARIS_OUT_BIN)
679 @# Clean up files emitted as side-effect or result of packing
680 $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz
681 $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg
682 $(call MSG_L1,Packaging completed.)
683
684
685#
686# 32-bit Main Package
687#
688$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)): \
689 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
690 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
691
692$(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
693 $(SOLARIS_DRIVERINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
694 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
695
696$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)): \
697 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
698 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
699
700$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)): \
701 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
702 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
703
704$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)): \
705 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
706 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
707
708$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)): \
709 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
710 $(INSTALL) -m 0644 $< $@
711
712$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)): \
713 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_PATH_QT_32)/lib/% | $$(dir $$@)
714 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
715
716#
717# 64-bit Main Package
718#
719$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)): \
720 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
721 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
722
723$(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
724 $(SOLARIS_DRIVERINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
725 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
726
727$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)): \
728 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
729 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
730
731$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)): \
732 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
733 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
734
735$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJ_64)): \
736 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
737 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
738
739$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)): \
740 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
741 $(INSTALL) -m 0644 $< $@
742
743$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)): \
744 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_PATH_QT_64)/lib/% | $$(dir $$@)
745 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
746
747
748#
749# Common (32-bit and 64-bit)
750#
751$(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)): \
752 $(SOLARIS_VBOXINST_DIR)/% : $(PATH_STAGE_BIN)/% | $$(dir $$@)
753 $(INSTALL) -m 0644 $< $@
754
755# Driver configuration files
756$(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)): \
757 $(SOLARIS_DRIVERINST_DIR)/% : $(PATH_STAGE_BIN)/% | $$(dir $$@)
758 $(INSTALL) -m 0644 $< $@
759
760# Common executables
761$(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON_EXES)): \
762 $(SOLARIS_VBOXINST_DIR)/% : $(PATH_STAGE_BIN)/% | $$(dir $$@)
763 $(INSTALL) -m 0755 $< $@
764
765# Common MIME icons
766$(addprefix $(SOLARIS_USRSHR_ICONS_DIR)/,$(SOLARIS_COMMON_ICONS)): \
767 $(SOLARIS_USRSHR_ICONS_DIR)/% : $(PATH_STAGE_BIN)/icons/% | $$(dir $$@)
768 $(INSTALL) -m 0644 $< $@
769
770
771
772#
773# Common (relative symlinks to /opt/VirtualBox/ from /usr/bin/)
774# Some symlinks are created manually in the prepackage steps above (eg. VBoxQtconfig)
775# as those binaries do not originate from $(PATH_STAGE_BIN)
776#
777$(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS)): \
778 $(SOLARIS_USRBIN_DIR)/% : % | $$(dir $$@)
779 $(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $@
780
781
782
783#
784# -=-=-=-=-=-=-=- Debug package -=-=-=-=-=-=-=-
785#
786$(PATH_STAGE_BIN)/$(DBG_ARCHIVE): \
787 $(VBOX_VERSION_STAMP) \
788 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
789 $(SOLARIS_DBG_DEPFILES)
790 $(call MSG_L1,Installing debug binaries $(SOLARIS_DBG_DIR))
791 $(call MSG_L1,Packing $@)
792 $(QUIET)/usr/sfw/bin/gtar --dereference --owner 0 --group 0 \
793 -cjRhf "$(PATH_STAGE_BIN)/$(DBG_ARCHIVE)" -C "$(SOLARIS_INST_OUT_DIR)" "$(SOLARIS_DBG_DIR_NAME)"
794 $(QUIET)$(CHMOD) 0644 $@
795
796#
797# 32-bit Debug package
798#
799$(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
800 $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
801 $(SOL_DBG_OBJCOPY) $< $@
802
803$(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
804 $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
805 $(SOL_DBG_OBJCOPY) $< $@
806
807
808#
809# 64-bit Debug package
810#
811$(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
812 $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
813 $(SOL_DBG_OBJCOPY) $< $@
814
815$(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
816 $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
817 $(SOL_DBG_OBJCOPY) $< $@
818
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette