freebsd-ports/java/jgraphx/Makefile
Mark Linimon 06e6677793 Now that the Java 1.3 and Java 1.4 ports are deprecated and will expire soon,
remove support for them from bsd.java.mk.  As Jikes is not available in Java 1.5
or higher, remove it from bsd.java.mk too (suggested by hq@) and from the ports
which used it (only occurences were USE_JIKES=no).  Support for the Blackdown VM
is also removed, as it is not available in Java 1.5 and higher.

Also remove the mapping from Java 1.1-1.4 to Java 1.5+ in bsd.java.mk to detect
old, broken ports; therefore bump the minimal value of JAVA_VERSION to 1.5.
While here, replace static values of JAVA_VERSION in files/*.in by
%%JAVA_VERSION%% .

PR:		ports/158969
Submitted by:	rene
Tested on:	pointyhat-west -exp
2011-07-21 05:03:02 +00:00

74 lines
1.8 KiB
Makefile

# Ports collection Makefile for: jgraphx
# Date created: 5 Jan 2010
# Whom: Chris Rees
#
# $FreeBSD$
#
PORTNAME= jgraphx
PORTVERSION= 1.5.1.5
CATEGORIES= java graphics
MASTER_SITES= http://www.bayofrum.net/dist/jgraphx/ \
http://www.jgraph.com/downloads/jgraphx/archive/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/./_/g}
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_ZIP= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_JAVA= yes
JAVA_VERSION= 1.5+
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..."
@${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>