diff options
author | Herve Quiroz <hq@FreeBSD.org> | 2006-02-06 23:26:40 +0000 |
---|---|---|
committer | Herve Quiroz <hq@FreeBSD.org> | 2006-02-06 23:26:40 +0000 |
commit | 004ebba6cc9257c5d07af752b80fbce97d495d7b (patch) | |
tree | fb0a21cbbacd2110dc3f5d323c068c88e5cf0d08 /java/jcommon/Makefile | |
parent | f81a821781da33552a27470cf02733a92ae769fe (diff) | |
download | ports-004ebba6cc9257c5d07af752b80fbce97d495d7b.tar.gz ports-004ebba6cc9257c5d07af752b80fbce97d495d7b.zip |
Notes
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> |