1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00
freebsd-ports/java/jakarta-commons-pool/Makefile
Greg Lewis 28579f758e . Update to 1.2 [1]
. Don't define local copies of JAVASHAREDIR and JAVAJARDIR.
. Use %%JAVAJARDIR%% in the packing list now that bsd.java.mk supports it.

PR:		69525 [1]
Submitted by:	Anton Yudin <toha@toha.org.ua> (maintainer) [1]
2004-07-26 05:37:19 +00:00

53 lines
1.3 KiB
Makefile

# New ports collection makefile for: Jakarta Commons Pool
# Date created: October 6, 2003
# Whom: Anton Yudin <toha@toha.org.ua>
#
# $FreeBSD$
#
PORTNAME= commons-pool
PORTVERSION= 1.2
CATEGORIES= java
MASTER_SITES= http://www.apache.org/dist/jakarta/commons/pool/source/
PKGNAMEPREFIX= jakarta-
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
DIST_SUBDIR= jakarta
MAINTAINER= toha@toha.org.ua
COMMENT= Jakarta Object-pooling API
BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/apache-ant \
${JAVAJARDIR}/commons-collections.jar:${PORTSDIR}/java/jakarta-commons-collections
USE_JAVA= 1.2+
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///}
ANT?= ${LOCALBASE}/bin/ant
.if defined(NOPORTDOCS)
ANT_TARGET= build-jar
.else
ANT_TARGET= build-jar javadoc
PORTDOCS= *
.endif
JARFILE= ${PORTNAME}.jar
DESTJARFILE= ${PORTNAME}.jar
do-build:
@cd ${WRKSRC} && \
${SETENV} ANT_INCLUDE_SHARED_JARS=YES ${ANT} ${ANT_TARGET}
do-install:
@${ECHO} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
@${CP} ${WRKSRC}/dist/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
@${ECHO} " [ DONE ]"
.if !defined(NOPORTDOCS)
@${ECHO} -n ">> Installing documentation in ${DOCSDIR}..."
@${MKDIR} ${DOCSDIR}
@${CP} -r ${WRKSRC}/dist/docs/api/* ${DOCSDIR}
@${ECHO} " [ DONE ]"
.endif
.include <bsd.port.mk>