File: rules

package info (click to toggle)
libtritonus-java 20070428-8
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 6,952 kB
  • ctags: 11,916
  • sloc: ansic: 53,816; java: 45,226; sh: 3,022; makefile: 1,188; xml: 820; cpp: 147
file content (48 lines) | stat: -rwxr-xr-x 1,279 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
40
41
42
43
44
45
46
47
48
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk

DEB_DH_MAKESHLIBS_ARGS_ALL := -Xtritonus

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

JAVA       := $(JAVA_HOME)/bin/java
JAVAH      := $(CURDIR)/debian/javah
EXTENSIONS := alsa cdparanoia cooked_ioctl esd fluidsynth pvorbis vorbis

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

post-patches:: debian/stamp-configure
debian/stamp-configure:
	autoconf
	chmod +x $(JAVAH)
	./configure --prefix=$(JAVA_HOME) JAVA=$(JAVA) JAVAH=$(JAVAH)
	touch $@

common-binary-indep:: debian/stamp-binary-indep
debian/stamp-binary-indep:
	ant -f build-dtd.xml
	CLASSPATH=/usr/share/java/jl.jar:/usr/share/java/jorbis.jar:/usr/share/java/jogg.jar ant
	touch $@

common-binary-arch:: debian/stamp-binary-arch
debian/stamp-binary-arch:
	set -e && \
	  for EXT in $(EXTENSIONS); do \
	    $(MAKE) -C src/lib/$$EXT; \
	  done
	touch $@

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

clean::
	$(RM) debian/stamp-*

get-orig-source:
	-uscan --force-download --rename