File: rules

package info (click to toggle)
libcdk5 5.0.20190303-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,488 kB
  • sloc: ansic: 32,640; sh: 4,711; makefile: 1,155; sed: 43; cpp: 41
file content (31 lines) | stat: -rwxr-xr-x 861 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

#export DH_VERBOSE=1

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

export DEB_CFLAGS_MAINT_APPEND  = -fPIE
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

DEB_HOST_MULTIARCH?=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --with-pkg-config


override_dh_auto_install:
	dh_auto_install -- installCDKSHLibrary
	mv debian/tmp/usr/share/doc/cdk debian/tmp/usr/share/doc/libcdk5-dev
	rm debian/tmp/usr/share/doc/libcdk5-dev/COPYING
	rm debian/tmp/usr/share/doc/libcdk5-dev/INSTALL
	mkdir -p debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libcdk5-dev/bin
	cp -a debian/tmp/usr/bin/cdk5-config debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libcdk5-dev/bin

override_dh_compress:
	dh_compress -Xexamples

override_dh_makeshlibs:
	dh_makeshlibs -- -v$(PVER)