10d07fbd22
. Fix dependencies to be in sync with the recent JDK ports renaming. . Replace MASTER_SITES with a location that actually contains the source. . Fix the packing list. Note that there is a much newer version of this application available, but that is beyond the scope of what I was trying to do (just fix the JDK dependency), as is the last two items.
60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
# 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= http://www.biojava.org/download/source/
|
|
|
|
MAINTAINER= bio@freebsd.net
|
|
|
|
BUILD_DEPENDS= ${JAVA_COMMAND}:${PORTSDIR}/java/linux-sun-jdk12
|
|
|
|
JDK_VERSION= 1.2.2
|
|
JAVAVERSION= linux-sun-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/doc/${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>
|