summaryrefslogtreecommitdiff
path: root/makefiles/1/variables.mk
diff options
context:
space:
mode:
authorModestas Vainius <modestas@vainius.eu>2010-02-17 20:22:40 +0200
committerModestas Vainius <modestas@vainius.eu>2010-02-17 20:22:40 +0200
commit2eb5f1dc5a190c5e336d4739d0c6d79f53b866af (patch)
tree7a8b353cad660c2438e48099088ff93acb17848a /makefiles/1/variables.mk
parenta7b4aaa67c36b9cdfb868353acb650a69b5f30a3 (diff)
downloadpkg-kde-tools-2eb5f1dc5a190c5e336d4739d0c6d79f53b866af.tar.gz
Move RPATH "workaround" code for <= KDE 4.3.x to variables.mk.
Moving from makefiles/1/cdbs/kde.mk to makefiles/1/variables.mk allows debian-qt-kde.mk to use that workaround as well.
Diffstat (limited to 'makefiles/1/variables.mk')
-rw-r--r--makefiles/1/variables.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/makefiles/1/variables.mk b/makefiles/1/variables.mk
index a86bb29..4b1dcbb 100644
--- a/makefiles/1/variables.mk
+++ b/makefiles/1/variables.mk
@@ -8,6 +8,13 @@ ifdef DEB_CONFIG_INSTALL_DIR
-DCONFIG_INSTALL_DIR=$(DEB_CONFIG_INSTALL_DIR)
endif
+# Skip RPATH if kdelibs5-dev is older than 4:4.4.0
+DEB_KDELIBS5_DEV_VER := $(shell dpkg-query -f='$${Version}\n' -W kdelibs5-dev 2>/dev/null)
+DEB_KDELIBS5_DEV_VER_OLD := $(shell dpkg --compare-versions $(DEB_KDELIBS5_DEV_VER) lt 4:4.4.0 2>/dev/null && echo yes)
+ifeq (yes,$(DEB_KDELIBS5_DEV_VER_OLD))
+ DEB_CMAKE_KDE4_FLAGS += -DCMAKE_SKIP_RPATH:BOOL=ON
+endif
+
# Set the DEB_KDE_LINK_WITH_AS_NEEDED to yes to enable linking
# with --as-needed (off by default)
DEB_KDE_LINK_WITH_AS_NEEDED ?= no