Name libbluray2
Description Blu-ray disc playback support library (shared library)
Version 1:1.3.4-1+b2
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 ['libc6', 'libfontconfig1', 'libfreetype6', 'libudfread0', 'libxml2']
Optional-Dependencies ['libaacs0', 'libbluray-bdj']
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 82f9e58e8dfdfeb57b273111433c335500c26553eb82f2a025e94ed9fdae2c21
#!/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