VirtualBox

source: vbox/trunk/src/VBox/Installer/linux/debian/rules@ 37178

Last change on this file since 37178 was 37088, checked in by vboxsync, 14 years ago

Installer/linux: split out udev rule installation in order to share the code among the different Linux installers, added a testcase and fixed a broken rule found by the testcase

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 17.0 KB
Line 
1#!/usr/bin/make -f
2#
3# Copyright (C) 2006-2011 Oracle Corporation
4#
5# This file is part of VirtualBox Open Source Edition (OSE), as
6# available from http://www.virtualbox.org. This file is free software;
7# you can redistribute it and/or modify it under the terms of the GNU
8# General Public License as published by the Free Software Foundation,
9# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
10# distribution. VirtualBox OSE is distributed in the hope that it will
11# be useful, but WITHOUT ANY WARRANTY of any kind.
12#
13
14#
15# NOTE: if you make changes to this file, please check if the updates should
16# be also applied to the publicly visible debian/rules file.
17#
18
19#export DH_VERBOSE=1
20export DH_COMPAT=4
21
22# possible overrides:
23# OSE=1 force VBOX_OSE
24# NOPARALLEL=1 compile with -j1
25# LINUX=<dir> compile vboxdrv against Linux found in <dir>
26# VERBOSE=1 verbose build
27# DEBUG=1 debug build
28# NOSUBVER=1 disable generation of the sub-version field (which is
29# either the subversion rev [if available] or the build date)
30# NODOCS=1 don't build docs, use precompiled UserManual.pdf and
31# VirtualBox.chm from $HOME
32# NOMODS=1 don't build any module
33# NOQT=1 don't build the Qt GUI
34# EFI include the EFI binary from prebuild
35# VERSUFFIX=<suffix> set a particular package version suffix (e.g. _customer)
36# HEADLESS=1 build the headless version
37# NOWEBSVC=1 don't build the webservice API, default for OSE
38# STAGEDISO=<path> don't build the VBoxAdditions, use the precompiled .iso
39# PKGDIR=<path> where to store the final package(s)
40# BLEEDING_EDGE=xyz
41
42package := virtualbox
43verpkg := virtualbox-4.0
44current := $(shell pwd)
45vboxroot := $(shell cd ../../../..; pwd)
46pkgdir := $(if $(PKGDIR),$(PKGDIR),$(shell cd ../../../../..; pwd))
47builddir := $(current)/debian/builddir
48moddir := $(current)/debian/modules
49prefix := $(current)/debian/$(verpkg)
50arch := $(shell dpkg --print-architecture)
51verfile := $(builddir)/version-generated.mk
52ose := $(if $(OSE),1,$(if $(wildcard $(vboxroot)/src/VBox/RDP/server),,1))
53-include $(vboxroot)/SVN_REVISION
54svnrev :=$(if $(svn_revision),$(svn_revision),0)
55
56NOMODS ?= $(ose)
57NOQT ?= $(HEADLESS)
58NOWEBSVC ?= $(ose)
59NOWINE := $(if $(NODOCS),$(if $(STAGEDISO),1,),)
60
61ifneq ($(wildcard $(verfile)),)
62include $(verfile)
63ver := $(VBOX_VERSION_STRING)
64svnver := $(if $(NOSUBVER),,$(if $(svn_revision),-$(svn_revision),$(shell if \
65 svn info > /dev/null 2>&1; then \
66 svn info|sed -e "s/^Revision: \(.*\)/-\1/;t;d"; else \
67 date +"-%Y%m%d"; fi)))
68debver :=$(subst _ALPHA,~alpha,$(subst _BETA,~beta,$(ver)))$(svnver)$(if \
69 $(BLEEDING_EDGE),-$(BLEEDING_EDGE),)$(VERSUFFIX)$(if \
70 $(HEADLESS),~headless,)$(if $(DEBUG),~dbg,)
71archdir := $(prefix)/opt/VirtualBox-$(ver)
72endif
73
74ifneq ($(STAGEDISO),)
75 ifeq ($(wildcard $(STAGEDISO)/VBoxGuestAdditions.iso),)
76 $(error STAGEDISO='$(STAGEDISO)/VBoxGuestAdditions.iso' not found)
77 endif
78endif
79
80debrel := $(if $(shell which lsb_release),_$(shell lsb_release -si)_$(shell lsb_release -sc),unknown)
81
82# shipping Linux kernel modules with bleeding-edge releases doesn't make sense
83instmod := $(if $(filter _Ubuntu_lucid _Ubuntu_maverick _Ubuntu_natty _Debian_sid,$(debrel)),,1)
84
85ifneq ($(MAKECMDGOALS),clean)
86 debdist := $(strip $(shell grep $(debrel) $(current)/distributions_deb | cut -d'=' -f2))
87 ifeq ($(debdist),)
88 $(error package distribution not detected (debrel=$(debrel)))
89 endif
90endif
91
92# Location of custom built Qt libraries (see below)
93qtstdc6 := /home/vbox/Qt-4.4.3-stdc++6-$(arch)
94
95cfg_flags := $(if $(NOQT),--disable-qt,) \
96 $(if $(ose),--ose,) $(if $(LINUX),--with-linux=$(LINUX),) \
97 $(if $(filter _Ubuntu_hardy,$(debrel)),--with-qt4-dir=$(qtstdc6)) \
98 $(if $(HEADLESS),--build-headless,) \
99 $(if $(DEBUG),--build-debug,) \
100 $(if $(NOWINE),,--setup-wine) \
101 $(if $(NOWEBSVC),,--enable-webservice)
102
103bld_flags := AUTOCFG=$(current)/debian/AutoConfig.kmk \
104 LOCALCFG=$(current)/debian/LocalConfig.kmk \
105 PATH_OUT=$(current)/debian/builddir \
106 VBOX_WITHOUT_EXTPACK_PUEL_PACKING=1 \
107 VBOX_DO_STRIP= \
108 VBOX_DO_STRIP_MODULES= \
109 VBOX_WITH_MULTIVERSION_PYTHON= \
110 VBOX_PATH_PACKAGE_DOCS="\"/usr/share/doc/$(verpkg)\"" \
111 $(if $(ose),,VBOX_WITH_DOCS_CHM=1) \
112 VBOX_PACKAGE_DIST=$(debdist) \
113 VBOX_SVN_REV=$(svnrev) \
114 $(if $(NODOCS),VBOX_WITH_DOCS= ,)\
115 $(if $(VERBOSE),--print-directory KBUILD_VERBOSE=2,--no-print-directory) \
116 $(if $(STAGEDISO),VBOX_WITHOUT_ADDITIONS=1,) \
117 $(if $(BLEEDING_EDGE),VBOX_BLEEDING_EDGE=$(BLEEDING_EDGE),) \
118 $(if $(filter _Ubuntu_hardy,$(debrel)),,VBOX_WITH_SYSFS_BY_DEFAULT=1)
119
120configure: debian/configure-stamp
121debian/configure-stamp:
122 dh_testdir
123 cd $(vboxroot) && ./configure --odir=$(current)/debian $(cfg_flags)
124 touch debian/configure-stamp
125
126build: debian/configure-stamp debian/build-stamp
127debian/build-stamp $(verfile):
128 dh_testdir
129 . debian/env.sh && kmk -C $(vboxroot) $(bld_flags) $(if $(NOPARALLEL),-j1,) all
130 $(if $(NODOCS),cp $(vboxroot)/prebuild/UserManual*.pdf $(builddir)/bin,)
131 $(if $(NODOCS),cp $(vboxroot)/prebuild/VirtualBox*.chm $(builddir)/bin,)
132 $(if $(EFI),cp $(vboxroot)/prebuild/VBoxEFI32.fd $(builddir)/bin,)
133 $(if $(EFI),cp $(vboxroot)/prebuild/VBoxEFI64.fd $(builddir)/bin,)
134 mkdir -p $(builddir)/bin/additions
135 $(if $(STAGEDISO),cp $(STAGEDISO)/VBoxGuestAdditions.iso $(builddir)/bin/additions,)
136 . debian/env.sh && kmk -C $(vboxroot) $(bld_flags) \
137 VBOX_NO_LINUX_RUN_INSTALLER=1 \
138 VBOX_LNX_ADD_ARCHIVE.x86=$(builddir)/bin/additions/VBoxGuestAdditions-x86-r$(svnrev).tar.bz2 \
139 VBOX_LNX_ADD_ARCHIVE.amd64=$(builddir)/bin/additions/VBoxGuestAdditions-amd64-r$(svnrev).tar.bz2 \
140 VBOX_PATH_ADDITIONS.linux.x86=$(builddir)/bin/additions \
141 VBOX_PATH_ADDITIONS.linux.amd64=$(builddir)/bin/additions \
142 packing
143 touch debian/build-stamp
144
145# Build modules for every kernel we find in /lib/modules/*
146modules: debian/build-stamp debian/modules-stamp
147debian/modules-stamp: debian/build-stamp
148 rm -rf $(moddir)
149 mkdir $(moddir)
150 make -C $(builddir)/bin/src/vboxdrv clean
151 for d in $(wildcard /lib/modules/*); do \
152 if [ -L $$d/build ]; then \
153 make -C $(builddir)/bin/src/vboxdrv KERN_DIR=$$d/build MODULE_DIR=$$d clean && \
154 make -j4 -C $(builddir)/bin/src/vboxdrv KBUILD_VERBOSE= KERN_DIR=$$d/build MODULE_DIR=$$d all \
155 $(if $(instmod),&& install -D -m 0644 -g 0 -o 0 \
156 $(builddir)/bin/src/vboxdrv/vboxdrv.ko $(moddir)/$$(basename $$d)/vboxdrv.ko); \
157 make -C $(builddir)/bin/src/vboxnetflt KERN_DIR=$$d/build MODULE_DIR=$$d clean && \
158 (cp $(builddir)/bin/src/vboxdrv/Module.symvers $(builddir)/bin/src/vboxnetflt || true) && \
159 make -j4 -C $(builddir)/bin/src/vboxnetflt KBUILD_VERBOSE= KERN_DIR=$$d/build MODULE_DIR=$$d all \
160 $(if $(instmod),&& install -D -m 0644 -g 0 -o 0 \
161 $(builddir)/bin/src/vboxnetflt/vboxnetflt.ko $(moddir)/$$(basename $$d)/vboxnetflt.ko); \
162 make -C $(builddir)/bin/src/vboxnetadp KERN_DIR=$$d/build MODULE_DIR=$$d clean && \
163 (cp $(builddir)/bin/src/vboxdrv/Module.symvers $(builddir)/bin/src/vboxnetadp || true) && \
164 make -j4 -C $(builddir)/bin/src/vboxnetadp KBUILD_VERBOSE= KERN_DIR=$$d/build MODULE_DIR=$$d all \
165 $(if $(instmod),&& install -D -m 0644 -g 0 -o 0 \
166 $(builddir)/bin/src/vboxnetadp/vboxnetadp.ko $(moddir)/$$(basename $$d)/vboxnetadp.ko); \
167 make -C $(builddir)/bin/src/vboxpci KERN_DIR=$$d/build MODULE_DIR=$$d clean && \
168 (cp $(builddir)/bin/src/vboxdrv/Module.symvers $(builddir)/bin/src/vboxpci || true) && \
169 make -j4 -C $(builddir)/bin/src/vboxpci KBUILD_VERBOSE= KERN_DIR=$$d/build MODULE_DIR=$$d all \
170 $(if $(instmod),&& install -D -m 0644 -g 0 -o 0 \
171 $(builddir)/bin/src/vboxpci/vboxpci.ko $(moddir)/$$(basename $$d)/vboxpci.ko); \
172 fi; \
173 done
174 make -C $(builddir)/bin/src/vboxdrv clean
175 make -C $(builddir)/bin/src/vboxnetflt clean
176 make -C $(builddir)/bin/src/vboxnetadp clean
177 make -C $(builddir)/bin/src/vboxpci clean
178 touch debian/modules-stamp
179
180clean:
181 dh_testdir
182 dh_testroot
183 rm -f debian/changelog debian/preinst debian/postinst debian/prerm
184 rm -f debian/$(package).init debian/vboxdrv.init
185 rm -f debian/vboxballoonctrl-service.init debian/vboxweb-service.init
186 rm -f debian/AutoConfig.kmk debian/configure.log debian/env.sh
187 rm -f debian/modules-stamp debian/build-stamp debian/configure-stamp
188 rm -f debian/virtualbox-*.substvars debian/virtualbox*.debhelper
189 rm -f debian/$(verpkg).mime
190 rm -rf $(builddir) $(moddir)
191 rm -rf debian/wine.*
192 dh_clean
193
194ifeq ($(VBOX_VERSION_MAJOR),)
195binary binary-arch binary-indep: build $(verfile)
196 $(MAKE) -f debian/rules binary
197else
198# Build architecture-dependent files here.
199binary binary-arch binary-indep: build $(if $(NOMODS),,modules)
200 dh_testdir
201 dh_testroot
202 dh_clean -k
203 dh_installdirs
204 tar -xjC $(prefix)/opt -f $(builddir)/bin/VirtualBox.tar.bz2
205 install -d -g 0 -o 0 $(prefix)/usr/share/applications
206 install -d -g 0 -o 0 $(prefix)/usr/lib
207 install -d -g 0 -o 0 $(prefix)/usr/bin
208 install -d -g 0 -o 0 $(prefix)/usr/lib/$(package)
209 install -d -g 0 -o 0 $(prefix)/usr/share/$(package)
210 install -d -g 0 -o 0 $(prefix)/usr/share/doc/$(verpkg)
211 $(if $(NOQT),,mv $(archdir)/virtualbox.desktop \
212 $(prefix)/usr/share/applications/virtualbox.desktop)
213 install -d -g 0 -o 0 $(prefix)/usr/share/pixmaps
214 install -d -g 0 -o 0 $(prefix)/usr/share/icons/hicolor
215 cp $(archdir)/icons/128x128/virtualbox.png \
216 $(prefix)/usr/share/pixmaps/virtualbox.png
217 cd $(archdir)/icons; for i in *; do \
218 if [ -f $$i/virtualbox.png ]; then \
219 install -d -g 0 -o 0 $(prefix)/usr/share/icons/hicolor/$$i/apps; \
220 mv $$i/virtualbox.png $(prefix)/usr/share/icons/hicolor/$$i/apps; \
221 fi; \
222 install -d -g 0 -o 0 $(prefix)/usr/share/icons/hicolor/$$i/mimetypes; \
223 mv $$i/* $(prefix)/usr/share/icons/hicolor/$$i/mimetypes || true; \
224 rmdir $$i; \
225 done
226 rmdir $(archdir)/icons
227 install -d -g 0 -o 0 $(prefix)/usr/lib/$(package)/ExtensionPacks
228 mv $(archdir)/virtualbox.xml debian/$(verpkg).sharedmimeinfo
229 install -d -g 0 -o 0 $(prefix)/usr/share/lintian/overrides
230 sed \
231 -e 's|%VERPKG%|$(verpkg)|g' \
232 debian/lintian-override.in > \
233 $(prefix)/usr/share/lintian/overrides/$(verpkg)
234 mv $(archdir)/VBoxEFI32.fd $(prefix)/usr/lib/$(package)
235 mv $(archdir)/VBoxEFI64.fd $(prefix)/usr/lib/$(package)
236 mv $(archdir)/VBox.png \
237 $(prefix)/usr/share/pixmaps/VBox.png
238 mv $(archdir)/*.gc $(prefix)/usr/lib/$(package)
239 mv $(archdir)/*.r0 $(prefix)/usr/lib/$(package)
240 mv $(archdir)/*.rel $(prefix)/usr/lib/$(package) || true
241 mv $(archdir)/VBoxNetDHCP $(prefix)/usr/lib/$(package)
242 mv $(archdir)/VBoxNetAdpCtl $(prefix)/usr/lib/$(package)
243 mv $(archdir)/VBoxXPCOMIPCD $(prefix)/usr/lib/$(package)
244 mv $(archdir)/components $(prefix)/usr/lib/$(package)/components
245 mv $(archdir)/*.so $(prefix)/usr/lib/$(package)
246 mv $(archdir)/*.so.4 $(prefix)/usr/lib/$(package) || true
247 $(if $(NOQT),,mv $(archdir)/VBoxTestOGL $(prefix)/usr/lib/$(package))
248 $(if $(NOQT),,mv $(archdir)/nls $(prefix)/usr/share/$(package))
249 mv $(archdir)/src $(prefix)/usr/share/$(package)
250 rm $(archdir)/VBox.sh
251 export VBOX_INSTALL_PATH=/usr/lib/$(package) && \
252 cd ./debian/builddir/bin/sdk/installer && \
253 python ./vboxapisetup.py install --root $(prefix)
254 rm -rf $(archdir)/sdk/installer
255 mv $(archdir)/vboxshell.py $(prefix)/usr/lib/$(package)
256 mv $(archdir)/sdk $(prefix)/usr/lib/$(package)
257 install -D -g 0 -o 0 -m 644 debian/VBox.sh $(prefix)/usr/bin/VBox
258 mv $(archdir)/VBoxSysInfo.sh $(prefix)/usr/share/$(package)
259 mv $(archdir)/VBoxCreateUSBNode.sh $(prefix)/usr/share/$(package)
260 for i in VBoxManage VBoxSVC $(if $(HEADLESS),,VBoxSDL) \
261 $(if $(NOQT),,VirtualBox) VBoxHeadless \
262 VBoxExtPackHelperApp VBoxBalloonCtrl \
263 $(if $(NOWEBSVC),,vboxwebsrv webtest); do \
264 mv $(archdir)/$$i $(prefix)/usr/lib/$(package); done
265 mv $(archdir)/VBoxTunctl $(prefix)/usr/bin
266 $(if $(NOMODS),,for d in $(moddir)/*; do \
267 if [ -f $$d/vboxdrv.ko -a -f $$d/vboxnetflt.ko -a -f $$d/vboxnetadp.ko -a -f $$d/vboxpci.ko ]; then \
268 install -D -g 0 -o 0 -m 0644 \
269 $$d/vboxdrv.ko $(prefix)/lib/modules/$$(basename $$d)/misc/vboxdrv.ko; \
270 install -D -g 0 -o 0 -m 0644 \
271 $$d/vboxnetflt.ko $(prefix)/lib/modules/$$(basename $$d)/misc/vboxnetflt.ko; \
272 install -D -g 0 -o 0 -m 0644 \
273 $$d/vboxnetadp.ko $(prefix)/lib/modules/$$(basename $$d)/misc/vboxnetadp.ko; \
274 install -D -g 0 -o 0 -m 0644 \
275 $$d/vboxpci.ko $(prefix)/lib/modules/$$(basename $$d)/misc/vboxpci.ko; \
276 fi \
277 done)
278ifeq ($(ose),)
279 $(if $(NOQT),,mv $(archdir)/kchmviewer $(prefix)/usr/lib/$(package))
280 dh_installdocs \
281 $(archdir)/UserManual*.pdf $(archdir)/VirtualBox*.chm \
282 $(addprefix $(archdir)/, LICENSE)
283 rm $(addprefix $(archdir)/,UserManual*.pdf VirtualBox*.chm \
284 LICENSE)
285 for i in rdesktop-vrdp.tar.gz additions/VBoxGuestAdditions.iso; do \
286 mv $(archdir)/$$i $(prefix)/usr/share/$(package); done
287 $(if $(HEADLESS),,mv $(archdir)/rdesktop-vrdp $(prefix)/usr/bin)
288 $(if $(HEADLESS),,mv $(archdir)/rdesktop-vrdp-keymaps $(prefix)/usr/share/$(package))
289 if [ -d $(archdir)/accessible ]; then mv $(archdir)/accessible $(prefix)/usr/lib/virtualbox; fi
290else
291 dh_installdocs \
292 $(archdir)/UserManual*.pdf
293 rm $(addprefix $(archdir)/,UserManual*.pdf)
294 for i in additions/VBoxGuestAdditions.iso; do \
295 mv $(archdir)/$$i $(prefix)/usr/share/$(package); done
296endif
297 rmdir $(archdir)/additions
298 rmdir $(archdir)
299 rmdir $(prefix)/opt
300 dh_link \
301 $(if $(NOQT),,usr/bin/VBox usr/bin/VirtualBox) \
302 $(if $(NOQT),,usr/bin/VBox usr/bin/virtualbox) \
303 usr/bin/VBox usr/bin/VBoxManage \
304 usr/bin/VBox usr/bin/vboxmanage \
305 $(if $(HEADLESS),,usr/bin/VBox usr/bin/VBoxSDL) \
306 $(if $(HEADLESS),,usr/bin/VBox usr/bin/vboxsdl) \
307 $(if $(ose),,usr/bin/VBox usr/bin/VBoxVRDP) \
308 usr/bin/VBox usr/bin/VBoxHeadless \
309 usr/bin/VBox usr/bin/vboxheadless \
310 usr/bin/VBox usr/bin/VBoxBalloonCtrl \
311 usr/bin/VBox usr/bin/vboxballoonctrl \
312 $(if $(NOWEBSVC),,usr/bin/VBox usr/bin/vboxwebsrv) \
313 usr/share/virtualbox/src/vboxhost usr/src/vboxhost-$(ver)
314 dh_desktop
315 $(if $(NOMODS),,dh_installmodules)
316 sed \
317 -e 's|%NOLSB%||g' \
318 -e 's|%DEBIAN%|yes|g' \
319 -e 's|%PACKAGE%|virtualbox|g' \
320 -e "s|%GROUP%|$(if $(VBOX_WITHOUT_HARDENING),vboxusers,root)|g" \
321 $(vboxroot)/src/VBox/Installer/linux/vboxdrv.sh.in > debian/vboxdrv.init
322 dh_installinit --name=vboxdrv --noscripts
323 sed \
324 -e 's|%NOLSB%||g' \
325 -e 's|%DEBIAN%|yes|g' \
326 -e 's|%PACKAGE%|virtualbox|g' \
327 $(vboxroot)/src/VBox/Installer/linux/vboxballoonctrl-service.sh.in > debian/vboxballoonctrl-service.init
328 dh_installinit --name=vboxballoonctrl-service --noscripts
329 sed \
330 -e 's|%NOLSB%||g' \
331 -e 's|%DEBIAN%|yes|g' \
332 -e 's|%PACKAGE%|virtualbox|g' \
333 $(vboxroot)/src/VBox/Installer/linux/vboxweb-service.sh.in > debian/vboxweb-service.init
334 dh_installinit --name=vboxweb-service --noscripts
335 sed -e 's|%VER%|$(debver)|g' \
336 -e 's|%DATE%|$(shell date -R)|g' \
337 -e 's|%DEBREL%|$(subst _,~,$(debrel))|g' \
338 -e 's|%VERPKG%|$(verpkg)|g' \
339 debian/changelog.in > debian/changelog
340 cat debian/preinst.in | sed -e 's|%VER%|$(ver)|g' > debian/preinst
341 cat debian/prerm.in | sed -e 's|%VER%|$(ver)|g' > debian/prerm
342 cat debian/postinst.in | \
343 sed -e 's|%VER%|$(ver)|g' \
344 -e '/#include installer-utils.sh/ {' \
345 -e "r $(vboxroot)/src/VBox/Installer/linux/installer-utils.sh" \
346 -e 'd' \
347 -e '}' \
348 > debian/postinst
349 dh_installdebconf
350 dh_installchangelogs
351 dh_installmenu
352 dh_installmime
353 dh_link
354ifeq ($(DEBUG),)
355 dh_strip --keep-debug --exclude=libQtCoreVBox.so.4 --exclude=libQtGuiVBox.so.4 --exclude=libQtNetworkVBox.so.4 --exclude=libQtOpenGLVBox.so.4 --exclude=libqtaccessiblewidgets.so
356 # manually strip our R0/GC modules, dh_strip cannot handle them
357 for f in \
358 $(prefix)/usr/lib/$(package)/*.r0 $(prefix)/usr/lib/$(package)/*.gc; do \
359 objcopy --only-keep-debug \
360 $$f \
361 $(prefix)/usr/lib/debug/usr/lib/$(package)/`basename $$f`; \
362 strip -S --remove-section=.comment $$f; \
363 objcopy --add-gnu-debuglink=$(prefix)/usr/lib/debug/usr/lib/$(package)/`basename $$f` $$f; \
364 done
365endif
366 mkdir -p $(current)/debian/$(verpkg)-dbg/usr/lib
367ifeq ($(DEBUG),)
368 mv $(current)/debian/$(verpkg)/usr/lib/debug $(current)/debian/$(verpkg)-dbg/usr/lib
369endif
370 dh_pycentral
371 dh_compress -X.pdf -X.chm -X LICENSE -X.py
372 dh_fixperms
373 dh_makeshlibs
374 dh_installdeb
375 dh_perl
376 # for some reason, the Qt libraries couldn't be found on newer releases (e.g. Ubuntu hardy)
377 LD_LIBRARY_PATH=$(prefix)/usr/lib/virtualbox dh_shlibdeps
378 dh_gencontrol -- \
379 -Valsa=$(if $(HEADLESS),,libasound2) \
380 -Vpulse=$(if $(HEADLESS),,libpulse0) \
381 -Vsdlttf=$(if $(HEADLESS),,libsdl-ttf2.0-0) \
382 -Vdkms=$(if $(filter _Debian_lenny,$(debrel)),,dkms)
383 dh_md5sums
384 dh_builddeb --destdir $(pkgdir)
385endif
386
387.PHONY: binary modules binary-arch binary-indep clean checkroot
Note: See TracBrowser for help on using the repository browser.

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