File: rules

package info (click to toggle)
libtritonus-java 20070428-14.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 7,060 kB
  • sloc: ansic: 53,816; java: 45,226; sh: 3,017; makefile: 1,174; xml: 823; cpp: 147
file content (39 lines) | stat: -rwxr-xr-x 1,045 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

export JAVA_HOME  = /usr/lib/jvm/default-java

EXTENSIONS := alsa cdparanoia cooked_ioctl fluidsynth pvorbis vorbis

# We don't build the lame extension because lame is not part of Debian:
#EXTENSIONS := alsa cdparanoia cooked_ioctl fluidsynth lame pvorbis vorbis

%:
	dh $@ --buildsystem=ant

override_dh_auto_build-indep:
	CLASSPATH=/usr/share/java/jl.jar:/usr/share/java/jorbis.jar:/usr/share/java/jogg.jar dh_auto_build

override_dh_auto_build-arch: override_dh_auto_build-indep
	autoconf
	./configure --prefix=$(JAVA_HOME) JAVA=$(JAVA_HOME)/bin/java

	set -e && \
	  for EXT in $(EXTENSIONS); do \
	    $(MAKE) -C src/lib/$$EXT; \
	  done

override_dh_auto_install-indep:
	set -e && \
	  for JAR in dist/*.jar; do \
	    BASE=$$(basename $$JAR); \
	    dh_link /usr/share/java/$$BASE /usr/share/java/$${BASE%-*}.jar; \
	  done

override_dh_makeshlibs:
	dh_makeshlibs -- -Xtritonus

override_dh_auto_clean: