summaryrefslogtreecommitdiff
path: root/www/jsdk20/Makefile
blob: 4c449f2284b3824de6e6ea479375a3bddbac7cb2 (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
49
# $NetBSD: Makefile,v 1.2 2000/01/14 17:30:16 jwise Exp $
# STOP!  Don't update this to a later version of this software.
# The JSDK and Apache Jakarta projects have merged, making the
# jakarta-tomcat package the current version of this software.
# This version exists in pkgsrc strictly to support Apache's
# mod_jserv, which will not build with newer (or older) versions.

DISTNAME=	jsdk20-solaris2-sparc
PKGNAME=	jsdk-2.0
CATEGORIES=	www
MASTER_SITES=	# none
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	jwise@netbsd.org
HOMEPAGE=	http://java.sun.com/products/servlet/index.html

USE_JAVA=	yes

WRKSRC=		${WRKDIR}/JSDK2.0
BUILD_DEFS+=    JSDK_HOME
NO_PATCH=
NO_CONFIGURE=
NO_BUILD=
NO_MTREE=
RESTRICTED=	"Read license before redistributing the Java(tm) Servlet Development Kit"
NO_CDROM=	${RESTRICTED}

.include "../../mk/bsd.prefs.mk"

JSDK_HOME?=	${JAVA_HOME}/jsdk

do-fetch:
	@if [ ! -f ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
	    ${ECHO_MSG} "==============================================================="; \
	    ${ECHO_MSG} "    For licensing reasons, the JSDK 2.0 distribution must be"; \
	    ${ECHO_MSG} "    fetched manually into \"${DISTDIR}/${DIST_SUBDIR}\" from"; \
	    ${ECHO_MSG} "    http://java.sun.com/products/servlet/download.html"; \
	    ${ECHO_MSG} "==============================================================="; \
	    ${FALSE}; \
	fi

do-install:
	${MKDIR} ${JSDK_HOME}
	cd ${WRKSRC} ; ${GTAR} pcf - . | ( cd ${JSDK_HOME} ; ${GTAR} pvxf - )

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

# This needs to be after bsd.pkg.mk 
PREFIX:=        ${JSDK_HOME}