aboutsummaryrefslogtreecommitdiff
path: root/java/jakarta-commons-logging/Makefile
diff options
context:
space:
mode:
authorErnst de Haan <znerd@FreeBSD.org>2002-11-14 10:55:13 +0000
committerErnst de Haan <znerd@FreeBSD.org>2002-11-14 10:55:13 +0000
commit86de1126a18981d98fd6874d87a50c7a3e5ae98e (patch)
tree0265207986ac1f53b9f635c5dfb6f653090c5718 /java/jakarta-commons-logging/Makefile
parent2d91f2e2c671335ed43c222323ae664e8e024448 (diff)
downloadports-86de1126a18981d98fd6874d87a50c7a3e5ae98e.tar.gz
ports-86de1126a18981d98fd6874d87a50c7a3e5ae98e.zip
Notes
Diffstat (limited to 'java/jakarta-commons-logging/Makefile')
-rw-r--r--java/jakarta-commons-logging/Makefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/java/jakarta-commons-logging/Makefile b/java/jakarta-commons-logging/Makefile
new file mode 100644
index 000000000000..94a00106cb84
--- /dev/null
+++ b/java/jakarta-commons-logging/Makefile
@@ -0,0 +1,53 @@
+# New ports collection makefile for: Jakarta Commons Logging
+# Date created: November 14, 2002
+# Whom: Ernst de Haan <znerd@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= commons-logging
+PORTVERSION= 1.0.2
+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 \
+ ${LOCALBASE}/share/java/classes/jakarta-log4j.jar:${PORTSDIR}/java/jakarta-log4j
+
+USE_JAVA= 1.2+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src/logging
+
+PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///}
+ANT?= ${LOCALBASE}/bin/ant
+.if defined(NOPORTDOCS)
+ANT_TARGET= dist
+.else
+ANT_TARGET= dist
+.endif
+JAVASHAREDIR= ${PREFIX}/share/java
+JARDIR= ${JAVASHAREDIR}/classes
+JARFILE= ${PORTNAME}.jar
+DESTJARFILE= ${PORTNAME}.jar
+
+post-extract:
+ @${CP} ${PORTSDIR}/java/jakarta-commons-beanutils/files/LICENSE ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src/
+
+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>