File: rules

package info (click to toggle)
afflib 3.7.17-5
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 3,320 kB
  • sloc: cpp: 20,885; ansic: 15,908; makefile: 526; sh: 438; python: 192
file content (27 lines) | stat: -rwxr-xr-x 659 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export PVER=$(shell dpkg-parsechangelog --show-field version | cut -d"-" -f1)

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- LDFLAGS="$(LDFLAGS) -Wl,--as-needed,-z,defs" \
		--enable-s3=yes --enable-python=no --enable-static=yes \
		--enable-shared=yes

override_dh_auto_install:
	dh_auto_install
	chrpath -d debian/tmp/usr/bin/*
	set -e; for file in `ls debian/tmp/usr/lib/*/*.la`; do \
		sed -i "/dependency_libs/ s/'.*'/''/" $$file ; \
	done

override_dh_auto_test:
	# do nothing

override_dh_makeshlibs:
	dh_makeshlibs -- -v$(PVER)