#!/usr/bin/make -f include /usr/share/dpkg/pkg-info.mk export DEB_BUILD_MAINT_OPTIONS = hardening=+all %: dh $@ override_dh_auto_configure: dh_auto_configure -- \ -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=/usr/lib \ -DBUILD_SHARED_LIBS=OFF \ -DOCPN_BUNDLE_DOCS=OFF \ -DOCPN_BUNDLE_TCDATA=ON \ -DOCPN_USE_BUNDLED_LIBS=OFF \ -DOCPN_USE_NEWSERIAL=OFF \ -DOCPN_PLUGIN_CONTENTS_WARN=ON \ -DOCPN_FORCE_GTK3=ON override_dh_missing: dh_missing --fail-missing # Work around what's seemingly a tar bug, see # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=831870 VERSION = $(word 1,$(subst +, ,$(DEB_VERSION_UPSTREAM))) get-orig-source: rm -rf utmp; mkdir utmp uscan --destdir=utmp --force-download --safe \ --download-version=$(VERSION) cd utmp; \ rm -rf $$(find . -mindepth 1 -maxdepth 1 -type d); \ tar xaf *-*.tar.*z; \ test -d OpenCPN-$(VERSION) || \ mv $$(find . -mindepth 1 -maxdepth 1 -type d) \ OpenCPN-$(VERSION); \ tar caf opencpn-$(VERSION).tar.gz OpenCPN-$(VERSION) mk-origtargz --compression xz \ --repack \ utmp/opencpn-$(VERSION).tar.gz \ && rm -rf utmp