1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/math/jts/Makefile
Mathieu Arnold 065c026fe5 Fix ports that confused the meaning of WRKDIR and WRKSRC.
PR:		204056
Submitted by:	mat
Reviewed by:	bapt
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D2735
2015-11-05 12:36:25 +00:00

48 lines
1.1 KiB
Makefile

# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD$
PORTNAME= jts
PORTVERSION= 1.13
CATEGORIES= math databases
MASTER_SITES= SF/${PORTNAME}-topo-suite/${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= JTS Topology Suite
RUN_DEPENDS= ${JAVALIBDIR}/jdom.jar:${PORTSDIR}/java/jdom \
${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit \
${JAVALIBDIR}/xml-apis.jar:${PORTSDIR}/textproc/xerces-j
USES= zip
NO_BUILD= yes
NO_ARCH= yes
USE_JAVA= yes
NO_WRKSUBDIR= yes
VER= ${PORTVERSION:tl}
JARFILES= JTS_Test acme jts-${VER}
OPTIONS_DEFINE= DOCS
do-install:
.for jar in ${JARFILES}
${INSTALL_DATA} ${WRKSRC}/lib/${jar}.jar \
${STAGEDIR}${JAVAJARDIR}/${jar:S|-${VER}||}.jar
.endfor
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.if defined(MAINTAINER_MODE)
regression-test: install
${SED} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|; \
s|%%JAVALIBDIR%%|${JAVALIBDIR}|;\
s|%%JAVA%%|${JAVA}|' \
${FILESDIR}/testJTS.sh.in > ${WRKSRC}/testJTS.sh
(cd ${WRKSRC} && ${SH} ./testJTS.sh )
.endif
.include <bsd.port.mk>