blob: 8fbbe1f10f727a04df4212ef4207f13105f6042d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# 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= ports@FreeBSD.org
COMMENT= Open-source java tools for processing biological data
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>
|