# New ports collection makefile for: Jakarta Commons Collections # Date created: October 18, 2002 # Whom: Ernst de Haan # # $FreeBSD$ # PORTNAME= commons-collections PORTVERSION= 2.1 CATEGORIES= java MASTER_SITES= http://jakarta.apache.org/builds/jakarta-commons/release/${PORTNAME}/v${PORTVERSION}/ PKGNAMEPREFIX= jakarta- DISTNAME= ${PORTNAME}-${PORTVERSION}-src MAINTAINER= znerd@FreeBSD.org BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/jakarta-ant USE_JAVA= 1.2+ PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///} ANT?= ${LOCALBASE}/bin/ant .if defined(NOPORTDOCS) ANT_TARGET= dist-jar .else ANT_TARGET= dist-jar doc-javadoc .endif JAVASHAREDIR= ${PREFIX}/share/java JARDIR= ${JAVASHAREDIR}/classes JARFILE= ${PORTNAME}.jar do-build: @cd ${WRKSRC} && ${ANT} ${ANT_TARGET} do-install: @${ECHO} -n ">> Installing JAR as ${JARDIR}/${JARFILE}..." @${CP} ${WRKSRC}/dist/${JARFILE} ${JARDIR}/ @${ECHO} " [ DONE ]" .if !defined(NOPORTDOCS) @${ECHO} -n ">> Installing documentation in ${DOCSDIR}..." @${MKDIR} ${DOCSDIR} @${CP} -r ${WRKSRC}/dist/docs/api/* ${DOCSDIR} @${ECHO} " [ DONE ]" .endif .include