#!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # Enable hardening build flags export DEB_BUILD_MAINT_OPTIONS=hardening=+all # Verbose test output export VERBOSE=1 # 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) # testrunner fails on some architectures DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) include /usr/share/dpkg/pkg-info.mk UPSTREAM_VERSION = $(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*//') export DEB_CXXFLAGS_MAINT_PREPEND=-fpermissive # catch both armel and armhf ifneq (,$(findstring arm-linux-gnueabi,$(DEB_HOST_GNU_TYPE))) CONFFLAGS += --disable-inline endif %: dh $@ --with pkgkde_symbolshelper override_dh_clean: dh_clean debian/libgeos++-dev.install override_dh_auto_configure: dh_auto_configure -- \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ $(CONFFLAGS) \ $(shell dpkg-buildflags --export=configure) override_dh_auto_build-arch: dh_auto_build --arch override_dh_auto_build-indep: $(MAKE) -C doc doxygen-html override_dh_auto_test: # Ignore test failures on problematic architectures only ifneq (,$(filter $(DEB_BUILD_ARCH),arm64 armel armhf mips mips64el mipsel ppc64el s390x alpha hppa ia64 powerpc ppc64 riscv64 sparc64)) dh_auto_test || echo "Ignoring test failures" else dh_auto_test endif override_dh_install-arch: # add C++ headers to C++ dev package install file cp debian/libgeos++-dev.install.in debian/libgeos++-dev.install find debian/tmp/usr/include/geos -name "*.h" -a ! -name "export.h" | sed -e 's/^debian\/tmp\///' >>debian/libgeos++-dev.install # Don't install geos.h & .inl files rm -f debian/tmp/usr/include/geos.h find debian/tmp/usr/include/geos -name "*.inl" -delete # Remove .asm files rm -f debian/tmp/usr/include/geos/algorithm/ttmath/ttmathuint_x86_64_msvc.asm # Remove .la files find debian/tmp/usr/lib -name '*.la' -delete dh_install -a --list-missing # remove the library from the -dev package rm -f $(CURDIR)/debian/libgeos-dev/usr/lib/*/libgeos-*.so override_dh_install-indep: dh_install -i # Install doxygen html files install -m 644 doc/doxygen_docs/html/* debian/libgeos-doc/usr/share/doc/libgeos-doc/html # Install example program source install -m 644 doc/example.cpp debian/libgeos-doc/usr/share/doc/libgeos-doc/examples install -m 644 debian/Makefile.example debian/libgeos-doc/usr/share/doc/libgeos-doc/examples/Makefile override_dh_installman: dh_installman -plibgeos-dev debian/geos-config.1 override_dh_strip: dh_strip --dbgsym-migration='libgeos-dbg (<< 3.5.1-4~)' override_dh_makeshlibs: dh_makeshlibs -- -v$(UPSTREAM_VERSION) -c0