freebsd-ports/www/httpcore/Makefile
2020-01-14 08:31:09 +00:00

53 lines
1.5 KiB
Makefile

# Created by: Alex Dupre <ale@FreeBSD.org>
# $FreeBSD$
PORTNAME= httpcore
DISTVERSION= 4.4.13
CATEGORIES= www java
MASTER_SITES= APACHE/httpcomponents/${PORTNAME}/binary
DISTNAME= httpcomponents-core-${DISTVERSION}-bin
MAINTAINER= ale@FreeBSD.org
COMMENT= Java components implementing the base HTTP protocol
LICENSE= APACHE20
RUN_DEPENDS= ${JAVALIBDIR}/commons-cli.jar:java/apache-commons-cli
OPTIONS_DEFINE= DOCS
USE_JAVA= yes
NO_BUILD= yes
NO_ARCH= yes
WRKSRC= ${WRKDIR}/httpcomponents-core-${DISTVERSION}
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar \
%%JAVAJARDIR%%/${PORTNAME}-nio.jar \
%%JAVAJARDIR%%/${PORTNAME}-ab.jar
PORTDOCS= *
.include <bsd.port.options.mk>
do-install:
@${ECHO_MSG} -n ">> Installing JAR file as ${JAVAJARDIR}/${PORTNAME}.jar..."
@${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}-${DISTVERSION}.jar \
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
@${ECHO_MSG} " [DONE]"
@${ECHO_MSG} -n ">> Installing JAR file as ${JAVAJARDIR}/${PORTNAME}-nio.jar..."
@${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}-nio-${DISTVERSION}.jar \
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-nio.jar
@${ECHO_MSG} " [DONE]"
@${ECHO_MSG} -n ">> Installing JAR file as ${JAVAJARDIR}/${PORTNAME}-ab.jar..."
@${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}-ab-${DISTVERSION}.jar \
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-ab.jar
@${ECHO_MSG} " [DONE]"
.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} -n ">> Installing documentation..."
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/RELEASE_NOTES.txt ${STAGEDIR}${DOCSDIR}/
@${ECHO_MSG} " [DONE]"
.endif
.include <bsd.port.mk>