#! /usr/bin/make -f export JAVA_HOME=/usr/lib/jvm/default-java export JAVA?=${JAVA_HOME}/bin/java # build flags for hardening DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk export DEB_BUILD_MAINT_OPTIONS = hardening=+all # Current TuxGuitar source version (see misc/build_tuxguitar_from_source.sh) TGSRCVER := $(shell grep 'CURRENT = new TGVersion' common/TuxGuitar-lib/src/main/java/app/tuxguitar/util/TGVersion.java | awk -F '[(,)]' '{ print $$2"."$$3"."$$4 }') %: dh $@ --no-parallel override_dh_auto_configure: # Since our build system is maven, give mh_patchpoms something # to patch so arch-any builds succeed. # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029476 ln -s tuxguitar.poms debian/tuxguitar-alsa.poms # Without a pom file in the root directory, dh_auto_configure without --buildsystem=maven does not call mh_patchpoms dh_auto_configure --buildsystem=maven override_dh_auto_clean: -rm -f debian/tuxguitar-alsa.poms find . -name target | xargs rm -rf rm -rf debian/maven-repo mh_unpatchpoms -p$(shell dh_listpackages) dh_auto_clean override_dh_auto_build-arch: dh_auto_build --sourcedirectory=desktop/build-scripts/tuxguitar-linux-swt -- -e verify -Dnative-modules=true override_dh_auto_build-indep: dh_auto_build --sourcedirectory=desktop/build-scripts/tuxguitar-linux-swt -- -e verify -Dnative-modules=false docbook-to-man misc/tuxguitar.sgml > debian/tuxguitar.1 execute_after_dh_install: find debian -name "*.html" -type f -exec sed -i "s/9.99-SNAPSHOT/${TGSRCVER}/" '{}' \;