#!/usr/bin/make -f # Use default java implementation, if available ifneq (,$(wildcard /usr/lib/jvm/default-java)) export JDK_HOME=/usr/lib/jvm/default-java endif ifneq (,$(wildcard /usr/share/javahelper/java-vars.mk)) DH_ADDONS = --with javahelper endif %: dh $@ $(DH_ADDONS) override_dh_auto_configure: # create JNI support symlink for Hurd ln -s linux jni/gnu ifneq (,$(findstring libbluray-bdj,$(shell dh_listpackages))) dh_auto_configure -- -Dbdj_jar=enabled -Denable_docs=true else dh_auto_configure -- -Dbdj_jar=disabled endif execute_after_dh_clean: rm -f jni/gnu