rules revision 90bfe7905f962c9c30f653670ac7fdadbd8f27cd
6215N/A#!/usr/bin/make -f
6215N/A#
6215N/A# Copyright (C) 2006-2010 Oracle Corporation
6215N/A#
6215N/A# This file is part of VirtualBox Open Source Edition (OSE), as
6215N/A# available from http://www.virtualbox.org. This file is free software;
6215N/A# you can redistribute it and/or modify it under the terms of the GNU
6215N/A# General Public License as published by the Free Software Foundation,
6215N/A# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
6215N/A# distribution. VirtualBox OSE is distributed in the hope that it will
6215N/A# be useful, but WITHOUT ANY WARRANTY of any kind.
6215N/A#
6215N/A
6215N/A#
6215N/A# NOTE: if you make changes to this file, please check if the updates should
6215N/A# be also applied to the publicly visible debian/rules file.
6215N/A#
6215N/A
6215N/A#export DH_VERBOSE=1
6215N/Aexport DH_COMPAT=4
6215N/A
6215N/A# possible overrides:
6215N/A# OSE=1 force VBOX_OSE
6215N/A# NOPARALLEL=1 compile with -j1
6215N/A# LINUX=<dir> compile vboxdrv against Linux found in <dir>
6215N/A# VERBOSE=1 verbose build
6215N/A# DEBUG=1 debug build
6215N/A# NOSUBVER=1 disable generation of the sub-version field (which is
6215N/A# either the subversion rev [if available] or the build date)
6215N/A# NODOCS=1 don't build docs, use precompiled UserManual.pdf and
6215N/A# VirtualBox.chm from $HOME
6215N/A# NOMODS=1 don't build any module
6215N/A# NOQT=1 don't build the Qt GUI
6215N/A# EFI include the EFI binary from prebuild
6215N/A# VERSUFFIX=<suffix> set a particular package version suffix (e.g. _customer)
6215N/A# HEADLESS=1 build the headless version
6215N/A# NOWEBSVC=1 don't build the webservice API, default for OSE
6215N/A# STAGEDISO=<path> don't build the VBoxAdditions, use the precompiled .iso
6215N/A# BLEEDING_EDGE=xyz
6215N/A
6215N/Apackage := virtualbox
6215N/Averpkg := virtualbox-4.0
6215N/Acurrent := $(shell pwd)
6215N/Avboxroot := $(shell cd ../../../..; pwd)
6215N/Apkgdir := $(shell cd ../../../../..; pwd)
6215N/Abuilddir := $(current)/debian/builddir
6215N/Amoddir := $(current)/debian/modules
6215N/Aprefix := $(current)/debian/$(verpkg)
6215N/Aarch := $(shell dpkg --print-architecture)
6215N/Averfile := $(builddir)/version-generated.mk
6215N/Aose := $(if $(OSE),1,$(if $(wildcard $(vboxroot)/src/VBox/RDP/server),,1))
6215N/A-include $(vboxroot)/SVN_REVISION
6215N/Asvnrev :=$(if $(svn_revision),$(svn_revision),0)
6215N/A
6215N/ANOMODS ?= $(ose)
6215N/ANOQT ?= $(HEADLESS)
6215N/ANOWEBSVC ?= $(ose)
6215N/ANOWINE := $(if $(NODOCS),$(if $(STAGEDISO),1,),)
6215N/A
6215N/Aifneq ($(wildcard $(verfile)),)
6215N/Ainclude $(verfile)
6215N/Aver := $(VBOX_VERSION_STRING)
6215N/Asvnver := $(if $(NOSUBVER),,$(if $(svn_revision),-$(svn_revision),$(shell if \
6215N/A svn info > /dev/null 2>&1; then \
6215N/A svn info|sed -e "s/^Revision: \(.*\)/-\1/;t;d"; else \
6215N/A date +"-%Y%m%d"; fi)))
6215N/Adebver :=$(subst _ALPHA,~alpha,$(subst _BETA,~beta,$(ver)))$(svnver)$(if \
6215N/A $(BLEEDING_EDGE),-$(BLEEDING_EDGE),)$(VERSUFFIX)$(if \
6215N/A $(HEADLESS),_headless,)$(if $(DEBUG),_dbg,)
6215N/Aarchdir := $(prefix)/opt/VirtualBox-$(ver)
6215N/Aendif
6215N/A
6215N/Aifneq ($(STAGEDISO),)
6215N/A ifeq ($(wildcard $(STAGEDISO)/VBoxGuestAdditions.iso),)
6215N/A $(error STAGEDISO='$(STAGEDISO)/VBoxGuestAdditions.iso' not found)
6215N/A endif
6215N/Aendif
6215N/A
6215N/Adebrel := $(if $(shell which lsb_release),_$(shell lsb_release -si)_$(shell lsb_release -sc),unknown)
6215N/A
6215N/A# shipping Linux kernel modules with bleeding-edge releases doesn't make sense
6215N/Ainstmod := $(if $(filter _Ubuntu_lucid _Debian_sid,$(debrel)),,1)
6215N/A
6215N/Aifneq ($(MAKECMDGOALS),clean)
6215N/A debdist := $(strip $(shell grep $(debrel) $(current)/distributions_deb | cut -d'=' -f2))
6215N/A ifeq ($(debdist),)
6215N/A $(error package distribution not detected (debrel=$(debrel)))
6215N/A endif
6215N/Aendif
6215N/A
6215N/A# Locations of custom built Qt libraries (see below)
6215N/Aqtstdc5 := /home/vbox/Qt-4.4.3-stdc++5-$(arch)
6215N/Aqtstdc6 := /home/vbox/Qt-4.4.3-stdc++6-$(arch)
6215N/A
6215N/Acfg_flags := $(if $(NOQT),--disable-qt,) \
6215N/A $(if $(ose),--ose,) $(if $(LINUX),--with-linux=$(LINUX),) \
6215N/A $(if $(filter _Debian_etch,$(debrel)),$(if $(ose),,--build-libcurl),) \
6215N/A $(if $(filter _Debian_etch _Ubuntu_hardy,$(debrel)),--with-qt4-dir=$(qtstdc6)) \
6215N/A $(if $(HEADLESS),--build-headless,) \
6215N/A $(if $(DEBUG),--build-debug,) \
6215N/A $(if $(NOWINE),,--setup-wine) \
6215N/A $(if $(NOWEBSVC),,--enable-webservice)
6215N/A
6215N/Abld_flags := AUTOCFG=$(current)/debian/AutoConfig.kmk \
6215N/A LOCALCFG=$(current)/debian/LocalConfig.kmk \
6215N/A PATH_OUT=$(current)/debian/builddir \
6215N/A VBOX_DO_STRIP= \
6215N/A VBOX_DO_STRIP_MODULES= \
6215N/A VBOX_WITH_MULTIVERSION_PYTHON= \
6215N/A VBOX_PATH_PACKAGE_DOCS="\"/usr/share/doc/$(verpkg)\"" \
6215N/A $(if $(ose),,VBOX_WITH_DOCS_CHM=1) \
6215N/A VBOX_PACKAGE_DIST=$(debdist) \
6215N/A VBOX_SVN_REV=$(svnrev) \
6215N/A $(if $(NODOCS),VBOX_WITH_DOCS= ,)\
6215N/A $(if $(VERBOSE),--print-directory KBUILD_VERBOSE=2,--no-print-directory) \
6215N/A $(if $(STAGEDISO),VBOX_WITHOUT_ADDITIONS=1,) \
6215N/A $(if $(BLEEDING_EDGE),VBOX_BLEEDING_EDGE=$(BLEEDING_EDGE),) \
6215N/A $(if $(filter _Debian_etch _Ubuntu_hardy,$(debrel)),,VBOX_WITH_SYSFS_BY_DEFAULT=1)
6215N/A
6215N/Aconfigure: debian/configure-stamp
6215N/Adebian/configure-stamp:
6215N/A dh_testdir
6215N/A cd $(vboxroot) && ./configure --odir=$(current)/debian $(cfg_flags)
6215N/A touch debian/configure-stamp
6215N/A
6215N/Abuild: debian/configure-stamp debian/build-stamp
6215N/Adebian/build-stamp $(verfile):
6215N/A dh_testdir
6215N/A . debian/env.sh && kmk -C $(vboxroot) $(bld_flags) $(if $(NOPARALLEL),-j1,) all
6215N/A $(if $(NODOCS),cp $(vboxroot)/prebuild/UserManual*.pdf $(builddir)/bin,)
6215N/A $(if $(NODOCS),cp $(vboxroot)/prebuild/VirtualBox*.chm $(builddir)/bin,)
6215N/A $(if $(EFI),cp $(vboxroot)/prebuild/VBoxEFI32.fd $(builddir)/bin,)
6215N/A $(if $(EFI),cp $(vboxroot)/prebuild/VBoxEFI64.fd $(builddir)/bin,)
6215N/A mkdir -p $(builddir)/bin/additions
6215N/A $(if $(STAGEDISO),cp $(STAGEDISO)/VBoxGuestAdditions.iso $(builddir)/bin/additions,)
6215N/A . debian/env.sh && kmk -C $(vboxroot) $(bld_flags) \
6215N/A VBOX_NO_LINUX_RUN_INSTALLER=1 \
6215N/A VBOX_LNX_ADD_ARCHIVE.x86=$(builddir)/bin/additions/VBoxGuestAdditions-x86-r$(svnrev).tar.bz2 \
6215N/A VBOX_LNX_ADD_ARCHIVE.amd64=$(builddir)/bin/additions/VBoxGuestAdditions-amd64-r$(svnrev).tar.bz2 \
6215N/A VBOX_PATH_ADDITIONS.linux.x86=$(builddir)/bin/additions \
6215N/A VBOX_PATH_ADDITIONS.linux.amd64=$(builddir)/bin/additions \
6215N/A packing
6215N/A touch debian/build-stamp
6215N/A
6215N/A# Build modules for every kernel we find in /lib/modules/*
6215N/Amodules: debian/build-stamp debian/modules-stamp
6215N/Adebian/modules-stamp: debian/build-stamp
6215N/A rm -rf $(moddir)
6215N/A mkdir $(moddir)
6215N/A make -C $(builddir)/bin/src/vboxdrv clean
6215N/A for d in $(wildcard /lib/modules/*); do \
6215N/A if [ -L $$d/build ]; then \
6215N/A make -C $(builddir)/bin/src/vboxdrv KERN_DIR=$$d/build MODULE_DIR=$$d clean && \
6215N/A make -j4 -C $(builddir)/bin/src/vboxdrv KBUILD_VERBOSE= KERN_DIR=$$d/build MODULE_DIR=$$d all \
6215N/A $(if $(instmod),&& install -D -m 0644 -g 0 -o 0 \
6215N/A $(builddir)/bin/src/vboxdrv/vboxdrv.ko $(moddir)/$$(basename $$d)/vboxdrv.ko); \
6215N/A make -C $(builddir)/bin/src/vboxnetflt KERN_DIR=$$d/build MODULE_DIR=$$d clean && \
6215N/A (cp $(builddir)/bin/src/vboxdrv/Module.symvers $(builddir)/bin/src/vboxnetflt || true) && \
6215N/A make -j4 -C $(builddir)/bin/src/vboxnetflt KBUILD_VERBOSE= KERN_DIR=$$d/build MODULE_DIR=$$d all \
6215N/A $(if $(instmod),&& install -D -m 0644 -g 0 -o 0 \
6215N/A $(builddir)/bin/src/vboxnetflt/vboxnetflt.ko $(moddir)/$$(basename $$d)/vboxnetflt.ko); \
6215N/A make -C $(builddir)/bin/src/vboxnetadp KERN_DIR=$$d/build MODULE_DIR=$$d clean && \
6215N/A (cp $(builddir)/bin/src/vboxdrv/Module.symvers $(builddir)/bin/src/vboxnetadp || true) && \
6215N/A make -j4 -C $(builddir)/bin/src/vboxnetadp KBUILD_VERBOSE= KERN_DIR=$$d/build MODULE_DIR=$$d all \
6215N/A $(if $(instmod),&& install -D -m 0644 -g 0 -o 0 \
6215N/A $(builddir)/bin/src/vboxnetadp/vboxnetadp.ko $(moddir)/$$(basename $$d)/vboxnetadp.ko); \
6215N/A fi; \
6215N/A done
6215N/A make -C $(builddir)/bin/src/vboxdrv clean
6215N/A make -C $(builddir)/bin/src/vboxnetflt clean
6215N/A make -C $(builddir)/bin/src/vboxnetadp clean
6215N/A touch debian/modules-stamp
6215N/A
6215N/Aclean:
6215N/A dh_testdir
6215N/A dh_testroot
6215N/A rm -f debian/changelog debian/preinst debian/postinst debian/prerm
6215N/A rm -f debian/$(package).init debian/vboxdrv.init debian/vboxweb-service.init
6215N/A rm -f debian/AutoConfig.kmk debian/configure.log debian/env.sh
6215N/A rm -f debian/modules-stamp debian/build-stamp debian/configure-stamp
6215N/A rm -f debian/virtualbox-*.substvars debian/virtualbox*.debhelper
6215N/A rm -f debian/$(verpkg).mime
6215N/A rm -rf $(builddir) $(moddir)
6215N/A rm -rf debian/wine.*
6215N/A dh_clean
6215N/A
6215N/Aifeq ($(VBOX_VERSION_MAJOR),)
6215N/Abinary binary-arch binary-indep: build $(verfile)
6215N/A $(MAKE) -f debian/rules binary
6215N/Aelse
6215N/A# Build architecture-dependent files here.
6215N/Abinary binary-arch binary-indep: build $(if $(NOMODS),,modules)
6215N/A dh_testdir
6215N/A dh_testroot
6215N/A dh_clean -k
6215N/A dh_installdirs
6215N/A tar -xjC $(prefix)/opt -f $(builddir)/bin/VirtualBox.tar.bz2
6215N/A install -d -g 0 -o 0 $(prefix)/usr/share/applications
6215N/A install -d -g 0 -o 0 $(prefix)/usr/lib
6215N/A install -d -g 0 -o 0 $(prefix)/usr/bin
6215N/A install -d -g 0 -o 0 $(prefix)/usr/lib/$(package)
6215N/A install -d -g 0 -o 0 $(prefix)/usr/share/$(package)
6215N/A install -d -g 0 -o 0 $(prefix)/usr/share/doc/$(verpkg)
6215N/A $(if $(NOQT),,mv $(archdir)/virtualbox.desktop \
6215N/A $(prefix)/usr/share/applications/virtualbox.desktop)
6215N/A install -d -g 0 -o 0 $(prefix)/usr/share/pixmaps
6215N/A install -d -g 0 -o 0 $(prefix)/usr/share/icons/hicolor
6215N/A cd $(archdir)/icons; for i in *; do \
6215N/A install -d -g 0 -o 0 $(prefix)/usr/share/icons/hicolor/$$i/mimetypes; \
6215N/A mv $$i/* $(prefix)/usr/share/icons/hicolor/$$i/mimetypes; \
6215N/A rmdir $$i; \
6215N/A done
6215N/A rmdir $(archdir)/icons
6215N/A install -d -g 0 -o 0 $(prefix)/usr/lib/$(package)/ExtensionPacks
6215N/A mv $(archdir)/virtualbox.xml debian/$(verpkg).sharedmimeinfo
6215N/A install -d -g 0 -o 0 $(prefix)/usr/share/lintian/overrides
6215N/A sed \
6215N/A -e 's|%VERPKG%|$(verpkg)|g' \
6215N/A debian/lintian-override.in > \
6215N/A $(prefix)/usr/share/lintian/overrides/$(verpkg)
6215N/A mv $(archdir)/VBoxEFI32.fd $(prefix)/usr/lib/$(package)
6215N/A mv $(archdir)/VBoxEFI64.fd $(prefix)/usr/lib/$(package)
6215N/A mv $(archdir)/VBox.png \
6215N/A $(prefix)/usr/share/pixmaps/VBox.png
6215N/A mv $(archdir)/*.gc $(prefix)/usr/lib/$(package)
6215N/A mv $(archdir)/*.r0 $(prefix)/usr/lib/$(package)
6215N/A mv $(archdir)/*.rel $(prefix)/usr/lib/$(package) || true
6215N/A mv $(archdir)/VBoxNetDHCP $(prefix)/usr/lib/$(package)
6215N/A mv $(archdir)/VBoxNetAdpCtl $(prefix)/usr/lib/$(package)
6215N/A mv $(archdir)/VBoxXPCOMIPCD $(prefix)/usr/lib/$(package)
6215N/A mv $(archdir)/components $(prefix)/usr/lib/$(package)/components
6215N/A mv $(archdir)/*.so $(prefix)/usr/lib/$(package)
6215N/A mv $(archdir)/*.so.4 $(prefix)/usr/lib/$(package) || true
6215N/A $(if $(NOQT),,mv $(archdir)/VBoxTestOGL $(prefix)/usr/lib/$(package))
6215N/A $(if $(NOQT),,mv $(archdir)/nls $(prefix)/usr/share/$(package))
6215N/A mv $(archdir)/src $(prefix)/usr/share/$(package)
6215N/A rm $(archdir)/VBox.sh
6215N/A export VBOX_INSTALL_PATH=/usr/lib/$(package) && \
6215N/A cd ./debian/builddir/bin/sdk/installer && \
6215N/A python ./vboxapisetup.py install --root $(prefix)
6215N/A rm -rf $(archdir)/sdk/installer
6215N/A mv $(archdir)/vboxshell.py $(prefix)/usr/lib/$(package)
6215N/A mv $(archdir)/sdk $(prefix)/usr/lib/$(package)
6215N/A install -D -g 0 -o 0 -m 644 debian/VBox.sh $(prefix)/usr/bin/VBox
6215N/A mv $(archdir)/VBoxSysInfo.sh $(prefix)/usr/share/$(package)
6215N/A mv $(archdir)/VBoxCreateUSBNode.sh $(prefix)/usr/share/$(package)
6215N/A for i in VBoxManage VBoxSVC $(if $(HEADLESS),,VBoxSDL) \
6215N/A $(if $(NOQT),,VirtualBox) VBoxHeadless \
6215N/A VBoxExtPackHelperApp \
6215N/A $(if $(NOWEBSVC),,vboxwebsrv webtest); do \
6215N/A mv $(archdir)/$$i $(prefix)/usr/lib/$(package); done
6215N/A mv $(archdir)/VBoxTunctl $(prefix)/usr/bin
6215N/A $(if $(NOMODS),,for d in $(moddir)/*; do \
6215N/A if [ -f $$d/vboxdrv.ko -a -f $$d/vboxnetflt.ko -a -f $$d/vboxnetadp.ko ]; then \
6215N/A install -D -g 0 -o 0 -m 0644 \
6215N/A $$d/vboxdrv.ko $(prefix)/lib/modules/$$(basename $$d)/misc/vboxdrv.ko; \
6215N/A install -D -g 0 -o 0 -m 0644 \
6215N/A $$d/vboxnetflt.ko $(prefix)/lib/modules/$$(basename $$d)/misc/vboxnetflt.ko; \
6215N/A install -D -g 0 -o 0 -m 0644 \
6215N/A $$d/vboxnetadp.ko $(prefix)/lib/modules/$$(basename $$d)/misc/vboxnetadp.ko; \
6215N/A fi \
6215N/A done)
6215N/Aifeq ($(ose),)
6215N/A $(if $(NOQT),,mv $(archdir)/kchmviewer $(prefix)/usr/lib/$(package))
6215N/A dh_installdocs \
6215N/A $(archdir)/UserManual*.pdf $(archdir)/VirtualBox*.chm \
6215N/A $(addprefix $(archdir)/, LICENSE)
6215N/A rm $(addprefix $(archdir)/,UserManual*.pdf VirtualBox*.chm \
6215N/A LICENSE)
6215N/A for i in rdesktop-vrdp.tar.gz additions/VBoxGuestAdditions.iso; do \
6215N/A mv $(archdir)/$$i $(prefix)/usr/share/$(package); done
6215N/A $(if $(HEADLESS),,mv $(archdir)/rdesktop-vrdp $(prefix)/usr/bin)
6215N/A $(if $(HEADLESS),,mv $(archdir)/rdesktop-vrdp-keymaps $(prefix)/usr/share/$(package))
6215N/A if [ -d $(archdir)/accessible ]; then mv $(archdir)/accessible $(prefix)/usr/lib/virtualbox; fi
6215N/Aelse
6215N/A dh_installdocs \
6215N/A $(archdir)/UserManual*.pdf
6215N/A rm $(addprefix $(archdir)/,UserManual*.pdf)
6215N/A for i in additions/VBoxGuestAdditions.iso; do \
6215N/A mv $(archdir)/$$i $(prefix)/usr/share/$(package); done
6215N/Aendif
6215N/A rmdir $(archdir)/additions
6215N/A rmdir $(archdir)
6215N/A rmdir $(prefix)/opt
6215N/A dh_link \
6215N/A $(if $(NOQT),,usr/bin/VBox usr/bin/VirtualBox) \
6215N/A $(if $(NOQT),,usr/bin/VBox usr/bin/virtualbox) \
6215N/A usr/bin/VBox usr/bin/VBoxManage \
6215N/A usr/bin/VBox usr/bin/vboxmanage \
6215N/A $(if $(HEADLESS),,usr/bin/VBox usr/bin/VBoxSDL) \
6215N/A $(if $(HEADLESS),,usr/bin/VBox usr/bin/vboxsdl) \
6215N/A $(if $(ose),,usr/bin/VBox usr/bin/VBoxVRDP) \
6215N/A usr/bin/VBox usr/bin/VBoxHeadless \
6215N/A usr/bin/VBox usr/bin/vboxheadless \
6215N/A $(if $(NOWEBSVC),,usr/bin/VBox usr/bin/vboxwebsrv) \
6215N/A usr/share/virtualbox/src/vboxhost usr/src/vboxhost-$(ver)
6215N/A dh_desktop
6215N/A $(if $(NOMODS),,dh_installmodules)
6215N/A sed \
6215N/A -e 's|%NOLSB%||g' \
6215N/A -e 's|%DEBIAN%|yes|g' \
6215N/A -e 's|%PACKAGE%|virtualbox|g' \
6215N/A -e "s|%GROUP%|$(if $(VBOX_WITHOUT_HARDENING),vboxusers,root)|g" \
6215N/A $(vboxroot)/src/VBox/Installer/linux/vboxdrv.sh.in > debian/vboxdrv.init
6215N/A dh_installinit --name=vboxdrv --noscripts
6215N/A sed \
6215N/A -e 's|%NOLSB%||g' \
6215N/A -e 's|%DEBIAN%|yes|g' \
6215N/A -e 's|%PACKAGE%|virtualbox|g' \
6215N/A $(vboxroot)/src/VBox/Installer/linux/vboxweb-service.sh.in > debian/vboxweb-service.init
6215N/A dh_installinit --name=vboxweb-service --noscripts
6215N/A sed -e 's|%VER%|$(debver)|g' \
6215N/A -e 's|%DATE%|$(shell date -R)|g' \
6215N/A -e 's|%DEBREL%|$(subst _,~,$(debrel))|g' \
6215N/A -e 's|%VERPKG%|$(verpkg)|g' \
6215N/A debian/changelog.in > debian/changelog
6215N/A cat debian/preinst.in | sed -e 's|%VER%|$(ver)|g' > debian/preinst
6215N/A cat debian/prerm.in | sed -e 's|%VER%|$(ver)|g' > debian/prerm
6215N/A cat debian/postinst.in | sed -e 's|%VER%|$(ver)|g' > debian/postinst
6215N/A dh_installdebconf
6215N/A dh_installchangelogs
6215N/A dh_installmenu
6215N/A dh_installmime
6215N/A dh_link
6215N/Aifeq ($(DEBUG),)
6215N/A dh_strip --keep-debug --exclude=libQtCoreVBox.so.4 --exclude=libQtGuiVBox.so.4 --exclude=libQtNetworkVBox.so.4 --exclude=libQtOpenGLVBox.so.4 --exclude=libqtaccessiblewidgets.so
6215N/A # manually strip our R0/GC modules, dh_strip cannot handle them
6215N/A for f in \
6215N/A $(prefix)/usr/lib/$(package)/*.r0 $(prefix)/usr/lib/$(package)/*.gc; do \
6215N/A objcopy --only-keep-debug \
6215N/A $$f \
6215N/A $(prefix)/usr/lib/debug/usr/lib/$(package)/`basename $$f`; \
6215N/A strip -S --remove-section=.comment $$f; \
6215N/A objcopy --add-gnu-debuglink=$(prefix)/usr/lib/debug/usr/lib/$(package)/`basename $$f` $$f; \
6215N/A done
6215N/Aendif
6215N/A mkdir -p $(current)/debian/$(verpkg)-dbg/usr/lib
6215N/Aifeq ($(DEBUG),)
6215N/A mv $(current)/debian/$(verpkg)/usr/lib/debug $(current)/debian/$(verpkg)-dbg/usr/lib
6215N/Aendif
6215N/A dh_pycentral
6215N/A dh_compress -X.pdf -X.chm -X LICENSE -X.py
6215N/A dh_fixperms
6215N/A dh_makeshlibs
6215N/A dh_installdeb
6215N/A dh_perl
6215N/A # for some reason, the Qt libraries couldn't be found on newer releases (e.g. Ubuntu hardy)
6215N/A LD_LIBRARY_PATH=$(prefix)/usr/lib/virtualbox dh_shlibdeps
6215N/A dh_gencontrol -- \
6215N/A -Valsa=$(if $(HEADLESS),,libasound2) \
6215N/A -Vpulse=$(if $(HEADLESS),,libpulse0) \
6215N/A -Vsdlttf=$(if $(HEADLESS),,libsdl-ttf2.0-0) \
6215N/A -Vdkms=$(if $(filter _Debian_etch _Debian_lenny,$(debrel)),,dkms)
6215N/A dh_md5sums
6215N/A dh_builddeb --destdir $(pkgdir)
6215N/Aendif
6215N/A
6215N/A.PHONY: binary modules binary-arch binary-indep clean checkroot
6215N/A