#!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # Get some variables from dpkg itself include /usr/share/dpkg/architecture.mk libdir := /usr/lib/$(DEB_HOST_MULTIARCH) include /usr/share/dpkg/pkg-info.mk # Harden the build DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk CFLAGS+=$(CPPFLAGS) CXXFLAGS+=$(CPPFLAGS) %: dh $@ override_dh_auto_configure: dh_auto_configure -Scmake -- \ -DPAJE_DOC=ON \ ${CMAKE_FLAGS} .PHONE: override_dh_auto_install override_dh_auto_install: dh_auto_install chrpath -d debian/tmp/usr/bin/pj_dump chrpath -d debian/tmp/usr/bin/pj_equals mkdir -p debian/tmp$(libdir) mv debian/tmp/usr/lib/libpaje* debian/tmp$(libdir) mv debian/tmp/usr/lib/pkgconfig debian/tmp$(libdir) sed -e 's,/lib$$,/lib/$(DEB_HOST_MULTIARCH),' -i debian/tmp$(libdir)/pkgconfig/libpaje.pc .PHONY: override_dh_shlibdeps override_dh_shlibdeps: dh_shlibdeps -a -- --warnings=7 .PHONY: override_dh_install override_dh_install: dh_install dh_installman dh_missing --fail-missing clean: dh clean $(DH_OPTIONS) $(RM) -r build $(RM) -r stamp-* # if this is a git repository, restore removed files that would have # been ignored by dpkg-source -test -d .git && git checkout -- $$(git status | \ sed -e '/^#[[:space:]]*deleted:[[:space:]]*/s/^#[[:space:]]*deleted:[[:space:]]*//p;d' | \ grep -v '^debian/') #get-orig-source:: # uscan --verbose --force-download