File: rules

package info (click to toggle)
enblend-enfuse 4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,652 kB
  • ctags: 2,865
  • sloc: cpp: 24,274; sh: 4,319; perl: 1,124; makefile: 545; ansic: 505; lisp: 276
file content (58 lines) | stat: -rwxr-xr-x 1,781 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
#!/usr/bin/make -f
# debian/rules for enblend-enfuse
#
# Written by Sebastian Harl <sh@tokkee.org>.
# Andreas Metzler <ametzler@debian.org>

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

#used by  debian/patches/20_reproducible_sig.diff
export DEB_TOP_DIR:=$(CURDIR)

export DEB_CFLAGS_MAINT_APPEND := -Wall
export DEB_CXXFLAGS_MAINT_APPEND := -pipe
export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS := hardening=+all

CONFARGS := --with-openexr=yes

override_dh_auto_configure:
	dh_auto_configure --verbose \
		--builddirectory=build-def -- $(CONFARGS) \
		--enable-openmp

override_dh_auto_build:
	dh_auto_build --verbose --parallel --builddirectory=build-def
	cd build-def && $(MAKE) pdf

	sed -i -e "s/manual page for enblend.*/combine images using a multiresolution spline/" \
		build-def/src/enblend.1
	sed -i -e "s/manual page for enfuse.*/poor man's HDR/" \
		build-def/src/enfuse.1

override_dh_auto_install:
	dh_auto_install --verbose --builddirectory=build-def
	mkdir -p $(CURDIR)/debian/enblend/usr/share/doc/enblend/html \
		$(CURDIR)/debian/enfuse/usr/share/doc/enfuse/html
	cd $(CURDIR)/build-def/doc && \
		grep '<img src="[^>]*\.png' enblend*.html | \
		sed -e 's/.*<img src="\([^"]*\)">.*/\1/' | sort -u | \
		xargs -r cp -v \
		--target-directory=$(CURDIR)/debian/enblend/usr/share/doc/enblend/html/ && \
		grep '<img src="[^>]*\.png' enfuse*.html | \
		sed -e 's/.*<img src="\([^"]*\)">.*/\1/' | sort -u | \
		xargs -r cp -v \
		--target-directory=$(CURDIR)/debian/enfuse/usr/share/doc/enfuse/html/

override_dh_compress:
	dh_compress -X.pdf

override_dh_install:
	dh_install --fail-missing

override_dh_installdocs:
	dh_installdocs -A -a NEWS AUTHORS

%:
	dh $@ --with autotools_dev --builddirectory=build-def