2007-08-29 03:51:57 +00:00
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
2014-04-05 20:01:21 +02:00
# This has to be exported to make some magic below work.
export DH_OPTIONS
2016-03-25 17:19:59 +01:00
# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
2019-02-23 14:01:58 +01:00
include /usr/share/dpkg/pkg-info.mk
2007-08-29 03:51:57 +00:00
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
2012-04-19 22:47:29 +02:00
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
2014-01-18 23:07:33 +01:00
DEB_BUILD_MULTIARCH ?= $(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)
2007-08-29 03:51:57 +00:00
2012-04-18 20:52:01 +02:00
DEB_TEST_TARGET ?= Experimental
2019-02-23 14:01:58 +01:00
2015-12-06 21:37:30 +01:00
QGIS_BUILDDIR ?= debian/build
2019-02-23 14:01:58 +01:00
2016-09-25 16:54:24 +02:00
export QT_SELECT=5
2012-04-18 20:52:01 +02:00
2019-02-23 14:01:58 +01:00
QGIS_VERSION=$(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*//')
2014-04-05 20:01:21 +02:00
2016-01-29 21:34:07 +01:00
ifeq (,$(DIST))
2019-02-23 14:01:58 +01:00
DISTRIBUTION := $(DEB_DISTRIBUTION)
2016-01-29 21:34:07 +01:00
else
DISTRIBUTION := $(DIST)
2012-09-08 16:30:01 +02:00
endif
2015-08-27 01:22:42 +02:00
ifneq (,$(findstring -oracle,$(DISTRIBUTION)))
DISTRIBUTION := $(subst -oracle,,$(DISTRIBUTION))
WITH_ORACLE=1
endif
2020-08-24 20:05:36 +02:00
QT_PLUGINS_DIR = lib/$(DEB_BUILD_MULTIARCH)/qt5/plugins
2016-05-27 23:41:01 +02:00
2020-02-12 20:24:07 +01:00
ifneq ($(DISTRIBUTION),$(findstring $(DISTRIBUTION),"buster bionic eoan focal"))
2012-09-08 16:30:01 +02:00
DISTRIBUTION := sid
2009-09-20 16:23:48 +00:00
endif
2012-04-19 22:47:29 +02:00
DEB_BUILD_NAME ?= $(DISTRIBUTION)-$(DEB_BUILD_ARCH)
2009-09-20 16:23:48 +00:00
QGIS_MAJOR=$(shell sed -ne 's/SET(CPACK_PACKAGE_VERSION_MAJOR "\([0-9]*\)")/\1/p' CMakeLists.txt)
QGIS_MINOR=$(shell sed -ne 's/SET(CPACK_PACKAGE_VERSION_MINOR "\([0-9]*\)")/\1/p' CMakeLists.txt)
QGIS_PATCH=$(shell sed -ne 's/SET(CPACK_PACKAGE_VERSION_PATCH "\([0-9]*\)")/\1/p' CMakeLists.txt)
QGIS_ABI=$(QGIS_MAJOR).$(QGIS_MINOR).$(QGIS_PATCH)
2010-02-04 22:24:35 +00:00
GRASS=grass$(subst .,,$(shell pkg-config --modversion grass|cut -d. -f1,2))
2015-04-11 17:20:52 +02:00
GRASSVER=$(subst .,,$(shell pkg-config --modversion grass|cut -d. -f1))
2017-09-27 23:02:24 +02:00
GRASSABI=$(subst .,,$(shell pkg-config --modversion grass|cut -d. -f1,2,3|sed -e 's/RC/-/'))
2009-09-20 16:23:48 +00:00
2019-02-23 14:01:58 +01:00
# Include percentage of started edges
export NINJA_STATUS=[%f/%t %p]
ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
NINJA_OPTS += -v
endif
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
MAKEFLAGS += -j$(NUMJOBS)
NINJA_OPTS += -j$(NUMJOBS)
endif
ifeq (,$(DISPLAY))
TESTMAKE=xvfb-run -a -n 1 -s "-screen 0 1280x1024x24 -dpi 96" ninja $(NINJA_OPTS)
else
TESTMAKE=ninja $(NINJA_OPTS)
endif
2020-03-08 16:11:38 +01:00
ifeq (,$(findstring $(DISTRIBUTION),"focal sid"))
2020-06-10 23:52:11 +02:00
PYTHON_LIBRARY=$(shell python3-config --ldflags | sed -e 's,-L\(.*\) -L/usr/lib -l\([^ ]*\) .*$$,\1/lib\2.so,')
2019-11-18 13:19:25 +01:00
else
2020-06-10 23:52:11 +02:00
PYTHON_LIBRARY=$(shell python3-config --ldflags --embed | sed -e 's,-L\(.*\) -L/usr/lib -l\([^ ]*\) .*$$,\1/lib\2.so,')
2019-11-18 13:19:25 +01:00
endif
2010-01-28 09:26:59 +00:00
CMAKE_OPTS := \
2016-10-04 15:45:55 +02:00
-G Ninja \
2014-04-05 20:01:21 +02:00
-DBUILDNAME=$(DEB_BUILD_NAME) \
-DCMAKE_VERBOSE_MAKEFILE=1 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBINDINGS_GLOBAL_INSTALL=TRUE \
2020-01-21 03:36:45 +01:00
-DSIP_GLOBAL_INSTALL=TRUE \
2014-04-05 20:01:21 +02:00
-DPEDANTIC=TRUE \
2014-11-28 16:00:53 +01:00
-DSERVER_SKIP_ECW=TRUE \
2014-04-05 20:01:21 +02:00
-DQGIS_CGIBIN_SUBDIR=/usr/lib/cgi-bin \
-DWITH_APIDOC=TRUE \
2016-05-19 14:52:33 +10:00
-DGENERATE_QHP=TRUE \
2014-05-20 08:18:55 +02:00
-DWITH_CUSTOM_WIDGETS=TRUE \
2016-10-01 13:42:26 +02:00
-DWITH_SERVER=TRUE \
-DWITH_SERVER_PLUGINS=TRUE \
2016-05-27 23:41:01 +02:00
-DWITH_QWTPOLAR=FALSE \
-DQT_PLUGINS_DIR=$(QT_PLUGINS_DIR) \
2019-11-18 13:19:25 +01:00
-DPYTHON_LIBRARY=$(PYTHON_LIBRARY) \
2019-02-24 23:09:11 +01:00
-DDOXYGEN_ON_DEMAND=TRUE \
-DWITH_QSPATIALITE=TRUE
2013-02-19 20:06:33 +01:00
2016-05-05 22:04:57 +02:00
ifneq ($(SHA),)
CMAKE_OPTS += -DSHA=$(SHA)
endif
2015-08-27 01:40:43 +02:00
ifeq ($(GRASSVER),7)
CMAKE_OPTS += \
2015-09-27 13:33:02 +02:00
-DWITH_GRASS=TRUE \
2015-08-27 01:40:43 +02:00
-DWITH_GRASS7=TRUE \
-DGRASS_PREFIX7=/usr/lib/$(GRASS)
endif
2019-02-24 23:09:11 +01:00
ifneq (,$(findstring $(DISTRIBUTION),"sid buster"))
2016-06-01 23:19:59 +02:00
CMAKE_OPTS += -DPOSTGRES_LIBRARY=/usr/lib/$(DEB_BUILD_MULTIARCH)/libpq.so
endif
2020-02-12 20:24:07 +01:00
ifneq (,$(findstring $(DISTRIBUTION),"sid buster bionic eoan focal"))
2017-10-02 23:41:56 +02:00
CMAKE_OPTS += \
-DWITH_3D=TRUE \
-DGEOS_LIBRARY=/usr/lib/$(DEB_BUILD_MULTIARCH)/libgeos_c.so
2018-09-05 00:42:37 +02:00
2020-08-02 17:56:48 +02:00
$(shell test -f /usr/include/$(DEB_BUILD_MULTIARCH)/qt5/Qt3DExtras/qt3dextrasversion.h -a -f /usr/lib/$(DEB_BUILD_MULTIARCH)/cmake/Qt53DExtras/Qt53DExtrasConfig.cmake)
2020-05-19 20:39:29 +02:00
ifneq (0,$(.SHELLSTATUS))
2018-09-05 00:42:37 +02:00
# Qt3DExtras intentionally removed from debian (#895386) and in turn ubuntu
CMAKE_OPTS += \
2020-08-02 17:56:48 +02:00
-DQt53DExtras_DIR=$(realpath external/qt3dextra-headers/cmake/Qt53DExtras) \
2018-09-05 00:42:37 +02:00
-DQT5_3DEXTRA_INCLUDE_DIR=$(realpath external/qt3dextra-headers) \
-DQT5_3DEXTRA_LIBRARY=/usr/lib/$(DEB_BUILD_MULTIARCH)/libQt53DExtras.so
endif
2015-08-29 21:05:09 +02:00
2020-05-19 20:39:29 +02:00
endif
2015-08-27 01:22:42 +02:00
ifneq (,$(WITH_ORACLE))
2016-01-29 21:34:07 +01:00
ifeq ($(DEB_BUILD_ARCH),amd64)
2019-10-26 13:38:08 +02:00
ORACLE_INCLUDEDIR=/usr/include/oracle/18.5/client64/
ORACLE_LIBDIR=/usr/lib/oracle/18.5/client64/lib/
2016-01-29 21:34:07 +01:00
endif
ifeq ($(DEB_BUILD_ARCH),i386)
2019-10-26 13:38:08 +02:00
ORACLE_INCLUDEDIR=/usr/include/oracle/18.5/client/
ORACLE_LIBDIR=/usr/lib/oracle/18.5/client/lib/
2016-02-04 01:57:02 +01:00
endif
2016-01-29 21:34:07 +01:00
CMAKE_OPTS += \
-DWITH_ORACLE=TRUE \
2016-02-04 01:57:02 +01:00
-DORACLE_LIBDIR=$(ORACLE_LIBDIR) \
-DORACLE_INCLUDEDIR=$(ORACLE_INCLUDEDIR)
2013-01-09 16:46:30 +01:00
endif
2019-02-24 23:09:11 +01:00
ifneq (,$(findstring $(DISTRIBUTION),"sid buster"))
2014-04-05 20:01:21 +02:00
CMAKE_OPTS += -DSPATIALINDEX_LIBRARY=/usr/lib/$(DEB_BUILD_MULTIARCH)/libspatialindex.so
endif
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CMAKE_OPTS += -DCMAKE_BUILD_TYPE=Debug
endif
ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
CMAKE_OPTS += -DENABLE_TESTS=FALSE
else
2019-08-10 18:11:31 +02:00
CMAKE_OPTS += -DENABLE_TESTS=TRUE -DDART_TESTING_TIMEOUT=60
2014-01-18 03:35:24 +01:00
endif
2012-05-26 16:09:07 +02:00
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)
2014-04-05 20:01:21 +02:00
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
2007-08-29 03:51:57 +00:00
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
2012-05-26 16:09:07 +02:00
CXXFLAGS += -O0
2007-08-29 03:51:57 +00:00
else
CFLAGS += -O2
2012-05-26 16:09:07 +02:00
CXXFLAGS += -O2
2007-08-29 03:51:57 +00:00
endif
2012-05-26 16:09:07 +02:00
2009-01-31 19:52:52 +00:00
ifneq (,$(findstring profile,$(DEB_BUILD_OPTIONS)))
CFLAGS += -pg
CXXFLAGS += -pg
LDFLAGS += -pg
endif
2019-02-23 14:01:58 +01:00
ifeq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -DNDEBUG
CXXFLAGS += -DNDEBUG
endif
2015-12-06 21:37:30 +01:00
2015-08-27 01:22:42 +02:00
# multi distribution support:
2015-08-27 22:34:08 +02:00
# - remove lines with applicable excludes
# - remove prefixes with applicable includes
# - remove prefixes with not applicable excludes
2015-08-27 01:22:42 +02:00
# - remove remaining comments
2015-08-27 22:34:08 +02:00
CONTROL_EXPRESSIONS = $(DISTRIBUTION) grass$(GRASSVER)
2015-08-27 01:22:42 +02:00
ifneq (,$(WITH_ORACLE))
2015-08-27 22:34:08 +02:00
CONTROL_EXPRESSIONS += oracle
2015-08-27 01:22:42 +02:00
endif
2009-09-20 16:23:48 +00:00
define gentemplate
$(2): $(1)
2014-04-05 20:01:21 +02:00
sed -r \
2015-08-27 22:34:08 +02:00
-e '/#(.+ |)!($(subst $(eval) ,|,$(CONTROL_EXPRESSIONS)))( .+|)#/d' \
-e 's/#([^#]+ |)($(subst $(eval) ,|,$(CONTROL_EXPRESSIONS)))( [^#]+|)#//g' \
-e 's/#([^#]+ |)![^#]+( [^#]*|)#//g' \
2015-08-27 01:22:42 +02:00
-e '/^#/d' \
2014-04-05 20:01:21 +02:00
-e "s/\{DEB_BUILD_GNU_TYPE\}/$(DEB_BUILD_GNU_TYPE)/g" \
-e "s/\{QGIS_ABI\}/$(QGIS_ABI)/g" \
-e "s/\{GRASS\}/$(GRASS)/g" \
2015-04-11 17:20:52 +02:00
-e "s/\{GRASSVER\}/$(GRASSVER)/g" \
2015-10-04 23:54:21 +02:00
-e "s/\{GRASSVER_QGISABI\}/$(GRASSVER)-$(QGIS_ABI)/g" \
2015-02-25 16:00:30 +01:00
$$^ >$$@
2010-06-06 18:59:04 +00:00
2012-09-08 16:30:01 +02:00
templates:: $(2)
2010-06-06 18:59:04 +00:00
templateclean::
rm -f $(2)
2009-09-20 16:23:48 +00:00
endef
2014-04-05 20:01:21 +02:00
$(foreach t,$(wildcard debian/*.in),$(eval $(call gentemplate,$(t),$(basename $(t)))))
2015-10-04 23:54:21 +02:00
$(foreach t,$(wildcard debian/*{GRASSVER_QGIS_ABI}*),$(eval $(call gentemplate,$(t),$(subst {GRASSVER_QGIS_ABI},$(GRASSVER)-$(QGIS_ABI),$(t)))))
2009-09-20 16:23:48 +00:00
$(foreach t,$(wildcard debian/*{QGIS_ABI}*),$(eval $(call gentemplate,$(t),$(subst {QGIS_ABI},$(QGIS_ABI),$(t)))))
2014-04-05 20:01:21 +02:00
cleantemplates:
$(MAKE) -f debian/rules templateclean
$(MAKE) -f debian/rules debian/control debian/compat
2016-02-09 11:28:48 +01:00
binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep: templates
2016-05-27 23:41:01 +02:00
dh $@ --with python3 --parallel --builddirectory=$(QGIS_BUILDDIR)
2015-12-06 21:37:30 +01:00
2014-04-05 20:01:21 +02:00
override_dh_clean: cleantemplates
2017-02-20 11:27:29 +01:00
dh_clean qgis.bin.1
2014-04-05 20:01:21 +02:00
2015-12-06 21:37:30 +01:00
-$(RM) -r $(CURDIR)/$(QGIS_BUILDDIR)/
2007-08-29 03:51:57 +00:00
2016-02-09 11:28:48 +01:00
override_dh_auto_configure:
2014-04-05 20:01:21 +02:00
dh_auto_configure -- $(CMAKE_OPTS)
2007-08-29 03:51:57 +00:00
2019-02-23 14:01:58 +01:00
override_dh_auto_build:
2018-02-23 13:52:51 +01:00
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
2019-08-08 09:12:36 +02:00
ninja $(NINJA_OPTS) -C $(QGIS_BUILDDIR) $(DEB_TEST_TARGET)Build
! grep -q "<Error>" $(QGIS_BUILDDIR)/Testing/$$(head -1 $(QGIS_BUILDDIR)/Testing/TAG)/Build.xml || { \
cat $(QGIS_BUILDDIR)/Testing/Temporary/LastBuild_$$(head -1 $(QGIS_BUILDDIR)/Testing/TAG).log; \
ninja $(NINJA_OPTS) -C $(QGIS_BUILDDIR) $(DEB_TEST_TARGET)Submit; \
false; }
2018-02-23 13:52:51 +01:00
else
2019-02-23 14:01:58 +01:00
ninja $(NINJA_OPTS) -C $(QGIS_BUILDDIR)
2018-02-23 13:52:51 +01:00
endif
2016-10-04 15:45:55 +02:00
2019-02-23 14:01:58 +01:00
ninja $(NINJA_OPTS) -C $(QGIS_BUILDDIR) apidoc
2016-10-04 15:45:55 +02:00
2015-12-14 20:12:12 +01:00
override_dh_auto_test: test-stamp
test-stamp:
2011-11-16 23:11:57 +01:00
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
2018-02-14 18:13:26 +01:00
# Code to run the package test suite
rm -f $(QGIS_BUILDDIR)/.error
2014-11-07 14:30:28 +01:00
mkdir -p debian/tmp/locale/
localedef -f UTF-8 -i en_US ./debian/tmp/locale/en_US.UTF-8/
2018-02-14 18:13:26 +01:00
LOCPATH=$(CURDIR)/debian/tmp/locale/ \
2014-11-07 14:30:28 +01:00
LC_ALL=en_US.UTF-8 \
2015-12-06 21:37:30 +01:00
LD_LIBRARY_PATH=$(CURDIR)/$(QGIS_BUILDDIR)/output/lib:$(LD_LIBRARY_PATH) \
2014-11-07 14:30:28 +01:00
PATH=/usr/sbin:$(PATH) \
2018-02-14 18:13:26 +01:00
$(TESTMAKE) -C $(QGIS_BUILDDIR) $(DEB_TEST_TARGET)Test || touch $(QGIS_BUILDDIR)/.error
2018-02-16 09:10:57 +01:00
# ignore submission errors
-$(TESTMAKE) -C $(QGIS_BUILDDIR) $(DEB_TEST_TARGET)Submit
# ignore the test outcome for now
2018-02-14 18:13:26 +01:00
# ! [ -f $(QGIS_BUILDDIR)/.error ]
2012-04-14 11:22:00 +02:00
else
2012-09-08 16:30:01 +02:00
@echo Skipping tests.
2011-11-16 23:11:57 +01:00
endif
2015-12-14 20:12:12 +01:00
touch test-stamp
2011-11-16 23:11:57 +01:00
2015-12-14 20:12:12 +01:00
override_dh_auto_install:
2019-02-23 14:01:58 +01:00
DESTDIR=$(CURDIR)/debian/tmp ninja $(NINJA_OPTS) -C $(QGIS_BUILDDIR) install
2007-08-29 03:51:57 +00:00
2016-03-25 17:35:20 +01:00
# remove unwanted files
$(RM) $(CURDIR)/debian/tmp/usr/share/qgis/doc/api/installdox
# replace leaflet and jquery urls
perl -i -p \
-e 's#http://.*/leaflet.css#leaflet/leaflet.css#;s#http://.*/leaflet.js#leaflet/leaflet.js#;s#http://.*/jquery-.*.min.js#jquery-min.js#' \
$(CURDIR)/debian/tmp/usr/share/qgis/doc/developersmap.html
# Don't include a copy of the world.tif also included in osgearth-data
$(RM) $(CURDIR)/debian/tmp/usr/share/qgis/globe/world.tif
# remove extra license files
-find $(CURDIR)/debian/tmp/usr/share/qgis/resources/cpt-city-qgis-min/ -name COPYING.xml -delete
$(RM) $(CURDIR)/debian/tmp/usr/share/qgis/doc/LICENSE
$(RM) $(CURDIR)/debian/tmp/usr/share/qgis/python/plugins/db_manager/LICENSE
$(RM) $(CURDIR)/debian/tmp/usr/share/qgis/python/plugins/MetaSearch/LICENSE.txt
2018-01-05 01:56:08 +01:00
$(RM) $(CURDIR)/debian/tmp/usr/bin/qgis_wcstest
$(RM) $(CURDIR)/debian/tmp/usr/bin/qgis_bench
$(RM) $(CURDIR)/debian/tmp/usr/share/qgis/resources/wcs-servers.json
2016-03-25 17:35:20 +01:00
2019-02-23 14:01:58 +01:00
# remove documentation outside usr/share/doc
$(RM) $(CURDIR)/debian/tmp/usr/share/qgis/python/plugins/db_manager/README
$(RM) $(CURDIR)/debian/tmp/usr/share/qgis/python/plugins/db_manager/TODO
$(RM) $(CURDIR)/debian/tmp/usr/share/qgis/resources/cpt-city-qgis-min/README-qgis.txt
$(RM) $(CURDIR)/debian/tmp/usr/share/qgis/resources/cpt-city-qgis-min/README.txt
2016-03-25 17:35:20 +01:00
# Man pages are installed by dh_installman
$(RM) $(CURDIR)/debian/tmp/usr/man/man1/qgis.1
# Don't ship srs.db, automatically updated in postinst with crssync
mv $(CURDIR)/debian/tmp/usr/share/qgis/resources/srs.db $(CURDIR)/debian/tmp/usr/share/qgis/resources/srs-template.db
2014-04-05 20:01:21 +02:00
# Mime info
install -o root -g root -d $(CURDIR)/debian/tmp/usr/share/mime/packages
install -o root -g root -m 644 $(CURDIR)/debian/qgis.xml $(CURDIR)/debian/tmp/usr/share/mime/packages
2007-08-29 03:51:57 +00:00
2014-04-05 20:01:21 +02:00
# qgis binaries
2008-08-28 22:22:48 +00:00
install -o root -g root -m 755 -d $(CURDIR)/debian/qgis/usr/bin
2016-02-04 01:57:02 +01:00
install -o root -g root -m 755 $(CURDIR)/debian/tmp/usr/bin/qgis $(CURDIR)/debian/qgis/usr/bin/qgis.bin
2020-04-17 14:04:31 +02:00
install -o root -g root -m 755 $(CURDIR)/debian/tmp/usr/bin/qgis_process $(CURDIR)/debian/qgis/usr/bin/qgis_process.bin
2008-08-28 22:22:48 +00:00
2020-04-28 07:27:09 +02:00
$(RM) $(CURDIR)/debian/tmp/usr/bin/qgis $(CURDIR)/debian/tmp/usr/bin/qgis_process
2014-04-05 20:01:21 +02:00
# qgis binary wrappers
2016-02-04 01:57:02 +01:00
sed -r \
-e "s/\{GRASS\}/$(GRASS)/g" \
-e "s#\{ORACLE_LIBDIR\}#$(ORACLE_LIBDIR)#g" \
$(CURDIR)/debian/qgis.sh.in >$(CURDIR)/debian/qgis.sh
install -o root -g root -m 755 $(CURDIR)/debian/qgis.sh $(CURDIR)/debian/qgis/usr/bin/qgis
2020-04-17 14:04:31 +02:00
install -o root -g root -m 755 $(CURDIR)/debian/qgis.sh $(CURDIR)/debian/qgis/usr/bin/qgis_process
2014-04-05 20:01:21 +02:00
2019-03-19 15:45:43 +01:00
override_dh_missing:
dh_missing --fail-missing
2015-12-14 20:12:12 +01:00
override_dh_install:
2019-03-19 15:45:43 +01:00
dh_install --autodest
2014-04-05 20:01:21 +02:00
override_dh_installchangelogs:
dh_installchangelogs ChangeLog
override_dh_installman:
2016-02-20 16:53:24 +01:00
cp qgis.1 qgis.bin.1
2017-02-20 11:27:29 +01:00
dh_installman -pqgis qgis.1 qgis.bin.1
2014-04-05 20:01:21 +02:00
override_dh_installmime:
2008-02-13 03:41:10 +00:00
dh_installmime -pqgis
2014-04-05 20:01:21 +02:00
2016-05-27 23:41:01 +02:00
override_dh_python3:
dh_python3
dh_python3 usr/share/qgis/grass/scripts
2019-02-23 14:01:58 +01:00
dh_sip3 -ppython3-qgis
2014-04-05 20:01:21 +02:00
override_dh_compress:
2007-08-29 03:51:57 +00:00
dh_compress --exclude=pdf
2014-04-05 20:01:21 +02:00
override_dh_makeshlibs:
2016-02-04 01:57:02 +01:00
ifneq (,$(WITH_ORACLE))
dh_makeshlibs -Xqgis-plugin-grass -Xlibqgis-customwidgets -Xqgis-provider-oracle -- -c0 -v$(QGIS_VERSION)
else
2015-02-23 22:04:02 +01:00
dh_makeshlibs -Xqgis-plugin-grass -Xlibqgis-customwidgets -- -c0 -v$(QGIS_VERSION)
2016-02-04 01:57:02 +01:00
endif
2014-04-05 20:01:21 +02:00
override_dh_shlibdeps:
2016-02-04 01:57:02 +01:00
ifneq (,$(WITH_ORACLE))
dh_shlibdeps -l/usr/lib/$(GRASS)/lib -l$(ORACLE_LIBDIR)
else
2014-04-05 20:01:21 +02:00
dh_shlibdeps -l/usr/lib/$(GRASS)/lib
2016-02-04 01:57:02 +01:00
endif
2015-05-27 23:17:41 +02:00
override_dh_strip:
dh_strip --dbg-package=qgis-dbg
2019-02-23 14:01:58 +01:00
override_dh_gencontrol:
dh_gencontrol -- -Vgrass:Depends="grass$(GRASSABI)"