1
# KDE 4 global configuration file installation directory
2
DEB_CONFIG_INSTALL_DIR ?= /usr/share/kde4/config
4
# Standard Debian KDE 4 cmake flags
5
DEB_CMAKE_KDE4_FLAGS += \
6
-DCMAKE_BUILD_TYPE=Debian \
7
-DKDE4_ENABLE_FINAL=$(KDE4-ENABLE-FINAL) \
8
-DKDE4_BUILD_TESTS=false \
9
-DKDE_DISTRIBUTION_TEXT="Debian packages" \
10
-DKDE_DEFAULT_HOME=.kde4 \
11
-DCMAKE_SKIP_RPATH=true \
12
-DKDE4_USE_ALWAYS_FULL_RPATH=false \
13
-DCONFIG_INSTALL_DIR=$(DEB_CONFIG_INSTALL_DIR) \
14
-DDATA_INSTALL_DIR=/usr/share/kde4/apps \
15
-DHTML_INSTALL_DIR=/usr/share/doc/kde4/HTML \
16
-DKCFG_INSTALL_DIR=/usr/share/kde4/config.kcfg \
17
-DLIB_INSTALL_DIR=/usr/lib \
18
-DSYSCONF_INSTALL_DIR=/etc \
19
-DKDE4_USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR:BOOL=TRUE
21
# Support building with enable final (disabled by default)
22
DEB_KDE_ENABLE_FINAL ?=
23
KDE4-ENABLE-FINAL := false
24
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
25
treat_me_gently_arches := arm m68k alpha ppc64 armel armeb
26
DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
27
ifeq (,$(filter $(DEB_HOST_ARCH_CPU),$(treat_me_gently_arches)))
28
KDE4-ENABLE-FINAL := $(if $(DEB_KDE_ENABLE_FINAL),true,false)
32
#### Default additional (custom) cmake flags ####
33
DEB_CMAKE_CUSTOM_FLAGS ?=
35
# Set the one below to something else than 'yes' to disable linking
36
# with --as-needed (on by default)
37
DEB_KDE_LINK_WITH_AS_NEEDED ?= yes
38
ifneq (,$(findstring yes, $(DEB_KDE_LINK_WITH_AS_NEEDED)))
39
ifeq (,$(findstring no-as-needed, $(DEB_BUILD_OPTIONS)))
40
DEB_KDE_LINK_WITH_AS_NEEDED := yes
41
DEB_CMAKE_CUSTOM_FLAGS += \
42
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \
43
-DCMAKE_MODULE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \
44
-DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed"
46
DEB_KDE_LINK_WITH_AS_NEEDED := no
49
DEB_KDE_LINK_WITH_AS_NEEDED := no