mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-06 01:57:40 +00:00
17e7161edf
- Convert to new options framework [1] - Add LICENSE [1] - Support staging [1] - Remove leading article from COMMENT - Use PORTEXAMPLES to manage examples plist entries PR: ports/186388 [1] Submitted by: Hardy Schumacher <hardy.schumacher@gmx.de>
42 lines
1.3 KiB
Makefile
42 lines
1.3 KiB
Makefile
# Created by: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= log4j
|
|
PORTVERSION= 1.2.17
|
|
CATEGORIES= devel java
|
|
MASTER_SITES= ${MASTER_SITE_APACHE}
|
|
MASTER_SITE_SUBDIR= logging/${PORTNAME}/${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Fast and flexible logging library for Java
|
|
|
|
LICENSE= APACHE20
|
|
|
|
USE_JAVA= YES
|
|
NO_BUILD= YES
|
|
|
|
WRKSRC= ${WRKDIR}/apache-${PORTNAME}-${PORTVERSION}
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/log4j.jar
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
|
|
do-install:
|
|
@${ECHO_MSG} -n ">> Installing JAR as ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar..."
|
|
@${INSTALL_DATA} ${WRKSRC}/log4j-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${STAGEDIR}${DOCSDIR}/..."
|
|
@cd ${WRKSRC}/site \
|
|
&& ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
|
|
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
@${ECHO_MSG} -n ">> Installing examples in ${STAGEDIR}${EXAMPLESDIR}/..."
|
|
@cd ${WRKSRC}/examples \
|
|
&& ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/{} \; \
|
|
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/{} \;
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
.include <bsd.port.mk>
|