VirtualBox

Changeset 84968 in vbox for trunk/debian/rules


Ignore:
Timestamp:
Jun 26, 2020 11:51:54 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138846
Message:

Installer/linux: Bring DEB build/package to same functionality as the recent changes for RPM (needing WINE less often, due to not building the CHM docs). Additionally a very crude (manually specified package deps are still present) way of suppressing the build of VBoxSDL, as another measure to make the functionality as identical as possible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/rules

    r82721 r84968  
    66
    77#
    8 # Copyright (C) 2006-2019 Oracle Corporation
     8# Copyright (C) 2006-2020 Oracle Corporation
    99#
    1010# This file is part of VirtualBox Open Source Edition (OSE), as
     
    2929#                   either the subversion rev [if available] or the build date)
    3030#  NODOCS=1         don't build docs, use precompiled UserManual.pdf and
    31 #                   VirtualBox.chm from $HOME
     31#                   maybe VirtualBox.chm from $(vboxroot)/prebuild
    3232#  NOMODS=1         don't build any module
    3333#  NOQT=1           don't build the Qt GUI
     34#  NOSDL=1          don't build VBoxSDL
    3435#  EFI=1            include the EFI binary from prebuild
    3536#  HEADLESS=1       build the headless version
     
    3738#  NOWEBSVC=1       don't build the webservice API, default for OSE
    3839#  STAGEDISO=<path> don't build the VBoxAdditions, use the precompiled .iso
     40#  STAGEDCHM=<path> use VirtualBox*.chm from this directory
    3941#  PKGDIR=<path>    where to store the final package(s)
     42#
     43# NODOCS will be set if UserManual*.pdf is placed in $(vboxroot)/prebuild.
     44# STAGEDISO will be set if VBoxGuestAdditions.iso is placed there.
     45# STAGEDCHM will be set if VirtualBox*.chm is placed there.
     46# VirtualBox*.chm is used if it is provided, but never attempted to be built.
     47#
     48# Wine will not be required if either NODOCS or STAGEDISO are set.
    4049
    4150package  := virtualbox
     
    5059verfile  := $(builddir)/version-generated.mk
    5160ose      := $(if $(OSE),1,$(if $(wildcard $(vboxroot)/src/VBox/RDP/server),,1))
     61
    5262NOMODS   ?= $(ose)
    5363NOQT     ?= $(HEADLESS)
     64NOSDL    ?= $(HEADLESS)
    5465NOWEBSVC ?= $(ose)
    55 NOWINE   := $(if $(NODOCS),$(if $(STAGEDISO),1,),)$(ose)
     66NODOCS   ?= $(if $(wildcard $(vboxroot)/prebuild/UserManual*.pdf),1,)
     67STAGEDISO ?= $(if $(wildcard $(vboxroot)/prebuild/VBoxGuestAdditions.iso),$(vboxroot)/prebuild,)
     68STAGEDCHM ?= $(if $(wildcard $(vboxroot)/prebuild/VirtualBox*.chm),$(vboxroot)/prebuild,)
     69NOWINE   := $(if $(NODOCS),1,$(if $(STAGEDISO),1,$(ose)))
    5670PYTHON   := $(firstword $(shell which python) $(shell which python3))
    5771
     
    7185
    7286cfg_flags := $(if $(NOQT),--disable-qt,) \
     87             $(if $(NOSDL),--disable-vboxsdl,) \
    7388             $(if $(ose),--ose,) $(if $(LINUX),--with-linux=$(LINUX),) \
    7489             $(if $(HEADLESS),--build-headless,) \
     
    87102             VBOX_DO_STRIP= \
    88103             VBOX_PATH_PACKAGE_DOCS="\"/usr/share/doc/$(verpkg)\"" \
    89              $(if $(ose),,VBOX_WITH_DOCS_CHM=1) \
     104             $(if $(STAGEDCHM),VBOX_WITH_DOCS_CHM=1,VBOX_WITH_KCHMVIEWER=) \
    90105             $(if $(svnrev),VBOX_SVN_REV=$(svnrev),) \
    91106             $(if $(NODOCS),VBOX_WITH_DOCS= ,) \
     
    104119        . debian/env.sh && kmk -C $(vboxroot) $(bld_flags) $(if $(NOPARALLEL),-j1,) all
    105120        $(if $(NODOCS),cp $(vboxroot)/prebuild/UserManual*.pdf $(builddir)/bin,)
    106         $(if $(NODOCS),cp $(vboxroot)/prebuild/VirtualBox*.chm $(builddir)/bin,)
     121        $(if $(STAGEDCHM),cp $(STAGEDCHM)/VirtualBox*.chm $(builddir)/bin,)
    107122        $(if $(EFI),cp $(vboxroot)/prebuild/VBoxEFI32.fd $(builddir)/bin,)
    108123        $(if $(EFI),cp $(vboxroot)/prebuild/VBoxEFI64.fd $(builddir)/bin,)
     
    259274            usr/bin/VBox                        usr/bin/VBoxManage \
    260275            usr/bin/VBox                        usr/bin/vboxmanage \
    261             $(if $(HEADLESS),,usr/bin/VBox      usr/bin/VBoxSDL) \
    262             $(if $(HEADLESS),,usr/bin/VBox      usr/bin/vboxsdl) \
     276            $(if $(NOSDL),,usr/bin/VBox         usr/bin/VBoxSDL) \
     277            $(if $(NOSDL),,usr/bin/VBox         usr/bin/vboxsdl) \
    263278            $(if $(ose),,usr/bin/VBox           usr/bin/VBoxVRDP) \
    264279            usr/bin/VBox                        usr/bin/VBoxHeadless \
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette