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
|
#!/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
|