ports/java/jcommon/Makefile
Muhammad Moinur Rahman ac7a7d6fe1
Mk/Uses/java.mk: Runtime fix with USES=java:ant
USES=java:ant does not imply USES=java:run so we need to add the run arg
seperately when we are using USES=java:ant. Not all ports require the
the argument so it is better to address the ports individually instead
of handling it automatically by implying run for ant.

Thanks to vvd for carefully going through this.

Reported by:	vvd
Approved by:	portmgr (blanket)
2024-12-31 15:39:30 +01:00

44 lines
1.1 KiB
Makefile

PORTNAME= jcommon
PORTVERSION= 1.0.23
PORTREVISION= 1
CATEGORIES= java devel
MASTER_SITES= SF/jfreechart/3.%20JCommon/${PORTVERSION}
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Collection of useful classes used by JFreeChart and JFreeReport
WWW= https://www.jfree.org/jcommon/
LICENSE= LGPL21
USES= zip
OPTIONS_DEFINE= COMPILE DOCS
OPTIONS_DEFAULT=COMPILE
COMPILE_DESC= Build from source
COMPILE_USES= java:ant,run
COMPILE_USES_OFF= java
COMPILE_VARS_OFF= NO_BUILD=yes
COMPILE_ALL_TARGET= compile-xml
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCOMPILE}
BUILD_WRKSRC= ${WRKSRC}/ant
.if ${PORT_OPTIONS:MDOCS}
ALL_TARGET+= javadoc
PORTDOCS= *
.endif
.endif
PLIST_FILES= %%JAVAJARDIR%%/jcommon.jar %%JAVAJARDIR%%/jcommon-xml.jar
do-install:
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-xml-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-xml.jar
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MCOMPILE}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/javadoc && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>