2012-12-10 13:18:28 +00:00
|
|
|
# Created by: Chris Rees
|
2010-01-19 05:57:33 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= jgraphx
|
2011-02-11 18:57:32 +00:00
|
|
|
PORTVERSION= 1.5.1.5
|
2010-01-19 05:57:33 +00:00
|
|
|
CATEGORIES= java graphics
|
2010-12-23 18:49:49 +00:00
|
|
|
MASTER_SITES= http://www.bayofrum.net/dist/jgraphx/ \
|
|
|
|
http://www.jgraph.com/downloads/jgraphx/archive/
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/./_/g}
|
2010-01-19 05:57:33 +00:00
|
|
|
|
2011-06-17 06:46:07 +00:00
|
|
|
MAINTAINER= crees@FreeBSD.org
|
2010-01-19 05:57:33 +00:00
|
|
|
COMMENT= The Java Graph Diagram Component version X (jgraph v6+)
|
|
|
|
|
2010-12-23 18:49:49 +00:00
|
|
|
LICENSE= jgraph
|
|
|
|
LICENSE_PERMS= # none
|
|
|
|
LICENSE_NAME= JGraph Ltd License
|
|
|
|
LICENSE_FILE= ${WRKSRC}/license.txt
|
|
|
|
MANUAL_PACKAGE_BUILD= needs interactive license confirmation
|
|
|
|
|
2010-01-19 05:57:33 +00:00
|
|
|
USE_ZIP= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USE_JAVA= yes
|
2012-12-10 13:18:28 +00:00
|
|
|
JAVA_VERSION= 1.6+
|
2010-01-19 05:57:33 +00:00
|
|
|
JAVA_RUN= yes
|
|
|
|
|
|
|
|
.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
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
|
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "You may use the following build options:"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${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_TARGETS}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install: do-install-jar do-install-javadoc
|
|
|
|
|
|
|
|
do-install-jar:
|
|
|
|
@${ECHO_CMD} -n ">> Installing .jar file..."
|
2010-08-22 11:58:38 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}.jar \
|
|
|
|
${JAVAJARDIR}/${PORTNAME}.jar
|
2010-01-19 05:57:33 +00:00
|
|
|
@${ECHO_CMD} " [DONE]"
|
|
|
|
|
|
|
|
do-install-javadoc:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${ECHO_CMD} -n ">> Installing documentation in ${DOCSDIR}..."
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2010-08-22 11:58:38 +00:00
|
|
|
@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${DOCSDIR}
|
2010-01-19 05:57:33 +00:00
|
|
|
@${ECHO_CMD} " [DONE]"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|