File: rules

package info (click to toggle)
libbluray 1%3A1.4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,272 kB
  • sloc: java: 37,495; ansic: 25,924; cpp: 1,694; xml: 52; makefile: 17
file content (25 lines) | stat: -rwxr-xr-x 582 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
#!/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