1999-06-23 15:05:40 +00:00
|
|
|
# New ports collection makefile for: Java Servlet Developpers Kit
|
|
|
|
# Date created: 1999/05/29
|
|
|
|
# Whom: Kensaku Masuda <greg@greg.rim.or.jp>
|
|
|
|
#
|
1999-08-25 06:16:32 +00:00
|
|
|
# $FreeBSD$
|
1999-06-23 15:05:40 +00:00
|
|
|
#
|
|
|
|
|
2000-04-12 06:21:15 +00:00
|
|
|
PORTNAME= jsdk
|
|
|
|
PORTVERSION= 2.0
|
2004-11-25 03:07:24 +00:00
|
|
|
PORTREVISION= 1
|
|
|
|
CATEGORIES= java devel
|
|
|
|
MASTER_SITES= #
|
2000-04-12 06:21:15 +00:00
|
|
|
DISTNAME= jsdk20-solaris2-sparc
|
1999-06-23 15:05:40 +00:00
|
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
|
|
|
|
MAINTAINER= greg@greg.rim.or.jp
|
2004-11-25 03:07:24 +00:00
|
|
|
COMMENT= Sun\'s Java Servlet Developers Kit
|
1999-06-23 15:05:40 +00:00
|
|
|
|
2004-11-25 03:07:24 +00:00
|
|
|
RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper
|
|
|
|
|
|
|
|
USE_JAVA= yes
|
|
|
|
NO_BUILD= yes
|
1999-06-23 15:05:40 +00:00
|
|
|
|
2006-09-03 01:54:59 +00:00
|
|
|
RESTRICTED= "Sun has a funky license for this software; no commercial use"
|
1999-06-23 15:05:40 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/JSDK2.0
|
|
|
|
|
2006-09-03 06:21:24 +00:00
|
|
|
.if defined(BATCH)
|
2001-03-13 11:21:25 +00:00
|
|
|
IGNORE= "Should be fetched manually"
|
|
|
|
.endif
|
|
|
|
|
2004-11-25 03:07:24 +00:00
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/jsdk.jar bin/servletrunner
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
OTHERDOCS= apidoc images servlet_tutorial.html
|
|
|
|
PORTDOCS= README ${OTHERDOCS}
|
|
|
|
.endif
|
|
|
|
|
1999-06-23 15:05:40 +00:00
|
|
|
do-fetch:
|
|
|
|
@if [ ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
|
2004-11-25 03:07:24 +00:00
|
|
|
${ECHO_MSG} "=========================================================="; \
|
|
|
|
${ECHO_MSG} " You must a fetch the Java Servlet Development Kit 2.0"; \
|
|
|
|
${ECHO_MSG} " (for Unix) archive from"; \
|
|
|
|
${ECHO_MSG} ""; \
|
|
|
|
${ECHO_MSG} " http://java.sun.com/products/servlet/archive.html"; \
|
|
|
|
${ECHO_MSG} ""; \
|
|
|
|
${ECHO_MSG} " And copy into ${DISTDIR}"; \
|
|
|
|
${ECHO_MSG} "=========================================================="; \
|
|
|
|
${FALSE}; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@${SED} \
|
|
|
|
-e 's,%%JAVAJARDIR%%,${JAVAJARDIR},g' \
|
|
|
|
-e 's,%%JAVA_CLASSES%%,${JAVA_CLASSES},g' \
|
|
|
|
-e 's,%%LOCALBASE%%,${LOCALBASE},g' \
|
|
|
|
${FILESDIR}/servletrunner > ${WRKSRC}/servletrunner
|
1999-06-30 22:04:56 +00:00
|
|
|
|
1999-06-23 15:05:40 +00:00
|
|
|
do-install:
|
2004-11-25 03:07:24 +00:00
|
|
|
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/jsdk.jar..."
|
|
|
|
@${MKDIR} ${JAVAJARDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/lib/jsdk.jar ${JAVAJARDIR}/
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
@${ECHO_MSG} -n ">> Installing script in ${PREFIX}/bin..."
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/servletrunner ${PREFIX}/bin
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${ECHO_MSG} -n ">> Installing samples in ${EXAMPLESDIR}/..."
|
|
|
|
@cd ${WRKSRC}/examples/ \
|
|
|
|
&& ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \; \
|
|
|
|
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \;
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..."
|
|
|
|
@cd ${WRKSRC}/doc/ \
|
|
|
|
&& ${FIND} ${OTHERDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
|
|
|
|
&& ${FIND} ${OTHERDOCS} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
post-install:
|
|
|
|
@${FIND} -s ${WRKSRC}/examples -not -type d \
|
|
|
|
| ${SED} -ne 's,^${WRKSRC}/examples,${EXAMPLESDIR:S,${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
|
|
@${FIND} -s -d ${WRKSRC}/examples -type d \
|
|
|
|
| ${SED} -ne 's,^${WRKSRC}/examples,@dirrm ${EXAMPLESDIR:S,${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
|
|
.endif
|
1999-06-23 15:05:40 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|