Name libbluray-bdj
Description Blu-ray Disc Java support library (BD-J library)
Version 1:1.3.4-1
Package Base libbluray
Homepage https://www.videolan.org/developers/libbluray.html
Maintainers ['Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>']
Contributors ['Reinhard Tartler <siretart@tauware.de>', 'Rico Tzschichholz <ricotz@ubuntu.com>', 'Sebastian Ramacher <sramacher@debian.org>']
Distro-repo https://salsa.debian.org/multimedia-team/libbluray
Sources ['https://sources.debian.org/data/main/libb/libbluray/1:1.3.4-1/debian/watch', 'https://sources.debian.org/src/libbluray/1:1.3.4-1/debian/patches/0001-Do-not-download-image-from-the-web.patch', 'https://sources.debian.org/src/libbluray/1:1.3.4-1/debian/patches/series']
Dependencies ['default-jre-headless | java2-runtime-headless', 'libbluray2']
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'pkg-config', 'default-jdk', 'libfreetype-dev', 'libfontconfig-dev', 'libudfread-dev', 'libxml2-dev']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash f69c1631002db4eb61ba0d55068575759799e07a82cb8123edc4df097dec39d7
#!/usr/bin/make -f

confflags  = --with-libxml2
confflags += --with-freetype
confflags += --with-bdj-type=j2se
confflags += --disable-doxygen-ps
confflags += --disable-doxygen-pdf

confflags_java   = --enable-bdjava-jar
confflags_nojava = --disable-bdjava-jar

# Use default java implementation
export JDK_HOME=/usr/lib/jvm/default-java
ifeq (,$(wildcard $(JDK_HOME)))
    $(info "warning: No suitable jni.h was found. Package will most probably FTBFS!")
endif

ifneq (,$(wildcard /usr/share/javahelper/java-vars.mk))
DH_ADDONS = --with javahelper
endif

%:
	dh $@ $(DH_ADDONS)

override_dh_auto_configure:
ifneq (,$(findstring libbluray-bdj,$(shell dh_listpackages)))
	dh_auto_configure -- $(confflags) $(confflags_java)
else
	dh_auto_configure -- $(confflags) $(confflags_nojava)
endif

override_dh_auto_build-indep:
	# all-local builds the JAR
	$(MAKE) doxygen-doc all-local

# no test/install for indep
override_dh_auto_test-indep override_dh_auto_install-indep:

override_dh_clean:
	dh_clean
	rm -rf src/libbluray/bdj/build