diff options
Diffstat (limited to 'java/jump/Makefile')
-rw-r--r-- | java/jump/Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/java/jump/Makefile b/java/jump/Makefile index 69a300254b4e..a1db6e8291e9 100644 --- a/java/jump/Makefile +++ b/java/jump/Makefile @@ -7,6 +7,7 @@ PORTNAME= jump PORTVERSION= 0.4.1 +PORTREVISION= 1 CATEGORIES= java math MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ http://www.metaverse.nl/~ernst/ @@ -21,18 +22,27 @@ USE_JAVA= 1.2+ PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///} TARGET_DIR?= ${PREFIX}/share/java/${PORTNAME}-${PORTVERSION} ANT?= ${LOCALBASE}/bin/ant +.if defined(NOPORTDOCS) +ANT_TARGET= jar +.else ANT_TARGET= jar apidocs +.endif +JAVASHAREDIR= ${PREFIX}/share/java +JARDIR= ${JAVASHAREDIR}/classes do-build: @cd ${WRKSRC} && ${ANT} ${ANT_TARGET} do-install: - @${ECHO} -n ">> Creating directory ${TARGET_DIR}..." - @${MKDIR} ${TARGET_DIR} + @${ECHO} -n ">> Installing JAR as ${JARDIR}/${PORTNAME}.jar..." + @${CP} ${WRKSRC}/build/${PORTNAME}.jar ${JARDIR}/ @${ECHO} " [ DONE ]" - @${ECHO} -n ">> Copying files..." - @${CP} -r ${WRKSRC}/* ${TARGET_DIR} +.if !defined(NOPORTDOCS) + @${ECHO} -n ">> Installing documentation in ${DOCSDIR}..." + @${MKDIR} ${DOCSDIR} + @${CP} -r ${WRKSRC}/build/apidocs/* ${DOCSDIR} @${ECHO} " [ DONE ]" +.endif .include <bsd.port.mk> |