2003-08-30 01:39:54 +00:00
|
|
|
# New ports collection makefile for: spread-j
|
|
|
|
# Date created: 06 November 2002
|
|
|
|
# Whom: Joshua Goodall <joshua@roughtrade.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2004-07-22 12:15:28 +00:00
|
|
|
PORTNAME= spread
|
|
|
|
PORTVERSION= 3.17.2
|
2003-08-30 01:39:54 +00:00
|
|
|
CATEGORIES= net java
|
2003-12-29 06:21:22 +00:00
|
|
|
MASTER_SITES= http://www.cnds.jhu.edu/download/noformdown/
|
2004-07-22 12:15:28 +00:00
|
|
|
PKGNAMESUFFIX= -j
|
|
|
|
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
|
2003-08-30 01:39:54 +00:00
|
|
|
|
|
|
|
MAINTAINER= joshua@roughtrade.net
|
|
|
|
COMMENT= Java client library for the Spread Group Communication System
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/apache-ant
|
|
|
|
|
2004-07-22 12:15:28 +00:00
|
|
|
USE_JAVA= YES
|
|
|
|
JAVA_VERSION= 1.2+
|
2003-08-30 01:39:54 +00:00
|
|
|
PKGMESSAGE= ${WRKSRC}/../license.txt
|
|
|
|
|
2003-12-29 06:21:22 +00:00
|
|
|
ANT?= ${LOCALBASE}/bin/ant
|
2003-08-30 01:39:54 +00:00
|
|
|
.if defined(NOPORTDOCS)
|
2003-12-29 06:21:22 +00:00
|
|
|
ANT_TARGET= jar
|
2003-08-30 01:39:54 +00:00
|
|
|
.else
|
2003-12-29 06:21:22 +00:00
|
|
|
ANT_TARGET= javadocs jar
|
2004-07-22 12:15:28 +00:00
|
|
|
PORTDOCS+= java
|
2003-08-30 01:39:54 +00:00
|
|
|
.endif
|
2004-07-22 12:15:28 +00:00
|
|
|
ANT_PARAMS+= -Dlib.dir=${JAVAJARDIR} -Djavadoc.destdir=docs -Dversion=${PORTVERSION}
|
2003-08-30 01:39:54 +00:00
|
|
|
|
2004-07-22 12:15:28 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}_src-${PORTVERSION}/java
|
|
|
|
PLIST_SUB+= PORTNAME="${PORTNAME}" PORTVERSION="${PORTVERSION}"
|
2003-08-30 01:39:54 +00:00
|
|
|
|
|
|
|
do-build:
|
2004-04-15 18:31:06 +00:00
|
|
|
@cd ${WRKSRC} && \
|
|
|
|
${SETENV} JAVA_HOME=${JAVA_HOME} ${ANT} ${ANT_TARGET} ${ANT_PARAMS}
|
2003-08-30 01:39:54 +00:00
|
|
|
|
|
|
|
do-install:
|
2003-12-29 06:21:22 +00:00
|
|
|
@cd ${WRKSRC} && ${ANT} install ${ANT_PARAMS}
|
|
|
|
.if !defined(NOPORTDOCS)
|
2004-07-22 12:15:28 +00:00
|
|
|
${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
|
2003-08-30 01:39:54 +00:00
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|