mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
72 lines
1.6 KiB
Makefile
72 lines
1.6 KiB
Makefile
# Created by: Chris Rees
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= jgraphx
|
|
PORTVERSION= 1.10.3.0
|
|
CATEGORIES= java graphics
|
|
MASTER_SITES= GH
|
|
|
|
MAINTAINER= crees@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
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= jgraph
|
|
GH_COMMIT= b445bde
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
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
|
|
|
|
NO_STAGE= yes
|
|
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..."
|
|
@${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}.jar \
|
|
${JAVAJARDIR}/${PORTNAME}.jar
|
|
@${ECHO_CMD} " [DONE]"
|
|
|
|
do-install-javadoc:
|
|
.if !defined(NOPORTDOCS)
|
|
@${ECHO_CMD} -n ">> Installing documentation in ${DOCSDIR}..."
|
|
@${MKDIR} ${DOCSDIR}
|
|
@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${DOCSDIR}
|
|
@${ECHO_CMD} " [DONE]"
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|