VirtualBox

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

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

Solaris Additions: attempted fix for VBoxClient on Indiana.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.9 KB
Line 
1# $Id: Makefile.kmk 8162 2008-04-18 16:36:33Z vboxsync $
2## @file
3# Makefile for the Solaris guest additions base directory.
4#
5
6#
7# Copyright (C) 2008 Sun Microsystems, Inc.
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# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22DEPTH ?= ../../../..
23SUB_DEPTH = ..
24include $(PATH_KBUILD)/subheader.kmk
25
26ifneq ($(BUILD_PLATFORM),solaris)
27$(error "The Solaris guest additions installer can only be built on Solaris!")
28endif
29
30ifeq ($(BUILD_PLATFORM),solaris)
31 include $(PATH_SUB_CURRENT)/SharedFolders/Makefile.kmk
32endif
33
34PKGFILENAME := VBoxSolarisAdditions.pkg
35PKGINFO_ARCH = $(shell uname -p)
36VBOX_PATH_SOLARIS_ADDITION_INSTALLER := $(PATH_SUB_CURRENT)/Installer
37VBOX_PATH_X11_ADDITION_INSTALLER := $(PATH_ROOT)/src/VBox/Additions/x11/installer
38SOLARISINSTDIR := $(PATH_TARGET)/install
39
40ifeq ($(BUILD_TYPE),debug)
41 BIN_COPY := $(CP) -f
42 BIN_COPY_SYMBOLS := $(CP) -f
43else
44 BIN_COPY := /usr/sfw/bin/gobjcopy -S -R .comment
45 BIN_COPY_SYMBOLS := /usr/sfw/bin/gobjcopy -g -R .comment
46endif
47
48PACKING += $(PATH_BIN)/additions/$(PKGFILENAME)
49OTHER_CLEAN += $(PACKING)
50
51include $(PATH_KBUILD)/subfooter.kmk
52
53$(PATH_BIN)/additions/VBoxSolarisAdditions.pkg: \
54 $(VBOX_VERSION_STAMP) \
55 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh \
56 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh \
57 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh \
58 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo \
59 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh \
60 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml \
61 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient \
62 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl \
63 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl \
64 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf \
65 $(VBOX_PATH_X11_ADDITION_INSTALLER)/VBoxRandR.sh \
66 $(PATH_BIN)/additions/vboxguest \
67 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf \
68 $(PATH_BIN)/additions/VBoxClient \
69 $(PATH_BIN)/additions/VBoxService \
70 $(PATH_BIN)/additions/vboxvideo_drv_13.so \
71 $(PATH_BIN)/additions/vboxvideo_drv_14.so \
72 $(PATH_BIN)/additions/vboxvideo_drv_70.so \
73 $(PATH_BIN)/additions/vboxvideo_drv_71.so \
74 $(PATH_BIN)/additions/vboxmouse_drv_14.so \
75 $(PATH_BIN)/additions/vboxmouse_drv_70.so \
76 $(PATH_BIN)/additions/vboxmouse_drv_71.so \
77 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxdevlink.sed \
78 $(PATH_SUB_CURRENT)/solaris/Makefile.kmk
79 $(call MSG_L1,Installing guest additions)
80 @# Clear out the existing package files if needed
81 $(QUIET)rm -rf $(SOLARISINSTDIR)
82 $(QUIET)$(MKDIR) -p $(SOLARISINSTDIR)
83 $(QUIET)$(MKDIR) -p $(SOLARISINSTDIR)/etc
84 $(QUIET)$(SED) \
85 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
86 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
87 --output $(SOLARISINSTDIR)/vboxguest.pkginfo \
88 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo
89 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh $(SOLARISINSTDIR)/makepackage.sh
90 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh $(SOLARISINSTDIR)/postinstall.sh
91 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh $(SOLARISINSTDIR)/preremove.sh
92 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh $(SOLARISINSTDIR)/vboxguest.sh
93 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml $(SOLARISINSTDIR)/vboxservice.xml
94 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.space $(SOLARISINSTDIR)/vboxguest.space
95 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_X11_ADDITION_INSTALLER)/vboxclient.desktop $(SOLARISINSTDIR)/vboxclient.desktop
96 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient $(SOLARISINSTDIR)/1099.vboxclient
97 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl $(SOLARISINSTDIR)/x11config.pl
98 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl $(SOLARISINSTDIR)/x11restore.pl
99 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf $(SOLARISINSTDIR)/solaris_xorg.conf
100 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/VBoxRandR.sh $(SOLARISINSTDIR)/VBoxRandR.sh
101 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf $(SOLARISINSTDIR)/vboxguest.conf
102 $(QUIET)$(CP) -f $(PATH_BIN)/additions/vboxguest $(SOLARISINSTDIR)/vboxguest
103 @#$(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARISINSTDIR)/vboxguest,)
104 $(QUIET)$(INSTALL) -m 0755 $(PATH_BIN)/additions/VBoxClient $(SOLARISINSTDIR)/VBoxClient
105 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARISINSTDIR)/VBoxClient,)
106 $(QUIET)$(INSTALL) -m 0755 $(PATH_BIN)/additions/VBoxService $(SOLARISINSTDIR)/VBoxService
107 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARISINSTDIR)/VBoxService,)
108 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_13.so $(SOLARISINSTDIR)/vboxvideo_drv_13.so
109 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_14.so $(SOLARISINSTDIR)/vboxvideo_drv_14.so
110 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_70.so $(SOLARISINSTDIR)/vboxvideo_drv_70.so
111 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_71.so $(SOLARISINSTDIR)/vboxvideo_drv_71.so
112 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_14.so $(SOLARISINSTDIR)/vboxmouse_drv_14.so
113 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_70.so $(SOLARISINSTDIR)/vboxmouse_drv_70.so
114 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_71.so $(SOLARISINSTDIR)/vboxmouse_drv_71.so
115 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxdevlink.sed $(SOLARISINSTDIR)/etc/devlink.tab
116 $(call MSG_L1,Creating install package: $@)
117 $(QUIET)$(SOLARISINSTDIR)/makepackage.sh $(SOLARISINSTDIR) $(PKGFILENAME)
118 $(QUIET)$(INSTALL) -m 0644 $(SOLARISINSTDIR)/$(PKGFILENAME) $(PATH_BIN)/additions/$(PKGFILENAME)
119
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