1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/java/junit/Makefile
OKAZAKI Tetsurou a513c4159a Fix previous commit.
PR:		31373
Submitted by:	Ernst de Haan <ernst@jollem.com>
2001-10-22 06:31:03 +00:00

55 lines
1.3 KiB
Makefile

# New ports collection makefile for: JUnit
# Date created: Jun 15 1999
# Whom: OKAZAKI Tetsurou
#
# $FreeBSD$
#
PORTNAME= junit
PORTVERSION= 3.7
CATEGORIES= java devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://metaverse.euronet.nl/~ernst/ \
http://znerd.org/
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= okazaki@FreeBSD.org
RUN_DEPENDS= ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper
JDK_VERSION?= 1.1.8
.if ${JDK_VERSION} == "1.1.8"
RUN_DEPENDS+= ${LOCALBASE}/share/java/classes/jfc-1.1.1/swing.jar:${PORTSDIR}/java/jfc
.endif
FIND?= /usr/bin/find
USE_ZIP= yes
NO_BUILD= yes
JUNIT_SUBDIR= ${PORTNAME}-${PORTVERSION}
JUNIT_DESTDIR= ${PREFIX}/share/java/${JUNIT_SUBDIR}
PLIST_SUB= JUNIT_SUBDIR=${JUNIT_SUBDIR}
.if !defined(NOPORTDOCS)
DATADIRS= doc javadoc junit
.endif
do-install:
${MKDIR} ${PREFIX}/share/java/classes ${JUNIT_DESTDIR}
cd ${INSTALL_WRKSRC}; \
${INSTALL_DATA} junit.jar ${PREFIX}/share/java/classes; \
${INSTALL_DATA} README.html ${JUNIT_DESTDIR}; \
${INSTALL_DATA} src.jar ${JUNIT_DESTDIR}
.if defined(DATADIRS)
.for DIR in ${DATADIRS}
cd ${INSTALL_WRKSRC}; \
${FIND} ${DIR} -type d -exec ${MKDIR} ${JUNIT_DESTDIR}/\{} \; ;\
${FIND} ${DIR} -type f -exec ${INSTALL_DATA} \{} ${JUNIT_DESTDIR}/\{} \;
.endfor
.endif
.include <bsd.port.mk>