Name libbluray2
Description Blu-ray disc playback support library (shared library)
Version 1:1.3.4-1build1
Package Base libbluray
Homepage https://www.videolan.org/developers/libbluray.html
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors [' Rico Tzschichholz <ricotz@ubuntu.com>', 'Reinhard Tartler <siretart@tauware.de>', 'Sebastian Ramacher <sramacher@debian.org>']
Distro-repo https://git.launchpad.net/ubuntu/+source/libbluray/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/libbluray/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/libbluray/plain/debian/patches/0001-Do-not-download-image-from-the-web.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/libbluray/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/libbluray2/plain/debian/watch?h=ubuntu/noble']
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 noble
Licenses []
Hash 2cfb2a7e4b6170efcfb96e0dbe3e9321b648acc43883ab4e7c248216de18ea6f
#!/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