File: rules

package info (click to toggle)
iipimage 1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 7,376 kB
  • sloc: sh: 8,127; cpp: 7,791; ansic: 3,983; java: 872; makefile: 200; perl: 2
file content (52 lines) | stat: -rwxr-xr-x 1,235 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

ifneq (,$(KDU_ROOT))
LD_LIBRARY_PATH:=$(LD_LIBRARY_PATH):$(KDU_ROOT)/apps/make
WITH_KAKDU = --with-kakadu=$(KDU_ROOT)
endif

%:
	dh $@ --with autotools_dev --with systemd

override_dh_auto_configure:
	autoreconf -i --force
	dh_auto_configure -- $(WITH_KAKDU)

override_dh_clean-arch:
	dh_clean fcgi/

override_dh_install-arch:
	dh_install src/iipsrv.fcgi usr/lib/iipimage-server/
	dh_install debian/iipsrv.conf etc/apache2/mods-available
	dh_install debian/iipsrv.load etc/apache2/mods-available

override_dh_auto_install:
	# for some reason it install fcgi headers

override_dh_installinit:
	dh_systemd_enable -piipimage-server --name=iipsrv iipsrv.service
	dh_installinit -piipimage-server --no-start --noscripts
	dh_systemd_start -piipimage-server --no-restart-on-upgrade

override_dh_systemd_start:
	echo "Not running dh_systemd_start"

override_dh_clean-indep:
	dh_clean doc/html/

# Let's be smart with building doc
override_dh_auto_build-indep:
	doxygen doc/doxygen-html.conf

# No tests needed for docs
override_dh_auto_test-indep:

ifneq (,$(KDU_ROOT))
override_dh_shlibdeps:
endif

get-orig-source:
	uscan --verbose --force-download