rules revision b723b174d7132ab6bbff3abcd83c92530065f7da
af062818b47340eef15700d2f0211576ba3506eevboxsync# Copyright (C) 2006-2010 Oracle Corporation
af062818b47340eef15700d2f0211576ba3506eevboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
af062818b47340eef15700d2f0211576ba3506eevboxsync# available from http://www.virtualbox.org. This file is free software;
af062818b47340eef15700d2f0211576ba3506eevboxsync# you can redistribute it and/or modify it under the terms of the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync# General Public License as published by the Free Software Foundation,
af062818b47340eef15700d2f0211576ba3506eevboxsync# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
af062818b47340eef15700d2f0211576ba3506eevboxsync# distribution. VirtualBox OSE is distributed in the hope that it will
af062818b47340eef15700d2f0211576ba3506eevboxsync# be useful, but WITHOUT ANY WARRANTY of any kind.
af062818b47340eef15700d2f0211576ba3506eevboxsync# NOTE: if you make changes to this file, please check if the updates should
af062818b47340eef15700d2f0211576ba3506eevboxsync# be also applied to the publicly visible debian/rules file.
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync#export DH_VERBOSE=1
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync# possible overrides:
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync# OSE=1 force VBOX_OSE
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync# NOPARALLEL=1 compile with -j1
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync# LINUX=<dir> compile vboxdrv against Linux found in <dir>
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync# VERBOSE=1 verbose build
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync# DEBUG=1 debug build
af062818b47340eef15700d2f0211576ba3506eevboxsync# NOSUBVER=1 disable generation of the sub-version field (which is
af062818b47340eef15700d2f0211576ba3506eevboxsync# either the subversion rev [if available] or the build date)
af062818b47340eef15700d2f0211576ba3506eevboxsync# NODOCS=1 don't build docs, use precompiled UserManual.pdf and
af062818b47340eef15700d2f0211576ba3506eevboxsync# NOMODS=1 don't build any module
af062818b47340eef15700d2f0211576ba3506eevboxsync# NOQT=1 don't build the Qt GUI
af062818b47340eef15700d2f0211576ba3506eevboxsync# EFI include the EFI binary from prebuild
af062818b47340eef15700d2f0211576ba3506eevboxsync# VERSUFFIX=<suffix> set a particular package version suffix (e.g. _customer)
af062818b47340eef15700d2f0211576ba3506eevboxsync# HEADLESS=1 build the headless version
af062818b47340eef15700d2f0211576ba3506eevboxsync# NOWEBSVC=1 don't build the webservice API, default for OSE
af062818b47340eef15700d2f0211576ba3506eevboxsync# STAGEDISO=<path> don't build the VBoxAdditions, use the precompiled .iso
af062818b47340eef15700d2f0211576ba3506eevboxsync# BLEEDING_EDGE=xyz
af062818b47340eef15700d2f0211576ba3506eevboxsyncose := $(if $(OSE),1,$(if $(wildcard $(vboxroot)/src/VBox/RDP/server),,1))
debrel := $(if $(shell which lsb_release),_$(shell lsb_release -si)_$(shell lsb_release -sc),unknown)
dh_clean -k
rmdir $$i; \
sed \
if [ -f $$d/vboxdrv.ko -a -f $$d/vboxnetflt.ko -a -f $$d/vboxnetadp.ko ]; then \
install -D -g 0 -o 0 -m 0644 \
install -D -g 0 -o 0 -m 0644 \
install -D -g 0 -o 0 -m 0644 \
dh_link \
sed \
sed \
dh_strip --keep-debug --exclude=libQtCoreVBox.so.4 --exclude=libQtGuiVBox.so.4 --exclude=libQtNetworkVBox.so.4 --exclude=libQtOpenGLVBox.so.4 --exclude=libqtaccessiblewidgets.so
for f in \
# for some reason, the Qt libraries couldn't be found on newer releases (e.g. Ubuntu hardy)
dh_gencontrol -- \