File: rules

package info (click to toggle)
libbluray 1:1.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 7,560 kB
  • sloc: java: 36,371; ansic: 25,827; sh: 4,157; cpp: 1,694; makefile: 333; xml: 44
file content (41 lines) | stat: -rwxr-xr-x 1,020 bytes parent folder | download
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

confflags  = --with-libxml2
confflags += --with-freetype
confflags += --with-bdj-type=j2se

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

# Use default java implementation
export JDK_HOME=/usr/lib/jvm/java-8-openjdk-$(DEB_HOST_ARCH)
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