1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This has to be exported to make some magic below work.
export DH_OPTIONS
FULL_VERSION := $(shell dpkg-parsechangelog | grep ^Version | cut -d' ' -f2 | cut -d- -f1)
VERSION := $(shell echo $(FULL_VERSION) | sed -e "s/~beta[[:digit:]]\+/-BETA/")
LC_VERSION := $(shell echo $(VERSION) | tr A-Z a-z)
SPATIALITE_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/\+.*//; s/^[0-9]://')
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
# see FTBFS #649302
ifeq ($(DEB_HOST_ARCH),powerpc)
EPSG := --disable-epsg
else
EPSG :=
endif
# Verbose test output
export VERBOSE=1
%:
dh $@ --with autoreconf
versions:
@echo "Spatialite full version: $(FULL_VERSION)"
@echo "Spatialite version: $(LC_VERSION)"
@echo "Spatialite symbols: $(SPATIALITE_VERSION)"
override_dh_auto_configure:
dh_auto_configure -- \
--enable-geos \
$(EPSG) \
--enable-proj \
--enable-lwgeom=no \
--enable-gcp=yes \
--disable-examples
override_dh_auto_test:
mkdir -p debian/backup/stmt
cp test/*.sqlite debian/backup/
cp test/sql_stmt_tests/*.sqlite debian/backup/stmt/
dh_auto_test || echo "Ignoring test failures"
cp debian/backup/stmt/*.sqlite test/sql_stmt_tests/
cp debian/backup/*.sqlite test/
rm -rf debian/backup
override_dh_makeshlibs:
dh_makeshlibs -- -v$(SPATIALITE_VERSION)
override_dh_shlibdeps:
dh_shlibdeps -l/usr/lib:$(CURDIR)/debian/tmp/usr/lib
override_dh_strip:
dh_strip --dbg-package=libspatialite-dbg
override_dh_install:
$(RM) debian/*/usr/lib/*/*.la
dh_install --list-missing
|