File: rules

package info (click to toggle)
trustedqsl 2.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 38,156 kB
  • sloc: cpp: 36,377; xml: 7,984; javascript: 6,989; ansic: 634; sh: 149; makefile: 19; python: 18
file content (35 lines) | stat: -rwxr-xr-x 1,070 bytes parent folder | download | duplicates (6)
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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_HARDENING=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Disable WXDEBUG assertions, which are on by default in wx3.0.
export DEB_CXXFLAGS_MAINT_APPEND=-DNDEBUG

%:
	dh $@

override_dh_install:
	# Omit the 5 header files that the build installs to /usr/include
	# (they would belong in a -dev package)
	dh_install
	rm -r debian/trustedqsl/usr/include
	# symlink tqsl documentation into /usr/share/doc/trustedqsl
	# see: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1020635
	dh_link usr/share/TrustedQSL/help/tqslapp usr/share/doc/trustedqsl/help

override_dh_installman:
	# Duplicate the tqsl.5 man page for tqsl.1 but fix its section
	# for dh_installman (see debian/trustedqsl.manpages).
	mkdir -p debian/tmp
	sed 's/^\.TH TQSL 5/.TH TQSL 1/' < apps/tqsl.5  \
	    > debian/tmp/tqsl.1
	dh_installman

override_dh_auto_configure:
	dh_auto_configure -- \
		-DTQSL_RPATH=TRUE \
		-DCMAKE_INSTALL_LIBDIR=lib/trustedqsl \
		-DCMAKE_INSTALL_MANDIR=/usr/share/man