1 | #!/usr/bin/make -f
|
---|
2 | #
|
---|
3 | # Copyright (C) 2006-2015 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 (GPL) as published by the Free Software
|
---|
9 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
10 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
11 | # hope that it will 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
|
---|
20 | export DH_COMPAT=5
|
---|
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=1 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 | # VNC=1 build VNC code
|
---|
38 | # NOWEBSVC=1 don't build the webservice API, default for OSE
|
---|
39 | # STAGEDISO=<path> don't build the VBoxAdditions, use the precompiled .iso
|
---|
40 | # PKGDIR=<path> where to store the final package(s)
|
---|
41 | #
|
---|
42 | # NODOCS will also be set if UserManual*.pdf and VirtualBox*.chm are placed in
|
---|
43 | # $(vboxroot)/prebuild. STAGEDISO will be set if VBoxGuestAdditions.iso is
|
---|
44 | # placed there. Wine will not be required to be available if both NODOCS and
|
---|
45 | # STAGEDISO are set.
|
---|
46 |
|
---|
47 | package := virtualbox
|
---|
48 | verpkg := virtualbox-5.1
|
---|
49 | current := $(shell pwd)
|
---|
50 | vboxroot := $(shell cd ../../../..; pwd)
|
---|
51 | pkgdir := $(if $(PKGDIR),$(PKGDIR),$(shell cd ../../../../..; pwd))
|
---|
52 | builddir := $(vboxroot)/out/debian/builddir
|
---|
53 | moddir := $(vboxroot)/out/debian/modules
|
---|
54 | prefix := $(current)/debian/$(verpkg)
|
---|
55 | arch := $(shell dpkg --print-architecture)
|
---|
56 | verfile := $(builddir)/version-generated.mk
|
---|
57 | ose := $(if $(OSE),1,$(if $(wildcard $(vboxroot)/src/VBox/RDP/server),,1))
|
---|
58 | chrarch := $(shell if [ `uname -m` = "x86_64" ]; then echo "amd64"; else echo "x86"; fi)
|
---|
59 | -include $(vboxroot)/SVN_REVISION
|
---|
60 | svnrev :=$(if $(svn_revision),$(svn_revision),)
|
---|
61 |
|
---|
62 | NOMODS ?= $(ose)
|
---|
63 | NOQT ?= $(HEADLESS)
|
---|
64 | NOWEBSVC ?= $(ose)
|
---|
65 | NODOCS ?= $(if $(wildcard $(vboxroot)/prebuild/UserManual*.pdf),$(if $(wildcard $(vboxroot)/prebuild/VirtualBox*.chm),1,),)
|
---|
66 | STAGEDISO ?= $(if $(wildcard $(vboxroot)/prebuild/VBoxGuestAdditions.iso),$(vboxroot)/prebuild,)
|
---|
67 | NOWINE := $(if $(NODOCS),$(if $(STAGEDISO),1,),)$(ose)
|
---|
68 | PYTHON := $(firstword $(shell which python) $(shell which python3))
|
---|
69 |
|
---|
70 | ifneq ($(wildcard $(verfile)),)
|
---|
71 | include $(verfile)
|
---|
72 | ver := $(VBOX_VERSION_STRING)
|
---|
73 | svnver := $(if $(NOSUBVER),,$(if $(svn_revision),-$(svn_revision),$(shell if \
|
---|
74 | svn info > /dev/null 2>&1; then \
|
---|
75 | svn info|sed -e "s/^Revision: \(.*\)/-\1/;t;d"; else \
|
---|
76 | date +"-%Y%m%d"; fi)))
|
---|
77 | debver :=$(subst _ALPHA,~alpha,$(subst _BETA,~beta,$(subst _RC,~rc,$(subst _OSE,~ose,$(ver)))))$(svnver)$(VERSUFFIX)$(if $(HEADLESS),~headless,)$(if $(DEBUG),~dbg,)
|
---|
78 | archdir := $(prefix)/opt/VirtualBox-$(ver)
|
---|
79 | endif
|
---|
80 |
|
---|
81 | ifneq ($(STAGEDISO),)
|
---|
82 | ifeq ($(wildcard $(STAGEDISO)/VBoxGuestAdditions.iso),)
|
---|
83 | $(error STAGEDISO='$(STAGEDISO)/VBoxGuestAdditions.iso' not found)
|
---|
84 | endif
|
---|
85 | endif
|
---|
86 |
|
---|
87 | debrel := $(if $(shell which lsb_release),_$(shell lsb_release -si)_$(shell lsb_release -sc),unknown)
|
---|
88 |
|
---|
89 | ifneq ($(MAKECMDGOALS),clean)
|
---|
90 | debdist := $(strip $(shell grep $(debrel) $(current)/distributions_deb | cut -d'=' -f2))
|
---|
91 | ifeq ($(debdist),)
|
---|
92 | debdist := $(if $(shell which lsb_release),_$(shell lsb_release -si | tr a-z A-Z)_$(shell lsb_release -sr | sed -e 's/\./_/g' -e 's/\([^_]*\)\(_[^_]*\).*/\1\2/'),unknown)
|
---|
93 | # $(error package distribution not detected (debrel=$(debrel)))
|
---|
94 | endif
|
---|
95 | endif
|
---|
96 |
|
---|
97 | cfg_flags := $(if $(NOQT),--disable-qt,) \
|
---|
98 | $(if $(ose),--ose,) $(if $(LINUX),--with-linux=$(LINUX),) \
|
---|
99 | $(if $(HEADLESS),--build-headless,) \
|
---|
100 | $(if $(DEBUG),--build-debug,) \
|
---|
101 | $(if $(NOWINE),,--setup-wine) \
|
---|
102 | $(if $(NOWEBSVC),,$(if $(ose),--enable-webservice,)) \
|
---|
103 | $(if $(VNC),--enable-vnc,) \
|
---|
104 | --disable-extpack
|
---|
105 |
|
---|
106 | bld_flags := AUTOCFG=$(current)/debian/AutoConfig.kmk \
|
---|
107 | LOCALCFG=$(current)/debian/LocalConfig.kmk \
|
---|
108 | PATH_OUT=$(builddir) \
|
---|
109 | VBOX_WITHOUT_EXTPACK_PUEL_PACKING=1 \
|
---|
110 | VBOX_WITHOUT_EXTPACK_VNC_PACKING=1 \
|
---|
111 | VBOX_WITH_VMSVGA3D=1 \
|
---|
112 | VBOX_DO_STRIP= \
|
---|
113 | VBOX_WITH_MULTIVERSION_PYTHON= \
|
---|
114 | VBOX_PATH_PACKAGE_DOCS="\"/usr/share/doc/$(verpkg)\"" \
|
---|
115 | $(if $(ose),,VBOX_WITH_DOCS_CHM=1) \
|
---|
116 | VBOX_PACKAGE_DIST=$(debdist) \
|
---|
117 | $(if $(svnrev),VBOX_SVN_REV=$(svnrev),) \
|
---|
118 | $(if $(NODOCS),VBOX_WITH_DOCS= ,) \
|
---|
119 | $(if $(VERBOSE),--print-directory KBUILD_VERBOSE=2,--no-print-directory) \
|
---|
120 | $(if $(STAGEDISO),VBOX_WITHOUT_ADDITIONS=1,)
|
---|
121 |
|
---|
122 | configure: debian/configure-stamp
|
---|
123 | debian/configure-stamp:
|
---|
124 | dh_testdir
|
---|
125 | cd $(vboxroot) && ./configure --odir=$(current)/debian $(cfg_flags)
|
---|
126 | touch debian/configure-stamp
|
---|
127 |
|
---|
128 | build: debian/configure-stamp debian/build-stamp
|
---|
129 | debian/build-stamp $(verfile):
|
---|
130 | dh_testdir
|
---|
131 | . debian/env.sh && kmk -C $(vboxroot) $(bld_flags) $(if $(NOPARALLEL),-j1,) all
|
---|
132 | $(if $(NODOCS),cp $(vboxroot)/prebuild/UserManual*.pdf $(builddir)/bin,)
|
---|
133 | $(if $(NODOCS),cp $(vboxroot)/prebuild/VirtualBox*.chm $(builddir)/bin,)
|
---|
134 | $(if $(EFI),cp $(vboxroot)/prebuild/VBoxEFI32.fd $(builddir)/bin,)
|
---|
135 | $(if $(EFI),cp $(vboxroot)/prebuild/VBoxEFI64.fd $(builddir)/bin,)
|
---|
136 | mkdir -p $(builddir)/bin/additions
|
---|
137 | $(if $(STAGEDISO),cp $(STAGEDISO)/VBoxGuestAdditions.iso $(builddir)/bin/additions,)
|
---|
138 | . debian/env.sh && kmk -C $(vboxroot) $(bld_flags) \
|
---|
139 | VBOX_NO_LINUX_RUN_INSTALLER=1 \
|
---|
140 | VBOX_LNX_ADD_ARCHIVE.x86=$(builddir)/bin/additions/VBoxGuestAdditions-x86.tar.bz2 \
|
---|
141 | VBOX_LNX_ADD_ARCHIVE.amd64=$(builddir)/bin/additions/VBoxGuestAdditions-amd64.tar.bz2 \
|
---|
142 | VBOX_PATH_ADDITIONS.linux.x86=$(builddir)/bin/additions \
|
---|
143 | VBOX_PATH_ADDITIONS.linux.amd64=$(builddir)/bin/additions \
|
---|
144 | packing
|
---|
145 | touch debian/build-stamp
|
---|
146 |
|
---|
147 | # Build modules for every kernel we find in /lib/modules/*
|
---|
148 | modules: debian/build-stamp debian/modules-stamp
|
---|
149 | debian/modules-stamp: debian/build-stamp
|
---|
150 | rm -rf $(moddir)
|
---|
151 | mkdir $(moddir)
|
---|
152 | make -C $(builddir)/bin/src/vboxdrv clean
|
---|
153 | for d in $(wildcard /lib/modules/*); do \
|
---|
154 | if [ -L $$d/build ]; then \
|
---|
155 | make -C $(builddir)/bin/src/vboxdrv KERN_DIR=$$d/build MODULE_DIR=$$d clean && \
|
---|
156 | make -j4 -C $(builddir)/bin/src/vboxdrv KBUILD_VERBOSE= KERN_DIR=$$d/build MODULE_DIR=$$d all; \
|
---|
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 | make -C $(builddir)/bin/src/vboxnetadp KERN_DIR=$$d/build MODULE_DIR=$$d clean && \
|
---|
161 | (cp $(builddir)/bin/src/vboxdrv/Module.symvers $(builddir)/bin/src/vboxnetadp || true) && \
|
---|
162 | make -j4 -C $(builddir)/bin/src/vboxnetadp KBUILD_VERBOSE= KERN_DIR=$$d/build MODULE_DIR=$$d all; \
|
---|
163 | make -C $(builddir)/bin/src/vboxpci KERN_DIR=$$d/build MODULE_DIR=$$d clean && \
|
---|
164 | (cp $(builddir)/bin/src/vboxdrv/Module.symvers $(builddir)/bin/src/vboxpci || true) && \
|
---|
165 | make -j4 -C $(builddir)/bin/src/vboxpci KBUILD_VERBOSE= KERN_DIR=$$d/build MODULE_DIR=$$d all; \
|
---|
166 | fi; \
|
---|
167 | done
|
---|
168 | make -C $(builddir)/bin/src/vboxdrv clean
|
---|
169 | make -C $(builddir)/bin/src/vboxnetflt clean
|
---|
170 | make -C $(builddir)/bin/src/vboxnetadp clean
|
---|
171 | make -C $(builddir)/bin/src/vboxpci clean
|
---|
172 | touch debian/modules-stamp
|
---|
173 |
|
---|
174 | clean:
|
---|
175 | dh_testdir
|
---|
176 | dh_testroot
|
---|
177 | rm -f debian/changelog
|
---|
178 | rm -f debian/AutoConfig.kmk debian/configure.log debian/env.sh
|
---|
179 | rm -f debian/modules-stamp debian/build-stamp debian/configure-stamp
|
---|
180 | rm -f debian/virtualbox-*.substvars debian/virtualbox*.debhelper
|
---|
181 | rm -f debian/$(verpkg).mime
|
---|
182 | rm -rf $(builddir) $(moddir)
|
---|
183 | rm -rf debian/wine.*
|
---|
184 | dh_clean
|
---|
185 |
|
---|
186 | ifeq ($(VBOX_VERSION_MAJOR),)
|
---|
187 | binary binary-arch binary-indep: build $(verfile)
|
---|
188 | $(MAKE) -f debian/rules binary
|
---|
189 | else
|
---|
190 | # Build architecture-dependent files here.
|
---|
191 | binary binary-arch binary-indep: build $(if $(NOMODS),,modules)
|
---|
192 | dh_testdir
|
---|
193 | dh_testroot
|
---|
194 | dh_clean -k
|
---|
195 | dh_installdirs
|
---|
196 | tar -xC $(prefix)/opt -f $(builddir)/bin/VirtualBox.tar
|
---|
197 | install -d -g 0 -o 0 $(prefix)/usr/share/applications
|
---|
198 | install -d -g 0 -o 0 $(prefix)/usr/lib
|
---|
199 | install -d -g 0 -o 0 $(prefix)/usr/bin
|
---|
200 | install -d -g 0 -o 0 $(prefix)/usr/share/$(package)
|
---|
201 | install -d -g 0 -o 0 $(prefix)/usr/share/doc/$(verpkg)
|
---|
202 | $(if $(NOQT),,mv $(archdir)/virtualbox.desktop \
|
---|
203 | $(prefix)/usr/share/applications/virtualbox.desktop)
|
---|
204 | install -d -g 0 -o 0 $(prefix)/usr/share/pixmaps
|
---|
205 | $(if $(NOQT),,install -d -g 0 -o 0 $(prefix)/usr/share/icons/hicolor)
|
---|
206 | $(if $(NOQT),,cp $(archdir)/icons/128x128/virtualbox.png \
|
---|
207 | $(prefix)/usr/share/pixmaps/virtualbox.png)
|
---|
208 | $(if $(NOQT),,mv $(archdir)/nls $(prefix)/usr/share/$(package))
|
---|
209 | $(if $(NOQT),,cd $(archdir)/icons; for i in *; do \
|
---|
210 | for j in $$i/virtualbox.*; do \
|
---|
211 | if [ -f $$j ]; then \
|
---|
212 | if [ -d $(prefix)/usr/share/icons/hicolor/$$i/apps ]; then \
|
---|
213 | install -d -g 0 -o 0 $(prefix)/usr/share/icons/hicolor/$$i/apps; \
|
---|
214 | fi; \
|
---|
215 | mv $$j $(prefix)/usr/share/icons/hicolor/$$i/apps; \
|
---|
216 | fi; \
|
---|
217 | done; \
|
---|
218 | install -d -g 0 -o 0 $(prefix)/usr/share/icons/hicolor/$$i/mimetypes; \
|
---|
219 | mv $$i/* $(prefix)/usr/share/icons/hicolor/$$i/mimetypes || true; \
|
---|
220 | rmdir $$i; \
|
---|
221 | done)
|
---|
222 | $(if $(NOQT),,rmdir $(archdir)/icons)
|
---|
223 | $(if $(NOQT),,mv $(archdir)/virtualbox.xml debian/$(verpkg).sharedmimeinfo)
|
---|
224 | install -d -g 0 -o 0 $(prefix)/usr/share/lintian/overrides
|
---|
225 | sed \
|
---|
226 | -e 's|%VERPKG%|$(verpkg)|g' \
|
---|
227 | debian/lintian-override.in > \
|
---|
228 | $(prefix)/usr/share/lintian/overrides/$(verpkg)
|
---|
229 | mv $(archdir)/VBox.png \
|
---|
230 | $(prefix)/usr/share/pixmaps/VBox.png
|
---|
231 | mv $(archdir)/src $(prefix)/usr/share/$(package)
|
---|
232 | rm $(archdir)/VBox.sh
|
---|
233 | install -D -g 0 -o 0 -m 644 VBox.sh $(prefix)/usr/bin/VBox
|
---|
234 | mv $(archdir)/VBoxSysInfo.sh $(prefix)/usr/share/$(package)
|
---|
235 | if [ -r $(archdir)/VBoxDTrace ]; then \
|
---|
236 | mv $(archdir)/VBoxDTrace $(prefix)/usr/bin; \
|
---|
237 | fi
|
---|
238 | mv $(archdir)/VBoxTunctl $(prefix)/usr/bin
|
---|
239 | $(if $(NOMODS),,for d in $(moddir)/*; do \
|
---|
240 | if [ -f $$d/vboxdrv.ko -a -f $$d/vboxnetflt.ko -a -f $$d/vboxnetadp.ko -a -f $$d/vboxpci.ko ]; then \
|
---|
241 | install -D -g 0 -o 0 -m 0644 \
|
---|
242 | $$d/vboxdrv.ko $(prefix)/lib/modules/$$(basename $$d)/misc/vboxdrv.ko; \
|
---|
243 | install -D -g 0 -o 0 -m 0644 \
|
---|
244 | $$d/vboxnetflt.ko $(prefix)/lib/modules/$$(basename $$d)/misc/vboxnetflt.ko; \
|
---|
245 | install -D -g 0 -o 0 -m 0644 \
|
---|
246 | $$d/vboxnetadp.ko $(prefix)/lib/modules/$$(basename $$d)/misc/vboxnetadp.ko; \
|
---|
247 | install -D -g 0 -o 0 -m 0644 \
|
---|
248 | $$d/vboxpci.ko $(prefix)/lib/modules/$$(basename $$d)/misc/vboxpci.ko; \
|
---|
249 | fi \
|
---|
250 | done)
|
---|
251 | ifeq ($(ose),)
|
---|
252 | dh_installdocs \
|
---|
253 | $(archdir)/UserManual*.pdf $(archdir)/VirtualBox*.chm \
|
---|
254 | $(addprefix $(archdir)/, LICENSE)
|
---|
255 | rm $(addprefix $(archdir)/,UserManual*.pdf VirtualBox*.chm \
|
---|
256 | LICENSE)
|
---|
257 | for i in rdesktop-vrdp.tar.gz additions/VBoxGuestAdditions.iso; do \
|
---|
258 | mv $(archdir)/$$i $(prefix)/usr/share/$(package); done
|
---|
259 | $(if $(HEADLESS),,mv $(archdir)/rdesktop-vrdp $(prefix)/usr/bin)
|
---|
260 | $(if $(HEADLESS),,mv $(archdir)/rdesktop-vrdp-keymaps $(prefix)/usr/share/$(package))
|
---|
261 | else
|
---|
262 | dh_installdocs \
|
---|
263 | $(archdir)/UserManual*.pdf
|
---|
264 | rm $(addprefix $(archdir)/,UserManual*.pdf)
|
---|
265 | for i in additions/VBoxGuestAdditions.iso; do \
|
---|
266 | mv $(archdir)/$$i $(prefix)/usr/share/$(package); done
|
---|
267 | endif
|
---|
268 | mv $(archdir) $(prefix)/usr/lib/$(package)
|
---|
269 | if [ -f $(prefix)/usr/lib/$(package)/libQt5CoreVBox.so.5 ]; then \
|
---|
270 | ../../../../tools/linux.$(chrarch)/bin/chrpath \
|
---|
271 | --keepgoing --replace /usr/lib/$(package) \
|
---|
272 | $(prefix)/usr/lib/$(package)/*.so.5 \
|
---|
273 | $(prefix)/usr/lib/$(package)/plugins/platforms/*.so; \
|
---|
274 | $(prefix)/usr/lib/$(package)/plugins/xcbglintegrations/*.so; \
|
---|
275 | echo "[Paths]" > $(prefix)/usr/lib/$(package)/qt.conf; \
|
---|
276 | echo "Plugins = /usr/lib/$(package)/plugins" >> $(prefix)/usr/lib/$(package)/qt.conf; \
|
---|
277 | fi
|
---|
278 | export VBOX_INSTALL_PATH=/usr/lib/$(package) && \
|
---|
279 | cd $(builddir)/bin/sdk/installer && \
|
---|
280 | $(PYTHON) ./vboxapisetup.py install --root $(prefix)
|
---|
281 | rm -rf $(prefix)/usr/lib/$(package)/sdk/installer
|
---|
282 | ln -s ../VBoxVMM.so $(prefix)/usr/lib/$(package)/components/VBoxVMM.so
|
---|
283 | rmdir $(prefix)/opt
|
---|
284 | dh_link \
|
---|
285 | $(if $(NOQT),,usr/bin/VBox usr/bin/VirtualBox) \
|
---|
286 | $(if $(NOQT),,usr/bin/VBox usr/bin/virtualbox) \
|
---|
287 | usr/bin/VBox usr/bin/VBoxManage \
|
---|
288 | usr/bin/VBox usr/bin/vboxmanage \
|
---|
289 | $(if $(HEADLESS),,usr/bin/VBox usr/bin/VBoxSDL) \
|
---|
290 | $(if $(HEADLESS),,usr/bin/VBox usr/bin/vboxsdl) \
|
---|
291 | $(if $(ose),,usr/bin/VBox usr/bin/VBoxVRDP) \
|
---|
292 | usr/bin/VBox usr/bin/VBoxHeadless \
|
---|
293 | usr/bin/VBox usr/bin/vboxheadless \
|
---|
294 | usr/bin/VBox usr/bin/VBoxBugReport \
|
---|
295 | usr/bin/VBox usr/bin/vboxbugreport \
|
---|
296 | usr/bin/VBox usr/bin/VBoxBalloonCtrl \
|
---|
297 | usr/bin/VBox usr/bin/vboxballoonctrl \
|
---|
298 | usr/bin/VBox usr/bin/VBoxAutostart \
|
---|
299 | usr/bin/VBox usr/bin/vboxautostart \
|
---|
300 | $(if $(NOWEBSVC),,usr/bin/VBox usr/bin/vboxwebsrv) \
|
---|
301 | $(if $(NOVBOXIMG),,usr/lib/virtualbox/vbox-img usr/bin/vbox-img) \
|
---|
302 | usr/share/virtualbox/src/vboxhost usr/src/vboxhost-$(ver)
|
---|
303 | $(if $(NOMODS),,dh_installmodules)
|
---|
304 | sed -e 's|%VER%|$(debver)|g' \
|
---|
305 | -e 's|%DATE%|$(shell date -R)|g' \
|
---|
306 | -e 's|%DEBREL%|$(subst _,~,$(debrel))|g' \
|
---|
307 | -e 's|%VERPKG%|$(verpkg)|g' \
|
---|
308 | debian/changelog.in > debian/changelog
|
---|
309 | dh_installdebconf
|
---|
310 | dh_installchangelogs
|
---|
311 | dh_installmenu
|
---|
312 | dh_installmime
|
---|
313 | dh_link
|
---|
314 | ifeq ($(DEBUG),)
|
---|
315 | dh_strip --keep-debug \
|
---|
316 | $(addprefix --exclude=lib,$(addsuffix VBox.so.5,\
|
---|
317 | Qt5Core Qt5Gui Qt5Widgets Qt5PrintSupport Qt5OpenGL Qt5DBus Qt5XcbQpa Qt5X11Extras)) \
|
---|
318 | --exclude=libqxcb.so --exclude=libqxcb-glx-integration.so
|
---|
319 | endif
|
---|
320 | mkdir -p $(current)/debian/$(verpkg)-dbg/usr/lib/$(package)
|
---|
321 | mv $(prefix)/usr/lib/$(package)/*.debug $(current)/debian/$(verpkg)-dbg/usr/lib/$(package)
|
---|
322 | ifeq ($(DEBUG),)
|
---|
323 | mv $(prefix)/usr/lib/debug $(current)/debian/$(verpkg)-dbg/usr/lib
|
---|
324 | endif
|
---|
325 | $(firstword $(shell which dh_python2) $(shell which dh_python3))
|
---|
326 | dh_compress -X.pdf -X.chm -X LICENSE -X.py
|
---|
327 | dh_fixperms
|
---|
328 | dh_makeshlibs
|
---|
329 | dh_installdeb
|
---|
330 | dh_perl
|
---|
331 | # for some reason, the Qt libraries couldn't be found on newer releases (e.g. Ubuntu hardy)
|
---|
332 | LD_LIBRARY_PATH=$(prefix)/usr/lib/virtualbox dh_shlibdeps
|
---|
333 | dh_gencontrol -- \
|
---|
334 | -Valsa=$(if $(HEADLESS),,libasound2) \
|
---|
335 | -Vpulse=$(if $(HEADLESS),,libpulse0) \
|
---|
336 | -Vsdlttf=$(if $(HEADLESS),,libsdl-ttf2.0-0)
|
---|
337 | dh_md5sums
|
---|
338 | dh_builddeb --destdir $(pkgdir) -- -Zxz
|
---|
339 | endif
|
---|
340 |
|
---|
341 | .PHONY: binary modules binary-arch binary-indep clean checkroot
|
---|