Changeset 84968 in vbox for trunk/src/VBox/Installer/linux/debian/rules
- Timestamp:
- Jun 26, 2020 11:51:54 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/debian/rules
r82968 r84968 34 34 # either the subversion rev [if available] or the build date) 35 35 # NODOCS=1 don't build docs, use precompiled UserManual.pdf and 36 # VirtualBox.chm from $HOME36 # maybe VirtualBox.chm from $(vboxroot)/prebuild 37 37 # NOMODS=1 don't build any module 38 38 # NOQT=1 don't build the Qt GUI 39 # NOSDL=1 don't build VBoxSDL 39 40 # EFI=1 include the EFI binary from prebuild 40 41 # VERSUFFIX=<suffix> set a particular package version suffix (e.g. _customer) … … 43 44 # NOWEBSVC=1 don't build the webservice API, default for OSE 44 45 # STAGEDISO=<path> don't build the VBoxAdditions, use the precompiled .iso 46 # STAGEDCHM=<path> use VirtualBox*.chm from this directory 45 47 # PKGDIR=<path> where to store the final package(s) 46 48 # 47 # NODOCS will also be set if UserManual*.pdf and VirtualBox*.chm are placed in 48 # $(vboxroot)/prebuild. STAGEDISO will be set if VBoxGuestAdditions.iso is 49 # placed there. Wine will not be required to be available if both NODOCS and 50 # STAGEDISO are set. 49 # NODOCS will be set if UserManual*.pdf is placed in $(vboxroot)/prebuild. 50 # STAGEDISO will be set if VBoxGuestAdditions.iso is placed there. 51 # STAGEDCHM will be set if VirtualBox*.chm is placed there. 52 # VirtualBox*.chm is used if it is provided, but never attempted to be built. 53 # 54 # Wine will not be required if either NODOCS or STAGEDISO are set. 51 55 52 56 package := virtualbox 53 57 verpkg := virtualbox-6.1 54 58 current := $(shell pwd) 55 vboxroot := $(shell cd ../../../..; pwd)56 pkgdir := $(if $(PKGDIR),$(PKGDIR),$(shell cd ../../../../..; pwd))59 vboxroot := $(shell while ! test -r configure && ! test "$PWD" = "/"; do cd ..; done; pwd) 60 pkgdir := $(if $(PKGDIR),$(PKGDIR),$(shell cd $(vboxroot)/..; pwd)) 57 61 builddir := $(vboxroot)/out/debian/builddir 58 62 moddir := $(vboxroot)/out/debian/modules … … 64 68 -include $(vboxroot)/SVN_REVISION 65 69 svnrev :=$(if $(svn_revision),$(svn_revision),) 70 66 71 NOMODS ?= $(ose) 67 72 NOQT ?= $(HEADLESS) 73 NOSDL ?= $(HEADLESS) 68 74 NOWEBSVC ?= $(ose) 69 NODOCS ?= $(if $(wildcard $(vboxroot)/prebuild/UserManual*.pdf), $(if $(wildcard $(vboxroot)/prebuild/VirtualBox*.chm),1,),)75 NODOCS ?= $(if $(wildcard $(vboxroot)/prebuild/UserManual*.pdf),1,) 70 76 STAGEDISO ?= $(if $(wildcard $(vboxroot)/prebuild/VBoxGuestAdditions.iso),$(vboxroot)/prebuild,) 71 NOWINE := $(if $(NODOCS),$(if $(STAGEDISO),1,),)$(ose) 77 STAGEDCHM ?= $(if $(wildcard $(vboxroot)/prebuild/VirtualBox*.chm),$(vboxroot)/prebuild,) 78 NOWINE := $(if $(NODOCS),1,$(if $(STAGEDISO),1,$(ose))) 72 79 PYTHON := $(firstword $(shell which python) $(shell which python3)) 73 80 … … 100 107 101 108 cfg_flags := $(if $(NOQT),--disable-qt,) \ 109 $(if $(NOSDL),--disable-vboxsdl,) \ 102 110 $(if $(ose),--ose,) $(if $(LINUX),--with-linux=$(LINUX),) \ 103 111 $(if $(HEADLESS),--build-headless,) \ … … 116 124 VBOX_DO_STRIP= \ 117 125 VBOX_PATH_PACKAGE_DOCS="\"/usr/share/doc/$(verpkg)\"" \ 118 $(if $( ose),,VBOX_WITH_DOCS_CHM=1) \126 $(if $(STAGEDCHM),VBOX_WITH_DOCS_CHM=1,VBOX_WITH_KCHMVIEWER=) \ 119 127 VBOX_PACKAGE_DIST=$(debdist) \ 120 128 $(if $(svnrev),VBOX_SVN_REV=$(svnrev),) \ … … 134 142 . debian/env.sh && kmk -C $(vboxroot) $(bld_flags) $(if $(NOPARALLEL),-j1,) all 135 143 $(if $(NODOCS),cp $(vboxroot)/prebuild/UserManual*.pdf $(builddir)/bin,) 136 $(if $( NODOCS),cp $(vboxroot)/prebuild/VirtualBox*.chm $(builddir)/bin,)144 $(if $(STAGEDCHM),cp $(STAGEDCHM)/VirtualBox*.chm $(builddir)/bin,) 137 145 $(if $(EFI),cp $(vboxroot)/prebuild/VBoxEFI32.fd $(builddir)/bin,) 138 146 $(if $(EFI),cp $(vboxroot)/prebuild/VBoxEFI64.fd $(builddir)/bin,) … … 290 298 usr/bin/VBox usr/bin/VBoxManage \ 291 299 usr/bin/VBox usr/bin/vboxmanage \ 292 $(if $( HEADLESS),,usr/bin/VBoxusr/bin/VBoxSDL) \293 $(if $( HEADLESS),,usr/bin/VBoxusr/bin/vboxsdl) \300 $(if $(NOSDL),,usr/bin/VBox usr/bin/VBoxSDL) \ 301 $(if $(NOSDL),,usr/bin/VBox usr/bin/vboxsdl) \ 294 302 $(if $(ose),,usr/bin/VBox usr/bin/VBoxVRDP) \ 295 303 usr/bin/VBox usr/bin/VBoxHeadless \
Note:
See TracChangeset
for help on using the changeset viewer.