File: rules

package info (click to toggle)
qt-advanced-docking-system 4.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 24,492 kB
  • sloc: cpp: 16,302; python: 1,392; makefile: 12
file content (24 lines) | stat: -rwxr-xr-x 787 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
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/dpkg/pkg-info.mk

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

# Increase hardening to maximum, considering attack surface
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --buildsystem cmake

override_dh_auto_configure:
	dh_auto_configure -- \
		-DADS_VERSION=$(DEB_VERSION_UPSTREAM)

# I tweak the paths so that the shipped examples can be built
D := debian/libqt-advanced-docking-system-dev/usr/share/doc/libqt-advanced-docking-system-dev/examples
override_dh_installexamples:
	dh_installexamples
	perl -p -i -e 's@\$${VERSION_SHORT}@$(DEB_VERSION_UPSTREAM)@g' $D/*/CMakeLists.txt
	perl -p -i -e 's@\$${CMAKE_CURRENT_SOURCE_DIR}/../(../)?src@/usr/include/qtadvanceddocking/@g' $D/*/CMakeLists.txt