[mapcache] 01/02: Disable memcache support on architectures where it's not supported.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Tue Aug 25 17:41:31 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository mapcache.
commit 8b87283eacca3f9805005632e6f15cc25c124cc1
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Tue Aug 25 19:22:21 2015 +0200
Disable memcache support on architectures where it's not supported.
---
debian/changelog | 6 ++++++
debian/rules | 11 +++++++++--
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index f698894..b988f9d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+mapcache (1.4.0-3) UNRELEASED; urgency=medium
+
+ * Disable memcache support on architectures where it's not supported.
+
+ -- Bas Couwenberg <sebastic at debian.org> Tue, 25 Aug 2015 19:22:14 +0200
+
mapcache (1.4.0-2) unstable; urgency=medium
* Enable memcache support. Thanks to Frederic Junod for the patch.
diff --git a/debian/rules b/debian/rules
index 5818502..8bbd565 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,8 @@ export DH_OPTIONS
# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
-DEB_HOST_MULTIARCH?=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
@@ -28,7 +29,6 @@ CMAKE_OPTS:= \
-DWITH_PIXMAN=1 \
-DWITH_SQLITE=1 \
-DWITH_BERKELEY_DB=0 \
- -DWITH_MEMCACHE=1 \
-DWITH_TIFF=1 \
-DWITH_TIFF_WRITE_SUPPORT=0 \
-DWITH_GEOTIFF=0 \
@@ -41,6 +41,13 @@ CMAKE_OPTS:= \
-DWITH_GEOS=1 \
-DWITH_OGR=1
+# Disable memcache support on architectures where it's not supported
+ifneq (,$(findstring $(DEB_HOST_ARCH),"armel armhf i386 mips mipsel powerpc hppa"))
+ CMAKE_OPTS += -DWITH_MEMCACHE=0
+else
+ CMAKE_OPTS += -DWITH_MEMCACHE=1
+endif
+
%:
dh $@ --with apache2,pkgkde_symbolshelper \
--parallel \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/mapcache.git
More information about the Pkg-grass-devel
mailing list