aboutsummaryrefslogtreecommitdiff
path: root/java/jakarta-commons-dbcp/Makefile
diff options
context:
space:
mode:
authorErnst de Haan <znerd@FreeBSD.org>2003-10-06 08:28:48 +0000
committerErnst de Haan <znerd@FreeBSD.org>2003-10-06 08:28:48 +0000
commit3fddb0b9fd397e0320ca5a00bd9956d500e5c67b (patch)
treec2066db02f386e597a010041e06646db95c3e990 /java/jakarta-commons-dbcp/Makefile
parent1cbf7547079ca2a0473969b13de595666007af06 (diff)
downloadports-3fddb0b9fd397e0320ca5a00bd9956d500e5c67b.tar.gz
ports-3fddb0b9fd397e0320ca5a00bd9956d500e5c67b.zip
New port: Jakarta Commons DBCP.
PR: 57573 Submitted by: Anton Yudin <toha@toha.org.ua>
Notes
Notes: svn path=/head/; revision=90399
Diffstat (limited to 'java/jakarta-commons-dbcp/Makefile')
-rw-r--r--java/jakarta-commons-dbcp/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/java/jakarta-commons-dbcp/Makefile b/java/jakarta-commons-dbcp/Makefile
new file mode 100644
index 000000000000..6f08557c006c
--- /dev/null
+++ b/java/jakarta-commons-dbcp/Makefile
@@ -0,0 +1,55 @@
+# 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.0
+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 \
+ ${LOCALBASE}/share/java/classes/commons-pool.jar:${PORTSDIR}/java/jakarta-commons-pool \
+
+USE_JAVA= 1.2+
+
+WRKSRC= ${WRKDIR}/${DISTNAME}
+PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///}
+ANT?= ${LOCALBASE}/bin/ant
+.if defined(NOPORTDOCS)
+ANT_TARGET= dist-jar
+.else
+ANT_TARGET= dist-jar doc
+.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} && ${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>