2002-10-11 11:02:42 +02:00
|
|
|
# Ports collection makefile for: Jakarta Log4J
|
|
|
|
# Date created: 11 October 2002
|
|
|
|
# Whom: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2004-11-28 14:04:55 +01:00
|
|
|
PORTNAME= log4j
|
2006-11-01 19:39:39 +01:00
|
|
|
PORTVERSION= 1.2.14
|
2004-11-28 14:04:55 +01:00
|
|
|
CATEGORIES= devel java
|
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE}
|
|
|
|
MASTER_SITE_SUBDIR= logging/${PORTNAME}/${PORTVERSION}
|
|
|
|
DISTNAME= logging-${PORTNAME}-${PORTVERSION}
|
2002-10-11 11:02:42 +02:00
|
|
|
|
2004-09-01 15:40:11 +02:00
|
|
|
MAINTAINER= hq@FreeBSD.org
|
|
|
|
COMMENT= A fast and flexible logging library for Java
|
2002-10-11 11:02:42 +02:00
|
|
|
|
2004-09-01 15:40:11 +02:00
|
|
|
USE_JAVA= YES
|
2002-10-11 11:02:42 +02:00
|
|
|
NO_BUILD= YES
|
|
|
|
|
2004-09-01 15:40:11 +02:00
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/log4j.jar
|
2003-12-09 20:43:34 +01:00
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
2004-11-28 14:04:55 +01:00
|
|
|
PORTDOCS= *
|
2003-12-09 20:43:34 +01:00
|
|
|
.endif
|
2002-10-11 11:02:42 +02:00
|
|
|
|
|
|
|
do-install:
|
2006-02-13 18:14:19 +01:00
|
|
|
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
|
2004-11-28 14:04:55 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/dist/lib/log4j-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar
|
2004-09-01 15:40:11 +02:00
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
2002-10-11 11:02:42 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-11-28 14:04:55 +01:00
|
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..."
|
|
|
|
@cd ${WRKSRC}/docs \
|
|
|
|
&& ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
|
|
|
|
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
|
2004-09-01 15:40:11 +02:00
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
2004-11-28 14:04:55 +01:00
|
|
|
@${ECHO_MSG} -n ">> Installing examples in ${EXAMPLESDIR}/..."
|
|
|
|
@cd ${WRKSRC}/examples \
|
|
|
|
&& ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \; \
|
|
|
|
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \;
|
2004-09-01 15:40:11 +02:00
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
2002-10-11 11:02:42 +02:00
|
|
|
.endif
|
|
|
|
|
2004-11-28 14:04:55 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
post-install:
|
|
|
|
@${FIND} -s ${WRKSRC}/examples -not -type d \
|
|
|
|
| ${SED} -ne 's,^${WRKSRC}/examples,${EXAMPLESDIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
|
|
@${FIND} -s -d ${WRKSRC}/examples -type d \
|
|
|
|
| ${SED} -ne 's,^${WRKSRC}/examples,@dirrm ${EXAMPLESDIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
|
|
.endif
|
|
|
|
|
2002-10-11 11:02:42 +02:00
|
|
|
.include <bsd.port.mk>
|