summaryrefslogtreecommitdiff
path: root/www/jakarta-servletapi/Makefile
blob: 3969cf2bf483e8d0c3bc08683f358cbd34a47232 (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
# $NetBSD: Makefile,v 1.10 2002/12/26 22:42:31 jlam Exp $

DISTNAME=	jakarta-servletapi-${TOMCAT_VERSION}-src
PKGNAME=	${DISTNAME:S/-src$//}
TOMCAT_VERSION=	3.2.4
CATEGORIES=	www
MASTER_SITES=	http://jakarta.apache.org/builds/jakarta-tomcat/release/v${TOMCAT_VERSION}/src/

MAINTAINER=	jwise@netbsd.org
HOMEPAGE=	http://jakarta.apache.org/
COMMENT=	the Apache project's implementation of the JSP and Java Servlet APIs

BUILD_DEPENDS+=	jakarta-ant>=1.4.1:../../devel/jakarta-ant

USE_BUILDLINK2=	# defined
MAKEFILE=	build.xml
PLIST_SRC=	${PKGDIR}/PLIST ${WRKDIR}/PLIST.javadoc

WRKSRC=		${WRKDIR}/${DISTNAME}
DOCDIR=		share/doc/java/jakarta-servletapi

post-build:
	${RM} -f ${WRKDIR}/PLIST.javadoc
	( cd ${WRKDIR}/dist/servletapi/docs;				\
	  ${FIND} * -type f -print | ${SORT}				\
		| ${SED} 's:^:${DOCDIR}/:';				\
	  ${FIND} * -type d -print | ${SORT} -r				\
		| ${SED} 's:^:@dirrm ${DOCDIR}/:';			\
	  ${ECHO} '@dirrm ${DOCDIR}'					\
	) > ${WRKDIR}/PLIST.javadoc

do-install:
	${INSTALL_DATA} ${WRKDIR}/dist/servletapi/lib/servlet.jar	\
		${PREFIX}/lib/java
	${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/${DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/${DOCDIR}
	cd ${WRKDIR}/dist/servletapi/docs && ${PAX} -rwpp . ${PREFIX}/${DOCDIR}

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

MAKE_PROGRAM=	${LOCALBASE}/bin/ant
MAKE_FLAGS=