1
# Include default KDE 4 cmake configuration variables
2
include /usr/share/pkg-kde-tools/makefiles/1/variables.mk
4
# Check if debhelper (>= 7.3) is installed
5
DEB_DH_VERSION := $(shell perl -MDebian::Debhelper::Dh_Version -e \
6
'my $$v=$$Debian::Debhelper::Dh_Version::version;\
7
my @v=split(/\./,$$v); \
8
print (($$v[0]>7 || $$v[0]==7 && $$v[1]>=3) ? "ok" : $$v), "\n";' 2>/dev/null)
9
ifneq ($(DEB_DH_VERSION),ok)
10
$(error Debhelper is too old ($(DEB_DH_VERSION)) on your system. Upgrade to 7.3.0 or later)
13
# Configure with KDE cmake flags by default.
14
DEB_KDE_OVERRIDE_DH_AUTO_CONFIGURE ?= override_dh_auto_configure
15
$(DEB_KDE_OVERRIDE_DH_AUTO_CONFIGURE):
16
dh_auto_configure -- $(DEB_CMAKE_KDE4_FLAGS) $(DEB_CMAKE_CUSTOM_FLAGS)