debian swirl logo

Back to the packages list libtritonus-java

#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_BUILD_HARDENING = 1
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
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 -propertyfile debian/ant.properties
	CLASSPATH= /usr/share/java/jl.jar:/usr/share/java/jorbis.jar:/usr/share/java/jogg.jar ant -propertyfile debian/ant.properties
		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

Builds:

libtritonus-java
implementation of the java sound api
libtritonus-jni
implementation of the java sound api (jni shared libraries)