1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/devel/apache-ant/Makefile
Pietro Cerutti b794cf51f9 - Update to 1.7.1
Approved by:	glewis@ (on behalf of java@)
Thanks to:	scf@ the reminder
2009-03-09 22:45:31 +00:00

87 lines
2.3 KiB
Makefile

# New ports collection makefile for: apache-ant
# Date created: 21 February 2001
# Whom: znerd@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= apache-ant
PORTVERSION= 1.7.1
CATEGORIES= devel java
MASTER_SITES= ${MASTER_SITE_APACHE:S,%SUBDIR%/,ant/binaries/:bin,} \
${MASTER_SITE_LOCAL:S,%SUBDIR%/,hq/:man,} \
http://www.esil.univ-mrs.fr/~hquiroz/:man
DISTFILES= ${ANT_DISTFILE}:bin \
${MANPAGE_DISTFILE}:man
EXTRACT_ONLY= ${ANT_DISTFILE}
MAINTAINER= java@FreeBSD.org
COMMENT= Java- and XML-based build tool, conceptually similar to make
RUN_DEPENDS= classpath:${PORTSDIR}/java/javavmwrapper
ANT_DISTFILE= ${PORTNAME}-${PORTVERSION}-bin.tar.bz2
MANPAGE_DISTFILE= ${PORTNAME}-manpage-${MANPAGE_VERSION}.tgz
MANPAGE_VERSION= 20030908
USE_BZIP2= yes
USE_JAVA= yes
JAVA_VERSION= 1.2+
NO_BUILD= YES
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
PLIST_SUB+= ANT_VERSION="${PORTVERSION}"
READMES= LICENSE README WHATSNEW
.if !defined(NOPORTDOCS)
PORTDOCS= * .htaccess
.endif
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MANPAGE_SUBDIR= apache-ant-manpage
MANPAGE_WRKSRC= ${WRKSRC}/${MANPAGE_SUBDIR}
MAN1= ant.1
MAN5= build.xml.5
SUB_FILES= ant.sh
post-extract:
@${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${MANPAGE_DISTFILE}
do-install:
@${ECHO_MSG} -n ">> Installing scripts..."
@${MKDIR} ${DATADIR}/bin
@${INSTALL_SCRIPT} ${WRKDIR}/ant.sh ${PREFIX}/bin/ant
@${INSTALL_SCRIPT} ${WRKSRC}/bin/antRun ${DATADIR}/bin/
@${ECHO_MSG} " [ DONE ]"
.for d in etc lib
@${ECHO_MSG} -n ">> Installing data directory '${d}'..."
@cd ${WRKSRC} && ${FIND} ${d} -type d -exec ${MKDIR} ${DATADIR}/\{} \;
@cd ${WRKSRC} && ${FIND} ${d} -type f -exec ${INSTALL_DATA} \{} ${DATADIR}/\{} \;
@${ECHO_MSG} " [ DONE ]"
.endfor
@${ECHO_MSG} -n ">> Installing manpages..."
@${INSTALL_MAN} ${MANPAGE_WRKSRC}/ant.1 ${MAN1PREFIX}/man/man1
@${INSTALL_MAN} ${MANPAGE_WRKSRC}/build.xml.5 ${MAN5PREFIX}/man/man5
@${ECHO_MSG} " [ DONE ]"
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${ECHO_MSG} -n ">> Installing readme files..."
@${INSTALL_DATA} ${READMES:S|^|${WRKSRC}/|} ${DOCSDIR}
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} -n ">> Installing documentation files..."
@cd ${WRKSRC}/docs && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/\{} \;
@cd ${WRKSRC}/docs && ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${DOCSDIR}/\{} \;
@${ECHO_MSG} " [ DONE ]"
.endif
.include <bsd.port.mk>