1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/java/jgraphx/Makefile
Max Brazhnikov b83ffb5777 java/jgraphx:
- Update to 2.5.1.0
- Use direct link instead of GITHUB (doesn't work for me)
- Remove needless JAVA_VERSION
- Take maintainership (the port is required for math/scilab)

PR:		ports/189203
Approved by:	crees (former maintainer)
2014-05-01 16:28:52 +00:00

56 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= jgraphx
PORTVERSION= 2.5.1.0
CATEGORIES= java graphics
MASTER_SITES= https://codeload.github.com/jgraph/jgraphx/tar.gz/v${PORTVERSION}?dummy=/
MAINTAINER= makc@FreeBSD.org
COMMENT= The Java Graph Diagram Component version X (jgraph v6+)
LICENSE= jgraph
LICENSE_PERMS= # none
LICENSE_NAME= JGraph Ltd License
LICENSE_FILE= ${WRKSRC}/license.txt
MANUAL_PACKAGE_BUILD= needs interactive license confirmation
OPTIONS_DEFINE= COMPILE DOCS
COMPILE_DESC= Compile from source instead of using provided binary
USE_JAVA= yes
JAVA_RUN= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCOMPILE} || ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS+= ${ANT_CMD}:${PORTSDIR}/devel/apache-ant
ANT_CMD?= ${LOCALBASE}/bin/ant
ANT= ${SETENV} JAVA_HOME=${JAVA_HOME} ${ANT_CMD}
. if ${PORT_OPTIONS:MCOMPILE}
JAVA_BUILD= yes
. endif
.endif
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
PORTDOCS= *
do-build:
.if ${PORT_OPTIONS:MCOMPILE} || ${PORT_OPTIONS:MDOCS}
cd ${WRKSRC} && ${ANT} ${ANT_TARGETS}
.endif
do-install: do-install-jar do-install-javadoc
do-install-jar:
${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}.jar \
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
do-install-javadoc:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>