rules revision 4726db8b47db329039ce8f8e13ecd2c1f696fa60
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync#export DH_VERBOSE=1
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync# possible overrides:
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync# OSE=1 force VBOX_OSE
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync# NOPARALLEL=1 compile with -j1 (-j2 is default)
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync# LINUX=<dir> compile vboxdrv against Linux found in <dir>
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync# VERBOSE=1 verbose build
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync# DEBUG=1 debug build
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync# NOSUBVER=1 disable generation of the sub-version field (which is
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync# either the subversion rev [if available] or the build date)
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync# NODOCS=1 don't build docs, use precompiled UserManual.pdf and
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync# HEADLESS=1 build the headless version
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync# STAGEDISO=<path> don't build the VBoxAdditions, use the precompiled .iso
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsyncose := $(if $(OSE),1,$(if $(wildcard $(vboxroot)/src/VBox/Devices/USB),,1))
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsyncifeq ($(wildcard $(STAGEDISO)/VBoxGuestAdditions.iso),)
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync$(error STAGEDISO='$(STAGEDISO)/VBoxGuestAdditions.iso' not found)
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync# Hack: Xandros is actually Debian/sarge ... :(
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsyncdebrel := $(if $(shell which lsb_release),_$(shell lsb_release -si)_$(shell lsb_release -sc),)
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync# Ubuntu dapper: gcc-4.0 does not work with recompiler, use gcc-3.4 instead
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync# Debian sarge: libhal-devel 0.4.7 is too old
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync cd $(vboxroot) && ./configure --odir=$(current)/debian $(if \
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync $(ose),--ose,) $(if $(LINUX),--with-linux=$(LINUX),) $(if \
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync $(filter _Ubuntu_dapper,$(debrel)),--with-gcc=gcc-3.4 --with-g++=g++-3.4,) $(if \
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync $(filter _xandros4.1 _Debian_sarge,$(debrel)),--without-hal,) $(if \
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync $(filter _xandros4.1,$(debrel)),--build-xalan,) $(if \
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync $(filter _xandros4.1 _ucs1.3,$(debrel)),--disable-sdl-ttf,) $(if \
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync $(VERBOSE),--print-directory,--no-print-directory) $(if \
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync VBOX_WITH_LINUX_ADDITIONS= VBOX_WITH_WIN32_ADDITIONS=,) \
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync $(HEADLESS),LocalConfig-headless.kmk,LocalConfig.kmk) \
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync $(if $(NODOCS),cp $(vboxroot)/prebuild/UserManual.pdf $(builddir)/bin,)
01bfc3834fc0d724e808adf928b2bfe541f9f211vboxsync $(if $(NODOCS),cp $(vboxroot)/prebuild/VirtualBox.chm $(builddir)/bin,)
dh_clean -k
install -D -g 0 -o 0 -m 0644 \
dh_link \