Skip to content
Permalink
Browse files

debian packaging: depend on grass abi

(cherry picked from commit ac890ba)
  • Loading branch information
jef-n committed Sep 27, 2017
1 parent f622641 commit c6ac16eb14ad6d349f83a254417a9d8664036a40
Showing with 3 additions and 0 deletions.
  1. +1 −0 debian/control.in
  2. +2 −0 debian/rules
@@ -314,6 +314,7 @@ Depends:
qgis-provider-grass (= ${binary:Version}),
${shlibs:Depends},
${misc:Depends},
grass{GRASSABI},
#!precise# grass-core
#precise# grass
Replaces: qgis-provider-grass (<< 1:2.11.0+git20151002)
@@ -49,6 +49,7 @@ QGIS_PATCH=$(shell sed -ne 's/SET(CPACK_PACKAGE_VERSION_PATCH "\([0-9]*\)")/\1/p
QGIS_ABI=$(QGIS_MAJOR).$(QGIS_MINOR).$(QGIS_PATCH)
GRASS=grass$(subst .,,$(shell pkg-config --modversion grass|cut -d. -f1,2))
GRASSVER=$(subst .,,$(shell pkg-config --modversion grass|cut -d. -f1))
GRASSABI=$(subst .,,$(shell pkg-config --modversion grass))

WITH_GLOBE=$(shell dpkg --compare-versions "$$(dpkg-query -W --showformat='$${Version}' libosgearth-dev)" lt 2.7 && echo 1)

@@ -210,6 +211,7 @@ $(2): $(1)
-e "s/\{QGIS_ABI\}/$(QGIS_ABI)/g" \
-e "s/\{GRASS\}/$(GRASS)/g" \
-e "s/\{GRASSVER\}/$(GRASSVER)/g" \
-e "s/\{GRASSABI\}/$(GRASSABI)/g" \
-e "s/\{GRASSVER_QGISABI\}/$(GRASSVER)-$(QGIS_ABI)/g" \
$$^ >$$@

0 comments on commit c6ac16e

Please sign in to comment.
You can’t perform that action at this time.