freebsd-ports/devel/apache-ant/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

79 lines
2 KiB
Makefile

# Created by: Ernst de Haan <znerd@FreeBSD.org>
# $FreeBSD$
PORTNAME= apache-ant
PORTVERSION= 1.9.4
CATEGORIES= devel java
MASTER_SITES= APACHE/ant/binaries/:bin \
LOCAL/hq: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
LICENSE= APACHE20
OPTIONS_DEFINE= DOCS
ANT_DISTFILE= ${PORTNAME}-${PORTVERSION}-bin.tar.bz2
MANPAGE_DISTFILE= ${PORTNAME}-manpage-${MANPAGE_VERSION}.tgz
MANPAGE_VERSION= 20030908
USES= tar:bzip2
USE_JAVA= yes
NO_BUILD= YES
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
READMES= LICENSE README WHATSNEW
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
DISTFILES+= ${PORTNAME}-${PORTVERSION}-manual.tar.bz2:doc
MASTER_SITES+= APACHE/ant/manual/:doc
PORTDOCS= *
.endif
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MANPAGE_SUBDIR= apache-ant-manpage
MANPAGE_WRKSRC= ${WRKSRC}/${MANPAGE_SUBDIR}
SUB_FILES= ant.sh
post-extract:
@${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${MANPAGE_DISTFILE}
do-install:
@${ECHO_MSG} -n ">> Installing scripts..."
@${MKDIR} ${STAGEDIR}${DATADIR}/bin
@${INSTALL_SCRIPT} ${WRKDIR}/ant.sh ${STAGEDIR}${PREFIX}/bin/ant
@${INSTALL_SCRIPT} ${WRKSRC}/bin/antRun ${STAGEDIR}${DATADIR}/bin/
@${ECHO_MSG} " [ DONE ]"
.for d in etc lib
@${ECHO_MSG} -n ">> Installing data directory '${d}'..."
@cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR}/
@${ECHO_MSG} " [ DONE ]"
.endfor
@${ECHO_MSG} -n ">> Installing manpages..."
@${INSTALL_MAN} ${MANPAGE_WRKSRC}/ant.1 ${STAGEDIR}${PREFIX}/man/man1
@${INSTALL_MAN} ${MANPAGE_WRKSRC}/build.xml.5 ${STAGEDIR}${PREFIX}/man/man5
@${ECHO_MSG} " [ DONE ]"
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${ECHO_MSG} -n ">> Installing readme files..."
@${INSTALL_DATA} ${READMES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} -n ">> Installing documentation files..."
@cd ${WRKSRC} && ${COPYTREE_SHARE} manual ${STAGEDIR}${DOCSDIR}/
@${ECHO_MSG} " [ DONE ]"
.endif
.include <bsd.port.mk>