[zoo-project] 12/12: Set MapServer, ITK & OTB version dynamically.
Bas Couwenberg
sebastic at debian.org
Sun Jan 15 21:42:16 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository zoo-project.
commit 36c259429f5e08d590bff01d5d4c66e2a154c498
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sun Jan 15 22:34:21 2017 +0100
Set MapServer, ITK & OTB version dynamically.
---
debian/rules | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/debian/rules b/debian/rules
index 85231ac..b267938 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,12 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/\+.*//; s/^[0-9]://')
+MAPSERVER_VERSION=$(shell dpkg-query -W -f='${Version}' libmapserver-dev | awk -F. '{ print $1 }')
+
+ITK_VERSION=$(shell dpkg-query -W -f='${Version}' libinsighttoolkit4-dev | awk -F. '{ print $1"."$2 }')
+
+OTB_VERSION=$(shell dpkg-query -W -f='${Version}' libotb-dev | awk -F. '{ print $1"."$2 }')
+
%:
dh $@ --with autoreconf --parallel
@@ -40,11 +46,11 @@ override_dh_auto_configure:
--with-java=/usr/lib/jvm/default-java \
--with-cgal=/usr \
--with-mapserver=/usr \
- --with-ms-version=7 \
+ --with-ms-version=$(MAPSERVER_VERSION) \
--with-itk=/usr \
- --with-itk-version=4.9 \
+ --with-itk-version=$(ITK_VERSION) \
--with-otb=/usr \
- --with-otb-version=5.4
+ --with-otb-version=$(OTB_VERSION)
dh_auto_configure --sourcedirectory=thirds/otb2zcfg \
--builddirectory=thirds/otb2zcfg/build
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/zoo-project.git
More information about the Pkg-grass-devel
mailing list