1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/java/jfreechart/Makefile
Adam Weinberger 784be3fb78 Add DOCS to OPTIONS_DEFINE to ports that check for PORT_OPTIONS:MDOCS.
Apologies in advance, I know java drives its short bus very, very slowly
through qat. Building these 3 ports will probably wedge it for weeks.
2014-07-15 15:45:35 +00:00

49 lines
1.0 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= jfreechart
PORTVERSION= 1.0.17
CATEGORIES= java graphics
MASTER_SITES= SF/${PORTNAME}/1.%20JFreeChart/${PORTVERSION}
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Free Java class library for generating charts
LICENSE= LGPL21
RUN_DEPENDS= ${JAVALIBDIR}/jcommon.jar:${PORTSDIR}/java/jcommon
USE_JAVA= yes
JAVA_VERSION= 1.6+
OPTIONS_DEFINE= COMPILE DOCS
OPTIONS_DEFAULT=COMPILE
COMPILE_DESC= Build from source
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCOMPILE}
USE_ANT= yes
ALL_TARGET= compile
BUILD_WRKSRC= ${WRKSRC}/ant
MAKE_ENV= LANG=en_US.UTF-8
.else
NO_BUILD= yes
.endif
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MCOMPILE}
ALL_TARGET+= javadoc
PORTDOCS= *
.endif
PLIST_FILES= %%JAVAJARDIR%%/jfreechart.jar
do-install:
${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MCOMPILE}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/javadoc && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>