freebsd-ports/java/jakarta-commons-dbcp/Makefile
Greg Lewis 8837524ab6 . Unbreak the build after the recent changes to ant. I've done it slightly
differently than the PR, using the ANT_INCLUDE_SHARED_JARS variable.

PR:		61711
Submitted by:	Anton Yudin <toha@toha.org.ua> (maintainer)
2004-01-23 06:26:08 +00:00

58 lines
1.4 KiB
Makefile

# New ports collection makefile for: Jakarta Commons DBCP
# Date created: October 6, 2003
# Whom: Anton Yudin <toha@toha.org.ua>
#
# $FreeBSD$
#
PORTNAME= commons-dbcp
PORTVERSION= 1.1
CATEGORIES= java
MASTER_SITES= http://www.apache.org/dist/jakarta/commons/dbcp/source/
PKGNAMEPREFIX= jakarta-
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
DIST_SUBDIR= jakarta
MAINTAINER= toha@toha.org.ua
COMMENT= The DBCP Component
BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/apache-ant \
${JAVAJARDIR}/commons-pool.jar:${PORTSDIR}/java/jakarta-commons-pool
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
JAVASHAREDIR= ${PREFIX}/share/java
JARDIR= ${JAVASHAREDIR}/classes
JARFILE= ${PORTNAME}.jar
DESTJARFILE= ${PORTNAME}.jar
post-patch:
@${CP} ${WRKSRC}/LICENSE.txt ${WRKSRC}/../LICENSE
do-build:
@cd ${WRKSRC} && \
${SETENV} ANT_INCLUDE_SHARED_JARS=YES ${ANT} ${ANT_TARGET}
do-install:
@${ECHO} -n ">> Installing JAR as ${JARDIR}/${DESTJARFILE}..."
@${CP} ${WRKSRC}/dist/${JARFILE} ${JARDIR}/${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>