Makefile.kmk revision f902ede7eb073d09a81c1d470c089c7b14921714
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# Makefile for the Solaris guest additions base directory.
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# Copyright (C) 2008 innotek GmbH
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# available from http://www.virtualbox.org. This file is free software;
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# you can redistribute it and/or modify it under the terms of the GNU
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# General Public License (GPL) as published by the Free Software
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncDEPTH ?= ../../../..
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncSUB_DEPTH = ..
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncinclude $(PATH_KBUILD)/subheader.kmk
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncifneq ($(BUILD_PLATFORM),solaris)
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync$(error "The Solaris guest additions installer can only be built on Solaris!")
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncPKGFILENAME := VBoxSolarisAdditions
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncPKGINFO_ARCH = $(shell uname -p)
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncVBOX_PATH_SOLARIS_ADDITION_INSTALLER := $(PATH_SUB_CURRENT)/Installer
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncVBOX_PATH_X11_ADDITION_INSTALLER := $(PATH_ROOT)/src/VBox/Additions/x11/installer
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncSOLARISINSTDIR := $(PATH_TARGET)/install
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncifeq ($(BUILD_TYPE),debug)
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync BIN_COPY := $(CP) -f
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync BIN_COPY_SYMBOLS := $(CP) -f
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync BIN_COPY := /usr/sfw/bin/gobjcopy -S -R .comment
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync BIN_COPY_SYMBOLS := /usr/sfw/bin/gobjcopy -g -R .comment
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncPACKING += $(PATH_BIN)/additions/$(PKGFILENAME)
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncOTHER_CLEAN += $(PACKING)
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncinclude $(PATH_KBUILD)/subfooter.kmk
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_VERSION_STAMP) \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl \
f902ede7eb073d09a81c1d470c089c7b14921714vboxsync $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl \
97674677e4f2aeae576c39f966568dd664ba7979vboxsync $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf \
18673eee0624b4581d3d56ab9ad9d10ebc7f5bddvboxsync $(VBOX_PATH_X11_ADDITION_INSTALLER)/VBoxRandR.sh \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf \
f6cc81e94c29cc9b39b896cf32ecfe0501b4a1e5vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxdevlink.sed \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(PATH_SUB_CURRENT)/solaris/Makefile.kmk
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(call MSG_L1,Installing guest additions)
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync @# Clear out the existing package files if needed
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)rm -rf $(SOLARISINSTDIR)
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(MKDIR) -p $(SOLARISINSTDIR)
f6cc81e94c29cc9b39b896cf32ecfe0501b4a1e5vboxsync $(QUIET)$(MKDIR) -p $(SOLARISINSTDIR)/etc
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(SED) \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync --output $(SOLARISINSTDIR)/vboxguest.pkginfo \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh $(SOLARISINSTDIR)/makepackage.sh
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh $(SOLARISINSTDIR)/postinstall.sh
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh $(SOLARISINSTDIR)/preremove.sh
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh $(SOLARISINSTDIR)/vboxguest.sh
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml $(SOLARISINSTDIR)/vboxservice.xml
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient $(SOLARISINSTDIR)/1099.vboxclient
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl $(SOLARISINSTDIR)/x11config.pl
f902ede7eb073d09a81c1d470c089c7b14921714vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl $(SOLARISINSTDIR)/x11restore.pl
97674677e4f2aeae576c39f966568dd664ba7979vboxsync $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf $(SOLARISINSTDIR)/solaris_xorg.conf
18673eee0624b4581d3d56ab9ad9d10ebc7f5bddvboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/VBoxRandR.sh $(SOLARISINSTDIR)/VBoxRandR.sh
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf $(SOLARISINSTDIR)/vboxguest.conf
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(CP) -f $(PATH_BIN)/additions/vboxguest $(SOLARISINSTDIR)/vboxguest
f902ede7eb073d09a81c1d470c089c7b14921714vboxsync @#$(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARISINSTDIR)/vboxguest,)
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/VBoxClient $(SOLARISINSTDIR)/VBoxClient
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/VBoxService $(SOLARISINSTDIR)/VBoxService
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_13.so $(SOLARISINSTDIR)/vboxvideo_drv_13.so
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_14.so $(SOLARISINSTDIR)/vboxvideo_drv_14.so
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_70.so $(SOLARISINSTDIR)/vboxvideo_drv_70.so
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_71.so $(SOLARISINSTDIR)/vboxvideo_drv_71.so
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_14.so $(SOLARISINSTDIR)/vboxmouse_drv_14.so
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_70.so $(SOLARISINSTDIR)/vboxmouse_drv_70.so
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_71.so $(SOLARISINSTDIR)/vboxmouse_drv_71.so
f6cc81e94c29cc9b39b896cf32ecfe0501b4a1e5vboxsync $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxdevlink.sed $(SOLARISINSTDIR)/etc/devlink.tab
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(call MSG_L1,Creating install package: $@)
84bebd094718692856715fb7ed9e592c9421e039vboxsync $(QUIET)$(SOLARISINSTDIR)/makepackage.sh $(SOLARISINSTDIR) $(PKGFILENAME) 1>/dev/null 2>/dev/null
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(INSTALL) -m 0644 $(SOLARISINSTDIR)/$(PKGFILENAME) $(PATH_BIN)/additions/$(PKGFILENAME)