mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
# Created by: Anton Yudin <toha@toha.org.ua>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= commons-pool
|
|
PORTVERSION= 1.6
|
|
CATEGORIES= java devel
|
|
MASTER_SITES= ${MASTER_SITE_APACHE_COMMONS_SOURCE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME:S,commons-,,}
|
|
PKGNAMEPREFIX= jakarta-
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
|
|
|
MAINTAINER= ale@FreeBSD.org
|
|
COMMENT= Jakarta Object-pooling API
|
|
|
|
LICENSE= APACHE20
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
|
|
USE_ANT= yes
|
|
ALL_TARGET= build-jar
|
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
|
|
|
|
PORTDOCS= *
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
ALL_TARGET+= javadoc
|
|
.endif
|
|
|
|
do-install:
|
|
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
|
|
@${INSTALL_DATA} ${WRKSRC}/dist/${PORTNAME}-${PORTVERSION}.jar \
|
|
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
@cd ${WRKSRC}/dist/docs && ${FIND} api \
|
|
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} > /dev/null 2>&1
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|