diff options
Diffstat (limited to 'java/jcommon/Makefile')
-rw-r--r-- | java/jcommon/Makefile | 46 |
1 files changed, 16 insertions, 30 deletions
diff --git a/java/jcommon/Makefile b/java/jcommon/Makefile index 72485c930973..a7ab677cb991 100644 --- a/java/jcommon/Makefile +++ b/java/jcommon/Makefile @@ -7,8 +7,8 @@ # PORTNAME= jcommon -PORTVERSION= 0.9.5 -CATEGORIES= java +PORTVERSION= 1.0.0 +CATEGORIES= java devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= jfreechart @@ -18,26 +18,20 @@ COMMENT= A collection of useful classes used by JFreeChart and JFreeReport USE_JAVA= yes JAVA_VERSION= 1.2+ -.if !defined(WITHOUT_COMPILE) || !defined(NOPORTDOCS) -BUILD_DEPENDS= ${ANT_CMD}:${PORTSDIR}/devel/apache-ant -ANT_CMD?= ${LOCALBASE}/bin/ant -ANT= ${SETENV} JAVA_HOME=${JAVA_HOME} ${ANT_CMD} -.endif - .if !defined(WITHOUT_COMPILE) -JAVA_BUILD= yes -ANT_TARGETS= compile +USE_ANT= yes +ALL_TARGET= compile-xml +BUILD_WRKSRC= ${WRKSRC}/ant .else -JAVA_RUN= yes +NO_BUILD= yes .endif -.if !defined(NOPORTDOCS) -ANT_TARGETS+= javadoc +.if !defined(NOPORTDOCS) && !defined(WITHOUT_COMPILE) +ALL_TARGET+= javadoc PORTDOCS= * .endif -PLIST_SUB+= JAVAJARDIR=${JAVAJARDIR:S|^${PREFIX}/||} -PLIST_FILES= %%JAVAJARDIR%%/jcommon.jar +PLIST_FILES= %%JAVAJARDIR%%/jcommon.jar %%JAVAJARDIR%%/jcommon-xml.jar pre-fetch: @${ECHO_MSG} "" @@ -46,25 +40,17 @@ pre-fetch: @${ECHO_MSG} " WITHOUT_COMPILE=yes Install the pre-compiled .jar file" @${ECHO_MSG} "" -do-build: -.if !defined(WITHOUT_COMPILE) || !defined(NOPORTDOCS) - @cd ${WRKSRC}/ant && ${ANT} ${ANT_TARGETS} -.endif - -do-install: do-install-jar do-install-javadoc - -do-install-jar: - @${ECHO_CMD} -n ">> Installing .jar file..." +do-install: + @${ECHO_MSG} -n ">> Installing .jar files in ${JAVAJARDIR}/..." @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar - @${ECHO_CMD} " [DONE]" - -do-install-javadoc: -.if !defined(NOPORTDOCS) - @${ECHO_CMD} -n ">> Installing documentation in ${DOCSDIR}..." + @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-xml-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}-xml.jar + @${ECHO_MSG} " [DONE]" +.if !defined(NOPORTDOCS) && !defined(WITHOUT_COMPILE) + @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..." @${MKDIR} ${DOCSDIR} @cd ${WRKSRC}/javadoc && ${FIND} . \ | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} - @${ECHO_CMD} " [DONE]" + @${ECHO_MSG} " [DONE]" .endif .include <bsd.port.mk> |