blob: c9dda157e41ea45556c4eae98b7f079b0b1d7487 (
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
|
# $NetBSD: Makefile,v 1.1.1.1 2000/07/03 03:50:11 jwise Exp $
DISTNAME= jakarta-ant
PKGNAME= jakarta-ant-3.1
CATEGORIES= devel
MASTER_SITES= http://jakarta.apache.org/builds/ant/release/v3.1/src/
MAINTAINER= jwise@netbsd.org
HOMEPAGE= http://jakarta.apache.org/
DIST_SUBDIR= jakarta-3.1
USE_JAVA= yes
WRKSRC= ${WRKDIR}/jakarta-ant
do-build:
cd ${WRKSRC} && ${SH} bootstrap.sh
post-build:
${SED} -e 's,@PREFIX@,${PREFIX},g' -e 's,@JAVA_HOME@,${JAVA_HOME},g' \
< ${WRKSRC}/bin/ant > ${WRKSRC}/bin/ant.tmp
${MV} ${WRKSRC}/bin/ant.tmp ${WRKSRC}/bin/ant
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/ant ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/antRun ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/lib/xml.jar ${PREFIX}/lib/java
${INSTALL_DATA} ${WRKSRC}/lib/ant.jar ${PREFIX}/lib/java
${MKDIR} ${PREFIX}/share/doc/java/ant
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/java/ant
${INSTALL_DATA} ${WRKSRC}/docs/index.html ${PREFIX}/share/doc/java/ant
.include "../../mk/bsd.pkg.mk"
|