| 1 |
|
| 2 |
|
| 3 |
include /usr/share/dpkg/default.mk |
| 4 |
|
| 5 |
|
| 6 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
confflags = --prefix=/usr --disable-test --disable-doc --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) |
| 11 |
|
| 12 |
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) |
| 13 |
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) |
| 14 |
|
| 15 |
confflags += --build $(DEB_BUILD_GNU_TYPE) |
| 16 |
|
| 17 |
|
| 18 |
ifneq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) |
| 19 |
confflags += --host $(DEB_HOST_GNU_TYPE) |
| 20 |
endif |
| 21 |
|
| 22 |
export QT_SELECT=qt5 |
| 23 |
|
| 24 |
%: |
| 25 |
dh $@ --with autoreconf |
| 26 |
|
| 27 |
override_dh_auto_configure: |
| 28 |
dh_auto_configure --buildsystem=cmake |
| 29 |
|
| 30 |
override_dh_auto_build-indep: |
| 31 |
dh_auto_build |
| 32 |
|
| 33 |
override_dh_installdocs-indep: |
| 34 |
cp -r $(CURDIR)/obj-$(DEB_BUILD_GNU_TYPE)/doc/html/* $(CURDIR)/debian/liburiparser-doc/usr/share/doc/liburiparser-doc/html/ |
| 35 |
$(RM) debian/liburiparser-doc/usr/share/doc/liburiparser-doc/html/*.md5 |
| 36 |
dh_installdocs |
| 37 |
|
| 38 |
override_dh_makeshlibs: |
| 39 |
dh_makeshlibs -- -v$(DEB_VERSION_UPSTREAM) -Pdebian/liburiparser1 -pliburiparser1 |
| 40 |
|
| 41 |
override_dh_compress: |
| 42 |
dh_compress -X.qhp |