1 | # $Id: Makefile.kmk 7402 2008-03-10 13:50:28Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the Solaris guest additions base directory.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2008 innotek GmbH
|
---|
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 |
|
---|
18 | DEPTH ?= ../../../..
|
---|
19 | SUB_DEPTH = ..
|
---|
20 | include $(PATH_KBUILD)/subheader.kmk
|
---|
21 |
|
---|
22 | ifneq ($(BUILD_PLATFORM),solaris)
|
---|
23 | $(error "The Solaris guest additions installer can only be built on Solaris!")
|
---|
24 | endif
|
---|
25 |
|
---|
26 | PKGFILENAME := VBoxSolarisAdditions
|
---|
27 | PKGINFO_ARCH = $(shell uname -p)
|
---|
28 | VBOX_PATH_SOLARIS_ADDITION_INSTALLER := $(PATH_SUB_CURRENT)/Installer
|
---|
29 | VBOX_PATH_X11_ADDITION_INSTALLER := $(PATH_ROOT)/src/VBox/Additions/x11/installer
|
---|
30 | SOLARISINSTDIR := $(PATH_TARGET)/install
|
---|
31 |
|
---|
32 | ifeq ($(BUILD_TYPE),debug)
|
---|
33 | BIN_COPY := $(CP) -f
|
---|
34 | BIN_COPY_SYMBOLS := $(CP) -f
|
---|
35 | else
|
---|
36 | BIN_COPY := /usr/sfw/bin/gobjcopy -S -R .comment
|
---|
37 | BIN_COPY_SYMBOLS := /usr/sfw/bin/gobjcopy -g -R .comment
|
---|
38 | endif
|
---|
39 |
|
---|
40 | PACKING += $(PATH_BIN)/additions/$(PKGFILENAME)
|
---|
41 | OTHER_CLEAN += $(PACKING)
|
---|
42 |
|
---|
43 | include $(PATH_KBUILD)/subfooter.kmk
|
---|
44 |
|
---|
45 | $(PATH_BIN)/additions/VBoxSolarisAdditions: \
|
---|
46 | $(VBOX_VERSION_STAMP) \
|
---|
47 | $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh \
|
---|
48 | $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh \
|
---|
49 | $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh \
|
---|
50 | $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo \
|
---|
51 | $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh \
|
---|
52 | $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml \
|
---|
53 | $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient \
|
---|
54 | $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl \
|
---|
55 | $(PATH_BIN)/additions/vboxguest \
|
---|
56 | $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf \
|
---|
57 | $(PATH_BIN)/additions/VBoxClient \
|
---|
58 | $(PATH_BIN)/additions/VBoxService \
|
---|
59 | $(PATH_BIN)/additions/vboxvideo_drv_13.so \
|
---|
60 | $(PATH_BIN)/additions/vboxvideo_drv_14.so \
|
---|
61 | $(PATH_BIN)/additions/vboxvideo_drv_70.so \
|
---|
62 | $(PATH_BIN)/additions/vboxvideo_drv_71.so \
|
---|
63 | $(PATH_BIN)/additions/vboxmouse_drv_14.so \
|
---|
64 | $(PATH_BIN)/additions/vboxmouse_drv_70.so \
|
---|
65 | $(PATH_BIN)/additions/vboxmouse_drv_71.so \
|
---|
66 | $(PATH_SUB_CURRENT)/solaris/Makefile.kmk
|
---|
67 | $(call MSG_L1,Installing guest additions)
|
---|
68 | @# Clear out the existing package files if needed
|
---|
69 | $(QUIET)rm -rf $(SOLARISINSTDIR)
|
---|
70 | $(QUIET)$(MKDIR) -p $(SOLARISINSTDIR)
|
---|
71 | $(QUIET)$(SED) \
|
---|
72 | -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
|
---|
73 | -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
|
---|
74 | --output $(SOLARISINSTDIR)/vboxguest.pkginfo \
|
---|
75 | $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo
|
---|
76 | $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh $(SOLARISINSTDIR)/makepackage.sh
|
---|
77 | $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh $(SOLARISINSTDIR)/postinstall.sh
|
---|
78 | $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh $(SOLARISINSTDIR)/preremove.sh
|
---|
79 | $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh $(SOLARISINSTDIR)/vboxguest.sh
|
---|
80 | $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml $(SOLARISINSTDIR)/vboxservice.xml
|
---|
81 | $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient $(SOLARISINSTDIR)/1099.vboxclient
|
---|
82 | $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl $(SOLARISINSTDIR)/x11config.pl
|
---|
83 | $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf $(SOLARISINSTDIR)/vboxguest.conf
|
---|
84 | $(QUIET)$(CP) -f $(PATH_BIN)/additions/vboxguest $(SOLARISINSTDIR)/vboxguest
|
---|
85 | $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARISINSTDIR)/vboxguest,)
|
---|
86 | $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/VBoxClient $(SOLARISINSTDIR)/VBoxClient
|
---|
87 | $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/VBoxService $(SOLARISINSTDIR)/VBoxService
|
---|
88 | $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_13.so $(SOLARISINSTDIR)/vboxvideo_drv_13.so
|
---|
89 | $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_14.so $(SOLARISINSTDIR)/vboxvideo_drv_14.so
|
---|
90 | $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_70.so $(SOLARISINSTDIR)/vboxvideo_drv_70.so
|
---|
91 | $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_71.so $(SOLARISINSTDIR)/vboxvideo_drv_71.so
|
---|
92 | $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_14.so $(SOLARISINSTDIR)/vboxmouse_drv_14.so
|
---|
93 | $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_70.so $(SOLARISINSTDIR)/vboxmouse_drv_70.so
|
---|
94 | $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_71.so $(SOLARISINSTDIR)/vboxmouse_drv_71.so
|
---|
95 | $(call MSG_L1,Creating install package: $@)
|
---|
96 | $(QUIET)$(SOLARISINSTDIR)/makepackage.sh $(SOLARISINSTDIR) $(PKGFILENAME) 1>/dev/null 2>/dev/null
|
---|
97 | $(QUIET)$(INSTALL) -m 0644 $(SOLARISINSTDIR)/$(PKGFILENAME) $(PATH_BIN)/additions/$(PKGFILENAME)
|
---|
98 |
|
---|