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