aboutsummaryrefslogtreecommitdiffstats
path: root/biology/biojava/Makefile
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2000-10-10 19:14:03 +0800
committerjeh <jeh@FreeBSD.org>2000-10-10 19:14:03 +0800
commitd7b77bb9fd7768996da5f2fcbb97d6f4edf28826 (patch)
tree01337bb863ef7c7fa25e91a4df81f04519102d83 /biology/biojava/Makefile
parent2ce6cac6d020b0f66acb3988762d39a67459f1a9 (diff)
downloadfreebsd-ports-gnome-d7b77bb9fd7768996da5f2fcbb97d6f4edf28826.tar.gz
freebsd-ports-gnome-d7b77bb9fd7768996da5f2fcbb97d6f4edf28826.tar.zst
freebsd-ports-gnome-d7b77bb9fd7768996da5f2fcbb97d6f4edf28826.zip
Initial import of biology/biojava
PR: 21678 Submitted by: Brad Chapman <chapmanb@arches.uga.edu>
Diffstat (limited to 'biology/biojava/Makefile')
-rw-r--r--biology/biojava/Makefile59
1 files changed, 59 insertions, 0 deletions
diff --git a/biology/biojava/Makefile b/biology/biojava/Makefile
new file mode 100644
index 000000000000..76fe2ff54f1e
--- /dev/null
+++ b/biology/biojava/Makefile
@@ -0,0 +1,59 @@
+# New ports collection makefile for: biojava
+# Date created: 15 September 2000
+# Whom: FreeBSD Bio porters (bio@freebsd.net)
+#
+# $FreeBSD$
+#
+
+PORTNAME= biojava
+PORTVERSION= 1.01
+CATEGORIES= biology java
+MASTER_SITES= ftp://ftp.biojava.org/pub/biojava/source/
+
+MAINTAINER= bio@freebsd.net
+
+BUILD_DEPENDS= ${JAVA_COMMAND}:${PORTSDIR}/java/linux-jdk
+
+JDK_VERSION= 1.2.2
+JAVAVERSION= linux-jdk${JDK_VERSION}
+JAVADIR= ${PREFIX}/${JAVAVERSION}
+JAVA_COMPILE= ${JAVADIR}/bin/javac
+JAVA_COMMAND= ${JAVADIR}/bin/java
+
+do-build:
+ @(cd ${WRKSRC}; \
+ ${JAVA_COMPILE} build/Builder.java; \
+ ${SETENV} PATH=${PATH}:${JAVADIR}/bin \
+ ${JAVA_COMMAND} build.Builder all;)
+
+.if !defined(NOPORTDOCS)
+ @(cd ${WRKSRC}; ${SETENV} PATH=${PATH}:${JAVADIR}/bin \
+ ${JAVA_COMMAND} build.Builder docs;)
+.endif
+
+do-install:
+ @(cd ${WRKSRC}; \
+ ${MKDIR} ${PREFIX}/share/java/classes/; \
+ ${CP} ${WRKSRC}/biojava.jar ${PREFIX}/share/java/classes/; \
+ ${CP} ${WRKSRC}/xml.jar ${PREFIX}/share/java/classes/; \
+ ${MKDIR} ${PREFIX}/share/java/${PKGNAME}/; \
+ ${CP} -R README LICENSE ${PREFIX}/share/java/${PKGNAME}/; \
+ ${CP} -R ${WRKSRC}/demos ${PREFIX}/share/java/${PKGNAME}/;)
+
+.if !defined(NOPORTDOCS)
+ @(${CP} -R ${WRKSRC}/docs ${PREFIX}/share/java/${PKGNAME})
+.endif)
+
+post-install:
+.if !defined(BATCH)
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "Libraries installed at: ${PREFIX}/share/java/classes/"
+ @${ECHO_MSG} "You should edit your CLASSPATH to include the jar files"
+ @${ECHO_MSG} "in this directory."
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "Docs and demos are installed in:"
+ @${ECHO_MSG} "${PREFIX}/share/java/${PKGNAME}"
+ @${ECHO_MSG} ""
+.endif
+
+.include <bsd.port.mk>