mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
6a3be72a2b
" The new version delivers a cumulative update of new developments, bug fixes, and improvements, including an upgrade to JDK 1.4. " - Set JAVA_VERSION=1.4+ - Add 'math' category [1] - Use USE_ANT - Fix COMMENT: some words seemed to be missing, turning the comment to a nonsense sentence - ECHO_CMD -> ECHO_MSG - Cleanup: remove "ex:ts=8" and uneeded targets - Use ${FIND} | ${INSTALL_DATA} to install documentation files - Take maintainership Reported by: portlint [1]
66 lines
1.6 KiB
Makefile
66 lines
1.6 KiB
Makefile
# Ports collection makefile for: jgrapht
|
|
# Date created: Jul 9, 2004
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= jgrapht
|
|
PORTVERSION= 0.6.0
|
|
CATEGORIES= java math
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= hq@FreeBSD.org
|
|
COMMENT= Java package for mathematical graph-theory objects and algorithms
|
|
|
|
USE_ZIP= yes
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.4+
|
|
|
|
.if !defined(WITHOUT_COMPILE)
|
|
USE_ANT= yes
|
|
ALL_TARGET= jar
|
|
.if !defined(NOPORTDOCS)
|
|
ALL_TARGET+= javadoc
|
|
.endif
|
|
.else
|
|
NO_BUILD= yes
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= *
|
|
.endif
|
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
JAVA_PORT_API= ${LOCALBASE}/share/doc/jdk${JAVA_PORT_VERSION:C/([0-9]\.[0-9])\.[0-9]/\1/}/api
|
|
.if exists(${JAVA_PORT_API})
|
|
MAKE_ARGS+= -Djdk.api="${JAVA_PORT_API}"
|
|
.endif
|
|
|
|
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} ""
|
|
|
|
post-build:
|
|
${MV} ${WRKSRC}/${PORTNAME}-${PORTVERSION}-local.jar ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar
|
|
|
|
do-install:
|
|
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
|
|
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar
|
|
@${ECHO_MSG} " [DONE]"
|
|
.if !defined(NOPORTDOCS)
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
|
@cd ${WRKSRC}/javadoc && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \;
|
|
@cd ${WRKSRC}/javadoc && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
|
|
@${ECHO_MSG} " [DONE]"
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|