VirtualBox

source: vbox/trunk/src/VBox/Additions/solaris/Makefile.kmk@ 7975

Last change on this file since 7975 was 7975, checked in by vboxsync, 17 years ago

Solaris Additions: Use .pkg suffix for guest additions install package.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.4 KB
Line 
1# $Id: Makefile.kmk 7975 2008-04-15 11:12:17Z 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
18DEPTH ?= ../../../..
19SUB_DEPTH = ..
20include $(PATH_KBUILD)/subheader.kmk
21
22ifneq ($(BUILD_PLATFORM),solaris)
23$(error "The Solaris guest additions installer can only be built on Solaris!")
24endif
25
26PKGFILENAME := VBoxSolarisAdditions.pkg
27PKGINFO_ARCH = $(shell uname -p)
28VBOX_PATH_SOLARIS_ADDITION_INSTALLER := $(PATH_SUB_CURRENT)/Installer
29VBOX_PATH_X11_ADDITION_INSTALLER := $(PATH_ROOT)/src/VBox/Additions/x11/installer
30SOLARISINSTDIR := $(PATH_TARGET)/install
31
32ifeq ($(BUILD_TYPE),debug)
33 BIN_COPY := $(CP) -f
34 BIN_COPY_SYMBOLS := $(CP) -f
35else
36 BIN_COPY := /usr/sfw/bin/gobjcopy -S -R .comment
37 BIN_COPY_SYMBOLS := /usr/sfw/bin/gobjcopy -g -R .comment
38endif
39
40PACKING += $(PATH_BIN)/additions/$(PKGFILENAME)
41OTHER_CLEAN += $(PACKING)
42
43include $(PATH_KBUILD)/subfooter.kmk
44
45$(PATH_BIN)/additions/VBoxSolarisAdditions.pkg: \
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 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl \
56 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf \
57 $(VBOX_PATH_X11_ADDITION_INSTALLER)/VBoxRandR.sh \
58 $(PATH_BIN)/additions/vboxguest \
59 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf \
60 $(PATH_BIN)/additions/VBoxClient \
61 $(PATH_BIN)/additions/VBoxService \
62 $(PATH_BIN)/additions/vboxvideo_drv_13.so \
63 $(PATH_BIN)/additions/vboxvideo_drv_14.so \
64 $(PATH_BIN)/additions/vboxvideo_drv_70.so \
65 $(PATH_BIN)/additions/vboxvideo_drv_71.so \
66 $(PATH_BIN)/additions/vboxmouse_drv_14.so \
67 $(PATH_BIN)/additions/vboxmouse_drv_70.so \
68 $(PATH_BIN)/additions/vboxmouse_drv_71.so \
69 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxdevlink.sed \
70 $(PATH_SUB_CURRENT)/solaris/Makefile.kmk
71 $(call MSG_L1,Installing guest additions)
72 @# Clear out the existing package files if needed
73 $(QUIET)rm -rf $(SOLARISINSTDIR)
74 $(QUIET)$(MKDIR) -p $(SOLARISINSTDIR)
75 $(QUIET)$(MKDIR) -p $(SOLARISINSTDIR)/etc
76 $(QUIET)$(SED) \
77 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
78 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
79 --output $(SOLARISINSTDIR)/vboxguest.pkginfo \
80 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo
81 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh $(SOLARISINSTDIR)/makepackage.sh
82 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh $(SOLARISINSTDIR)/postinstall.sh
83 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh $(SOLARISINSTDIR)/preremove.sh
84 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh $(SOLARISINSTDIR)/vboxguest.sh
85 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml $(SOLARISINSTDIR)/vboxservice.xml
86 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxclient.desktop $(SOLARISINSTDIR)/vboxclient.desktop
87 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient $(SOLARISINSTDIR)/1099.vboxclient
88 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl $(SOLARISINSTDIR)/x11config.pl
89 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl $(SOLARISINSTDIR)/x11restore.pl
90 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf $(SOLARISINSTDIR)/solaris_xorg.conf
91 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/VBoxRandR.sh $(SOLARISINSTDIR)/VBoxRandR.sh
92 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf $(SOLARISINSTDIR)/vboxguest.conf
93 $(QUIET)$(CP) -f $(PATH_BIN)/additions/vboxguest $(SOLARISINSTDIR)/vboxguest
94 @#$(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARISINSTDIR)/vboxguest,)
95 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/VBoxClient $(SOLARISINSTDIR)/VBoxClient
96 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/VBoxService $(SOLARISINSTDIR)/VBoxService
97 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_13.so $(SOLARISINSTDIR)/vboxvideo_drv_13.so
98 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_14.so $(SOLARISINSTDIR)/vboxvideo_drv_14.so
99 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_70.so $(SOLARISINSTDIR)/vboxvideo_drv_70.so
100 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_71.so $(SOLARISINSTDIR)/vboxvideo_drv_71.so
101 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_14.so $(SOLARISINSTDIR)/vboxmouse_drv_14.so
102 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_70.so $(SOLARISINSTDIR)/vboxmouse_drv_70.so
103 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_71.so $(SOLARISINSTDIR)/vboxmouse_drv_71.so
104 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxdevlink.sed $(SOLARISINSTDIR)/etc/devlink.tab
105 $(call MSG_L1,Creating install package: $@)
106 $(QUIET)$(SOLARISINSTDIR)/makepackage.sh $(SOLARISINSTDIR) $(PKGFILENAME) 1>/dev/null 2>/dev/null
107 $(QUIET)$(INSTALL) -m 0644 $(SOLARISINSTDIR)/$(PKGFILENAME) $(PATH_BIN)/additions/$(PKGFILENAME)
108
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