mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
debian packaging update
This commit is contained in:
parent
ed70b941e8
commit
7a29f3ca26
2
debian/compat.sid
vendored
2
debian/compat.sid
vendored
@ -1 +1 @@
|
||||
8
|
||||
9
|
||||
|
2
debian/compat.wheezy
vendored
2
debian/compat.wheezy
vendored
@ -1 +1 @@
|
||||
8
|
||||
9
|
||||
|
1
debian/libqgis-dev.install
vendored
1
debian/libqgis-dev.install
vendored
@ -2,3 +2,4 @@ usr/include/qgis/*
|
||||
usr/lib/libqgis_core.so
|
||||
usr/lib/libqgis_gui.so
|
||||
usr/lib/libqgis_analysis.so
|
||||
usr/lib/libqgis_networkanalysis.so
|
||||
|
3
debian/libqgis{QGIS_ABI}-dev.install
vendored
3
debian/libqgis{QGIS_ABI}-dev.install
vendored
@ -1,3 +0,0 @@
|
||||
usr/include/qgis/*
|
||||
usr/lib/libqgis_gui.so
|
||||
usr/lib/libqgis_core.so
|
15
debian/rules
vendored
15
debian/rules
vendored
@ -43,6 +43,8 @@ CMAKE_OPTS := \
|
||||
-D QGIS_CGIBIN_SUBDIR=/usr/lib/cgi-bin \
|
||||
-D WITH_APIDOC=TRUE
|
||||
|
||||
MAKEFLAGS += VERBOSE=YES
|
||||
|
||||
ifneq (,$(findstring $(DISTRIBUTION),"squeeze wheezy lucid maverick natty oneiric precise"))
|
||||
CMAKE_OPTS += -D WITH_PYSPATIALITE=TRUE
|
||||
endif
|
||||
@ -57,18 +59,27 @@ else
|
||||
CMAKE_OPTS += -D WITH_GLOBE=TRUE
|
||||
endif
|
||||
|
||||
ifneq (,$(findstring $(DISTRIBUTION),"wheezy sid"))
|
||||
CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
|
||||
CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
|
||||
CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
|
||||
LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
|
||||
endif
|
||||
|
||||
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
||||
CFLAGS += -O0
|
||||
CXXFLAGS += -O0
|
||||
else
|
||||
CFLAGS += -O2
|
||||
CXXFLAGS += -O2
|
||||
endif
|
||||
|
||||
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
||||
INSTALL_PROGRAM += -s
|
||||
endif
|
||||
|
||||
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
|
||||
CMAKE_OPTS += -D CMAKE_BUILD_TYPE=Debug -D ENABLE_TESTS=TRUE
|
||||
MAKEFLAGS += VERBOSE=YES
|
||||
endif
|
||||
|
||||
ifneq (,$(findstring profile,$(DEB_BUILD_OPTIONS)))
|
||||
@ -99,7 +110,7 @@ debian/build/CMakeCache.txt: $(TEMPLATES) CMakeLists.txt
|
||||
# Add here commands to configure the package.
|
||||
[ -d debian/build ] || mkdir debian/build
|
||||
[ ! -e CMakeCache.txt ] || rm CMakeCache.txt
|
||||
cd debian/build; cmake $(CMAKE_OPTS) ../..
|
||||
cd debian/build; CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" cmake $(CMAKE_OPTS) ../..
|
||||
|
||||
build: build-stamp
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user