File: rules

package info (click to toggle)
kvirc 4:5.0.0+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 31,704 kB
  • sloc: cpp: 230,732; perl: 2,106; pascal: 1,000; sh: 841; ansic: 244; makefile: 61; python: 54; xml: 19
file content (37 lines) | stat: -rwxr-xr-x 1,067 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
28
29
30
31
32
33
34
35
36
37
#! /usr/bin/make -f

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

# We don't install all files upstream wants to. Those files get added to
# the following variable which gives us a cleaner buildd output (idea taken
# from the mesa package).
NOT_INSTALLED := \
				usr/lib/$(DEB_HOST_MULTIARCH)/libkvilib.so \
				usr/bin/kvirc-config \
				usr/share/kvirc/5.0/license/LICENSE-OPENSSL \
				usr/share/kvirc/5.0/license/COPYING \
				usr/share/kvirc/5.0/license/ABOUT-LICENSE \
				usr/share/pixmaps/kvirc.png

override_dh_auto_configure:
	dh_auto_configure -- \
			-DCMAKE_BUILD_TYPE=RelWithDebInfo \
			-DWANT_COEXISTENCE=OFF \
			-DWANT_ESD=OFF -DWANT_OSS=OFF \
			-DWANT_STRIP=OFF \
			-DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)"

override_dh_install:
	set -e; for file in $(NOT_INSTALLED); do rm debian/tmp/$$file; done
	dh_install

override_dh_missing:
	dh_missing --fail-missing

%:
	dh $@ --with kf5

.PHONY: override_dh_auto_configure override_dh_install override_dh_missing