Skip to content

Commit 7a29f3c

Browse files
committed
debian packaging update
1 parent ed70b94 commit 7a29f3c

5 files changed

+16
-7
lines changed

debian/compat.sid

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8
1+
9

debian/compat.wheezy

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8
1+
9

debian/libqgis-dev.install

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ usr/include/qgis/*
22
usr/lib/libqgis_core.so
33
usr/lib/libqgis_gui.so
44
usr/lib/libqgis_analysis.so
5+
usr/lib/libqgis_networkanalysis.so

debian/libqgis{QGIS_ABI}-dev.install

-3
This file was deleted.

debian/rules

+13-2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ CMAKE_OPTS := \
4343
-D QGIS_CGIBIN_SUBDIR=/usr/lib/cgi-bin \
4444
-D WITH_APIDOC=TRUE
4545

46+
MAKEFLAGS += VERBOSE=YES
47+
4648
ifneq (,$(findstring $(DISTRIBUTION),"squeeze wheezy lucid maverick natty oneiric precise"))
4749
CMAKE_OPTS += -D WITH_PYSPATIALITE=TRUE
4850
endif
@@ -57,18 +59,27 @@ else
5759
CMAKE_OPTS += -D WITH_GLOBE=TRUE
5860
endif
5961

62+
ifneq (,$(findstring $(DISTRIBUTION),"wheezy sid"))
63+
CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
64+
CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
65+
CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
66+
LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
67+
endif
68+
6069
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
6170
CFLAGS += -O0
71+
CXXFLAGS += -O0
6272
else
6373
CFLAGS += -O2
74+
CXXFLAGS += -O2
6475
endif
76+
6577
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
6678
INSTALL_PROGRAM += -s
6779
endif
6880

6981
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
7082
CMAKE_OPTS += -D CMAKE_BUILD_TYPE=Debug -D ENABLE_TESTS=TRUE
71-
MAKEFLAGS += VERBOSE=YES
7283
endif
7384

7485
ifneq (,$(findstring profile,$(DEB_BUILD_OPTIONS)))
@@ -99,7 +110,7 @@ debian/build/CMakeCache.txt: $(TEMPLATES) CMakeLists.txt
99110
# Add here commands to configure the package.
100111
[ -d debian/build ] || mkdir debian/build
101112
[ ! -e CMakeCache.txt ] || rm CMakeCache.txt
102-
cd debian/build; cmake $(CMAKE_OPTS) ../..
113+
cd debian/build; CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" cmake $(CMAKE_OPTS) ../..
103114

104115
build: build-stamp
105116

0 commit comments

Comments
 (0)