summaryrefslogtreecommitdiff
path: root/devel/jakarta-ant/Makefile
blob: c22fc36cb3151310ac5e940b29b9661cc214e4e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# $NetBSD: Makefile,v 1.13 2002/10/18 21:05:28 jlam Exp $
#
# NOTE: if you are depending on ant from another package, please be aware that
# the ant team has CHANGED the version numbering scheme.  A previous version
# of ant was 3.1.  Do NOT use dependency patterns such as >=1.3 which could pick
# up this version by mistake.

DISTNAME=	${PKGNAME}-src
PKGNAME=	jakarta-ant-1.4.1
CATEGORIES=	devel
MASTER_SITES=	http://jakarta.apache.org/builds/jakarta-ant/release/v1.4.1/src/

MAINTAINER=	jwise@netbsd.org
HOMEPAGE=	http://jakarta.apache.org/
COMMENT=	Apache Project's Java-Based make(1) replacement

DEPENDS+=	crimson>=1.1.3:../../textproc/crimson

USE_BUILDLINK2=	# defined
USE_JAVA=	# defined

WRKSRC=		${WRKDIR}/${PKGNAME}

post-extract:
	@${RM} ${WRKSRC}/lib/*.jar

do-build:
	${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD} cd ${WRKSRC} && ${SETENV} ${SCRIPTS_ENV} ${SH} bootstrap.sh

post-build:
	${SED}	-e 's,@PREFIX@,${PREFIX},g'				\
		-e 's,@JAVA_HOME@,${PKG_JAVA_HOME},g'			\
		< ${FILESDIR}/ant > ${WRKDIR}/ant

do-install:
	${INSTALL_SCRIPT} ${WRKDIR}/ant ${PREFIX}/bin
	${INSTALL_SCRIPT} ${FILESDIR}/antRun ${PREFIX}/bin
	${INSTALL_DATA_DIR} ${PREFIX}/lib/java
	${INSTALL_DATA} ${WRKSRC}/build/lib/ant.jar ${PREFIX}/lib/java
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/java/ant
	cd ${WRKSRC}/docs && ${PAX} -rwpp * ${PREFIX}/share/doc/java/ant
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/java/ant
	${INSTALL_DATA} ${WRKSRC}/WHATSNEW ${PREFIX}/share/doc/java/ant

.include "../../mk/java.mk"
.include "../../mk/bsd.pkg.mk"

CLASSPATH:=	${CLASSPATH}:${LOCALBASE}/lib/java/crimson.jar