File: rules

package info (click to toggle)
libtritonus-java 20070428-7
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 6,792 kB
  • ctags: 11,840
  • sloc: ansic: 53,846; java: 45,251; sh: 3,032; makefile: 1,189; xml: 820; cpp: 147
file content (49 lines) | stat: -rwxr-xr-x 1,290 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
42
43
44
45
46
47
48
49
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.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 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:
	sh debian/orig-tar.sh $(DEB_UPSTREAM_VERSION)