File: rules

package info (click to toggle)
mandelbulber2 2.20-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 149,924 kB
  • sloc: cpp: 79,997; lisp: 30,582; php: 1,798; sh: 897; python: 581; xml: 88; makefile: 42; ansic: 3
file content (60 lines) | stat: -rwxr-xr-x 2,253 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

export QT_SELECT=qt5

ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
    NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
    MAKEJFLAG += -j$(NUMJOBS)
endif

%:
	dh $@

DB2MAN = /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl
XP     = xsltproc -''-nonet -''-param man.charmap.use.subset "0"

%.1: debian/%.man.xml
	$(XP) $(DB2MAN) $<

override_dh_auto_clean:
	rm -fr build
	rm -fr docs/build
	rm -f *.1

override_dh_auto_configure-arch:
	dh_auto_configure --builddirectory=build --sourcedirectory=mandelbulber2/qmake -- ../mandelbulber2/qmake/mandelbulber-opencl.pro

override_dh_auto_build-arch:
	cd build ; make $(MAKEJFLAG)
	cd build ; mkdir language ; cd language ; cp -l ../../mandelbulber2/language/* . ; lrelease *.ts

override_dh_auto_build-indep: mandelbulber2.1
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	cd docs ; ./build.sh
endif

override_dh_auto_install-arch:
	dh_install -pmandelbulber2 mandelbulber2/deploy/linux/mandelbulber2.desktop usr/share/applications
	dh_install -pmandelbulber2 build/mandelbulber2 usr/bin
	dh_install -pmandelbulber2 build/language/*.qm usr/share/mandelbulber2/language
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	ln -s ../mandelbulber2-data/handbook.pdf.gz debian/mandelbulber2/usr/share/doc/mandelbulber2
endif

override_dh_auto_install-indep:
	dh_install -pmandelbulber2-data mandelbulber2/deploy/share/mandelbulber2 usr/share
	dh_install -pmandelbulber2-data mandelbulber2/formula usr/share/mandelbulber2
	dh_install -pmandelbulber2-data mandelbulber2/opencl usr/share/mandelbulber2
	dh_install -pmandelbulber2-data mandelbulber2/deploy/share/mandelbulber2/icons/mandelbulber.png usr/share/icons/hicolor/256x256/apps
	find debian/mandelbulber2-data/usr/share/mandelbulber2/examples -type f -print0 | xargs -0 chmod a-x
	find debian/mandelbulber2-data/usr/share/mandelbulber2 -type f -name COPYING -print0 | xargs -0 rm
	find debian/mandelbulber2-data/usr/share/mandelbulber2 -type f -name README.md -print0 | xargs -0 rm

override_dh_installchangelogs:
	dh_installchangelogs mandelbulber2/deploy/NEWS