1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/devel/apache-ant/Makefile
OKAZAKI Tetsurou 284eac2f74 Add Ant-1.3, a Java based build tool, from Jakarta Project.
Among four submissions, this commit based on the port sent by
Ernst de Haan <ernst@jollem.com> at ports/24291.

PR:		21435, 23368, 24291
Submitted by:	Leo Kim <leo@florida.sarang.net>,
		Dave Glowacki <dglo@ssec.wisc.edu>,
		Sean Blakey <sean@beastie.bellevue.virtualtek.com>,
		Ernst de Haan <ernst@jollem.com>
Also thanks to:	Palle Girgensohn <girgen@partitur.se>,
		Richard Stockley <rws@procopia.demon.co.uk>,
		Kees Jan Koster <kjkoster@kjkoster.org>
2001-04-03 03:19:56 +00:00

57 lines
1.6 KiB
Makefile

# New ports collection makefile for: jakarta-ant
# Date created: 21 February 2001
# Whom: ernst@jollem.com
#
# $FreeBSD$
#
PORTNAME= jakarta-ant
PORTVERSION= 1.3
CATEGORIES= devel java
MASTER_SITES= http://jakarta.apache.org/builds/${PORTNAME}/release/v${PORTVERSION}/bin/
DISTFILES= ${DISTNAME}-bin${EXTRACT_SUFX} \
${DISTNAME}-optional.jar
DIST_SUBDIR= jakarta
EXTRACT_ONLY= ${DISTNAME}-bin${EXTRACT_SUFX}
MAINTAINER= ernst@jollem.com
RUN_DEPENDS= ${JAVAVM}:${PORTSDIR}/java/javavmwrapper \
${LOCALBASE}/share/java/classes/jaxp.jar:${PORTSDIR}/textproc/crimson
JAVAVM?= ${LOCALBASE}/bin/javavm
FIND?= /usr/bin/find
NO_BUILD= YES
ANT_SUBDIR= ${DISTNAME}
PORTDESTDIR= ${PREFIX}/share/java/${ANT_SUBDIR}
PLIST_SUB= ANT_SUBDIR=${ANT_SUBDIR}
READMES= LICENSE README TODO WHATSNEW
SCRIPTS= bin/ant bin/antRun bin/runant.pl
DATADIRS= lib
.if !defined(NOPORTDOCS)
DATADIRS+= docs
.endif
do-install:
${MKDIR} ${PORTDESTDIR}/bin ${PORTDESTDIR}/lib
cd ${INSTALL_WRKSRC}; \
${INSTALL_SCRIPT} ${SCRIPTS} ${PORTDESTDIR}/bin; \
${INSTALL_DATA} ${READMES} ${PORTDESTDIR};
${LN} -sf ${PORTDESTDIR}/bin/ant ${PREFIX}/bin
.if defined(DATADIRS)
.for DIR in ${DATADIRS}
cd ${INSTALL_WRKSRC}; \
${FIND} ${DIR} -type d -exec ${MKDIR} ${PORTDESTDIR}/\{} \; ;\
${FIND} ${DIR} -type f -exec ${INSTALL_DATA} \{} ${PORTDESTDIR}/\{} \;
.endfor
.endif
${RM} -f ${PORTDESTDIR}/lib/parser.jar
${INSTALL_DATA} ${_DISTDIR}/${DISTNAME}-optional.jar ${PORTDESTDIR}/lib/optional.jar
${LN} -sf ${LOCALBASE}/share/java/classes/jaxp.jar ${PORTDESTDIR}/lib
${LN} -sf ${LOCALBASE}/share/java/classes/crimson.jar ${PORTDESTDIR}/lib
.include <bsd.port.mk>