@@ -16,9 +16,9 @@ DEB_BUILD_MULTIARCH ?= $(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)
16
16
QT_PLUGIN_DIR = usr/lib/$(DEB_BUILD_MULTIARCH ) /qt4/plugins
17
17
18
18
DEB_TEST_TARGET ?= Experimental
19
- BUILDDIR ?= debian/build
19
+ QGIS_BUILDDIR ?= debian/build
20
20
21
- QGIS_VERSION =$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(. * \) -.*/\1 /p')
21
+ QGIS_VERSION =$(shell dpkg-parsechangelog | sed -ne 's/^Version: \([0-9]\+:\) \?\([^+-]\+\).*$$/\2 /p')
22
22
23
23
ifeq (,$(DISTRIBUTION ) )
24
24
DISTRIBUTION := $(shell dpkg-parsechangelog --format rfc822 | sed -ne "s/^Distribution: //p")
@@ -148,6 +148,7 @@ ifneq (,$(findstring profile,$(DEB_BUILD_OPTIONS)))
148
148
LDFLAGS += -pg
149
149
endif
150
150
151
+
151
152
# multi distribution support:
152
153
# - remove lines with applicable excludes
153
154
# - remove prefixes with applicable includes
@@ -189,8 +190,13 @@ cleantemplates:
189
190
$(MAKE ) -f debian/rules templateclean
190
191
$(MAKE ) -f debian/rules debian/control debian/compat
191
192
192
- binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep :
193
- dh $@ --with python2 --parallel --builddirectory=$(BUILDDIR )
193
+ build : ;
194
+
195
+ binary binary-arch binary-indep build-arch build-indep clean install install-arch install-indep :
196
+ dh $@ --with python2 --parallel --builddirectory=$(QGIS_BUILDDIR )
197
+
198
+ override_dh_auto_build-arch :
199
+ dh_auto_build
194
200
195
201
override_dh_clean : cleantemplates
196
202
dh_clean
@@ -199,27 +205,32 @@ override_dh_clean: cleantemplates
199
205
-$(RM) $(CURDIR)/src/core/qgscontexthelp_texts.cpp
200
206
-$(RM) $(CURDIR)/src/core/qgsexpression_texts.cpp
201
207
202
- -$(RM) -r $(CURDIR)/$(BUILDDIR )/
208
+ -$(RM) -r $(CURDIR)/$(QGIS_BUILDDIR )/
203
209
204
- override_dh_auto_configure : templates
210
+ override_dh_auto_configure-arch : templates
205
211
dh_auto_configure -- $(CMAKE_OPTS )
206
212
213
+ override_dh_auto_test-arch :
207
214
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS ) ) )
208
- override_dh_auto_test :
209
215
# Code to run the package test suite - and ignore the outcome for now
210
216
mkdir -p debian/tmp/locale/
211
217
localedef -f UTF-8 -i en_US ./debian/tmp/locale/en_US.UTF-8/
212
218
-LOCPATH=$(CURDIR)/debian/tmp/locale/ \
213
219
LC_ALL=en_US.UTF-8 \
214
- LD_LIBRARY_PATH=$(CURDIR ) /$(BUILDDIR ) /output/lib:$(LD_LIBRARY_PATH ) \
220
+ LD_LIBRARY_PATH=$(CURDIR)/$(QGIS_BUILDDIR )/output/lib:$(LD_LIBRARY_PATH) \
215
221
PATH=/usr/sbin:$(PATH) \
216
- $(TESTMAKE ) -C $(BUILDDIR ) $(DEB_TEST_TARGET )
222
+ $(TESTMAKE) -C $(QGIS_BUILDDIR ) $(DEB_TEST_TARGET)
217
223
else
218
- override_dh_auto_test :
219
224
@echo Skipping tests.
220
225
endif
221
226
222
- override_dh_auto_install :
227
+ override_dh_auto_configure-indep : ;
228
+ override_dh_auto_test-indep : ;
229
+ override_dh_auto_install-indep : ;
230
+ override_dh_auto_build-indep : ;
231
+ override_dh_install-indep : ;
232
+
233
+ override_dh_auto_install-arch :
223
234
dh_auto_install
224
235
225
236
# Install menu pixmap
@@ -273,7 +284,7 @@ override_dh_auto_install:
273
284
install -o root -g root -m 755 $(CURDIR)/debian/qgis.sh $(CURDIR)/debian/qgis-plugin-grass/usr/bin/qgis
274
285
install -o root -g root -m 755 $(CURDIR)/debian/qgis.sh $(CURDIR)/debian/qgis-plugin-grass/usr/bin/qbrowser
275
286
276
- override_dh_install :
287
+ override_dh_install-arch :
277
288
# Don't ship srs.db, automatically updated in postinst with crssync
278
289
mv $(CURDIR ) /debian/tmp/usr/share/qgis/resources/srs.db $(CURDIR ) /debian/tmp/usr/share/qgis/resources/srs-template.db
279
290
0 commit comments