Package list java3d / debian/0.0.cvs.20081104-1 debian / rules
debian/0.0.cvs.20081104-1

Tree @debian/0.0.cvs.20081104-1 (Download .tar.gz)

rules @debian/0.0.cvs.20081104-1raw · history · blame

#!/usr/bin/make -f

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

JAVA_HOME_DIRS := /usr/lib/jvm/java-6-openjdk /usr/lib/jvm/default-java /usr/lib/jvm/java-6-sun

DEB_JARS             := ant-launcher ant-nodeps vecmath
DEB_ANT_CLEAN_TARGET := clean
DEB_ANT_BUILD_TARGET := jar docs
DEB_BUILDDIR         := j3d-core

install/libjava3d-java::
	set -e ; for jar in j3dcore j3dutils ; do \
	    install -m 644 -D j3d-core/build/default/opt/lib/ext/$$jar.jar \
	        debian/libjava3d-java/usr/share/java/$$jar-$(DEB_UPSTREAM_VERSION).jar; \
	    ln -s $$jar-$(DEB_UPSTREAM_VERSION).jar debian/libjava3d-java/usr/share/java/$$jar.jar ; \
	done

install/libjava3d-jni::
	install -m 644 -D j3d-core/build/default/opt/native/libj3dcore-ogl.so \
	    debian/libjava3d-jni/usr/lib/jni/libj3dcore-ogl.so

install/libjava3d-java-doc::
	mkdir -p debian/libjava3d-java-doc/usr/share/doc/libjava3d-java-doc
	platform=`cd j3d-core; ant echo | grep platform | sed -e 's/.*= //'` ; \
	cp -r j3d-core/build/$$platform/javadocs/docs-public \
	    debian/libjava3d-java-doc/usr/share/doc/libjava3d-java-doc/api

clean::

DEB_VER := 0.0.cvs.20081104
get-orig-source::
	@ echo "Password for the guest CVS user is an empty password (press [enter])"
	cvs -d :pserver:guest@cvs.dev.java.net:/cvs login
	mkdir source-cvs
	cd source-cvs && cvs -d :pserver:guest@cvs.dev.java.net:/cvs co j3d-core j3d-core-utils
	tar -zcv --exclude '*/CVS' --exclude .cvsignore \
	    -f ../java3d_$(DEB_VER).orig.tar.gz source-cvs
	rm -rf source-cvs