#!/usr/bin/make -f
# -*- makefile -*-
# debian/rules file for spread
# Andreas Tille <tille@debian.org>
# GPL

#export DH_VERBOSE=1

DEBJAR    := /usr/share/java
CLASSPATH := $(DEBJAR)/jebl.jar:$(DEBJAR)/colt.jar:$(DEBJAR)/org.boehn.kmlframework.jar:$(DEBJAR)/ColorPicker.jar:$(DEBJAR)/processing-core.jar

%:
	dh $@ --with javahelper

override_dh_auto_build:
	# no idea why setting CLASSPATH explicitely this way, however patching
	# build.xml and .classpath seems not to be sufficient
	CLASSPATH=$(CLASSPATH) ant jar

# Remark: The following uscan command requires devscripts > 2.12.4 which is not
#         yet released at the time of this package release.  The code can be obtained
#         via
#   git clone git://tille@git.debian.org/git/users/tille/devscripts.git
#         and then use scripts/uscan.pl
get-orig-source:
	mkdir -p ../tarballs
	uscan --verbose --force-download --repack-compression xz --destdir ../tarballs
	# use this in case you are not trusting uscan from git
	# . debian/get-orig-source
