mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
debian packaging: depend on python 2.5 for sid while transition to 2.6 is on
git-svn-id: http://svn.osgeo.org/qgis/trunk@12839 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
bbcda4ef85
commit
2d07997fbe
9
debian/rules
vendored
9
debian/rules
vendored
@ -11,7 +11,7 @@ DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
||||
|
||||
DISTRIBUTION := $(shell dpkg-parsechangelog --format rfc822 | sed -ne "s/^Distribution: //p")
|
||||
ifneq ($(DISTRIBUTION),$(findstring $(DISTRIBUTION),"lenny hardy intrepid jaunty karmic"))
|
||||
DISTRIBUTION := sid
|
||||
DISTRIBUTION := sid
|
||||
endif
|
||||
|
||||
QGIS_MAJOR=$(shell sed -ne 's/SET(CPACK_PACKAGE_VERSION_MAJOR "\([0-9]*\)")/\1/p' CMakeLists.txt)
|
||||
@ -20,7 +20,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_ABI=$(subst .,,$(shell pkg-config --modversion grass|sed -e "s/\.//g" -e "s/RC/-/"))
|
||||
|
||||
CMAKE_OPTS = \
|
||||
CMAKE_OPTS := \
|
||||
-Wno-dev \
|
||||
-D GRASS_PREFIX=/usr/lib/grass64 \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
@ -30,6 +30,11 @@ CMAKE_OPTS = \
|
||||
-D WITH_SPATIALITE=TRUE \
|
||||
-D WITH_INTERNAL_SPATIALITE=TRUE
|
||||
|
||||
ifeq ($(DISTRIBUTION),sid)
|
||||
# depend on python 2.5 while transition to python 2.6 is on
|
||||
CMAKE_OPTS += -D PYTHON_EXECUTABLE=/usr/bin/python2.5
|
||||
endif
|
||||
|
||||
ifneq (,$(findstring $(DISTRIBUTION),"hardy intrepid"))
|
||||
LDFLAGS += -Wl,--as-needed -Wl,--no-undefined
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user