debian swirl logo

Back to the packages list cdk

#!/usr/bin/make -f

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

JAVA_HOME := /usr/lib/jvm/default-java
DEB_JARS := \
		ant-contrib \
		javacc

ANT_ARGS := -Dlib=/usr/share/java

DEB_ANT_BUILD_TARGET := info dist-all

COMPONENTS := \
		annotation \
		atomtype \
		builder3d \
		builder3dtools \
		charges \
		control \
		core \
		data \
		dict \
		diff \
		extra \
		fingerprint \
		forcefield \
		formula \
		interfaces \
		ioformats \
		io \
		ionpot \
		isomorphism \
		libiocml \
		libiomd \
		nonotify \
		pcore \
		pdb \
		qm \
		qsar \
		qsaratomic \
		qsarbond \
		qsarionpot \
		qsarmolecular \
		qsarprotein \
		reaction \
		render \
		sdg \
		smarts \
		smiles \
		standard \
		structgen \
		valencycheck

clean::
		rm -f src/org/openscience/cdk/smiles/smarts/parser/SMARTSParserTokenManager.java
		rm -rf build

install/libcdk-java::
		for COMPONENT in $(COMPONENTS); do \
			install -m 644 dist/jar/cdk-$$COMPONENT.jar \
				debian/libcdk-java/usr/share/java/cdk-$$COMPONENT-$(DEB_UPSTREAM_VERSION).jar; \
			ln -s cdk-$$COMPONENT-$(DEB_UPSTREAM_VERSION).jar \
				debian/libcdk-java/usr/share/java/cdk-$$COMPONENT.jar; \
		if [ $$COMPONENT != "core" ]; then \
				echo usr/share/java/cdk-$$COMPONENT.jar cdk-core.jar >> debian/classpath; \
			else \
				echo usr/share/java/cdk-$$COMPONENT.jar jama.jar jgrapht.jar log4j-1.2.jar xercesImpl.jar vecmath.jar xom.jar >> debian/classpath; \
			fi \
		done

Builds:

libcdk-java
chemistry development kit (cdk) java libraries