blob: 954e9984b52dff9c9b69e3cdf24f6214507a1ec4 (
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
|
# Created by: Joshua Goodall <joshua@roughtrade.net>
# $FreeBSD$
PORTNAME= spread
PORTVERSION= 3.17.3
PORTREVISION= 1
CATEGORIES= net java
MASTER_SITES= http://www.cnds.jhu.edu/download/noformdown/
PKGNAMESUFFIX= -j
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Java client library for the Spread Group Communication System
BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/apache-ant
USE_JAVA= YES
JAVA_VERSION= 1.6+
PKGMESSAGE= ${WRKSRC}/../license.txt
ANT?= ${LOCALBASE}/bin/ant
.if defined(NOPORTDOCS)
ANT_TARGET= jar
.else
ANT_TARGET= javadocs jar
PORTDOCS+= java
.endif
ANT_PARAMS+= -Dlib.dir=${JAVAJARDIR} -Djavadoc.destdir=docs -Dversion=${PORTVERSION}
WRKSRC= ${WRKDIR}/${PORTNAME}-src-${PORTVERSION}/java
PLIST_SUB+= PORTNAME="${PORTNAME}" PORTVERSION="${PORTVERSION}"
NO_STAGE= yes
do-build:
@cd ${WRKSRC} && \
${SETENV} JAVA_HOME=${JAVA_HOME} ${ANT} ${ANT_TARGET} ${ANT_PARAMS}
do-install:
@cd ${WRKSRC} && ${ANT} install ${ANT_PARAMS}
.if !defined(NOPORTDOCS)
${INSTALL} -d -o root -g wheel -m 0755 ${EXAMPLESDIR}/java
${INSTALL_DATA} ${WRKSRC}/recThread.java ${EXAMPLESDIR}/java
${INSTALL_DATA} ${WRKSRC}/Flooder.java ${EXAMPLESDIR}/java
${INSTALL_DATA} ${WRKSRC}/User.java ${EXAMPLESDIR}/java
${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}/java
${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}/java
${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}/java/html
${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}/java/html/spread
${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}/java/html/spread/class-use
${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}/java/html
${INSTALL_DATA} ${WRKSRC}/docs/stylesheet.css ${DOCSDIR}/java/html
${INSTALL_DATA} ${WRKSRC}/docs/spread/*.html ${DOCSDIR}/java/html/spread
${INSTALL_DATA} ${WRKSRC}/docs/spread/class-use/*.html ${DOCSDIR}/java/html/spread/class-use
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|