2001-05-07 20:54:36 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.13 2001/05/08 00:54:37 matt Exp $
|
2000-03-29 22:40:25 -05:00
|
|
|
# $FreeBSD: ports/www/hotjava/Makefile,v 1.4 2000/02/16 00:19:45 mharo Exp $
|
|
|
|
|
2001-05-06 00:22:45 -04:00
|
|
|
COMMENT= "Sun's Hotjava web browser"
|
|
|
|
|
2001-03-02 11:04:49 -05:00
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
2000-09-12 08:00:59 -04:00
|
|
|
DISTNAME= hotjava-3.0
|
2000-03-29 22:40:25 -05:00
|
|
|
CATEGORIES= www
|
2001-05-06 00:22:45 -04:00
|
|
|
NEED_VERSION= 1.402
|
2000-03-29 22:40:25 -05:00
|
|
|
MASTER_SITES=
|
2000-09-12 08:00:59 -04:00
|
|
|
DISTFILES= hjb3_0-linux.sfx
|
|
|
|
|
|
|
|
EXTRACT_CASES=*.sfx) uudecode ${FULLDISTDIR}/$$archive;;
|
2000-03-29 22:40:25 -05:00
|
|
|
|
2001-01-05 11:35:58 -05:00
|
|
|
HOMEPAGE= http://java.sun.com/products/hotjava/
|
2000-09-12 08:00:59 -04:00
|
|
|
|
2001-05-07 20:54:36 -04:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/${JAR}::devel/jdk/1.1
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/${JAVA}::devel/jdk/1.1
|
2000-03-29 22:40:25 -05:00
|
|
|
|
2001-01-05 11:35:58 -05:00
|
|
|
MAINTAINER= Chris Cappuccio <chris@openbsd.org>
|
|
|
|
|
2000-03-30 04:27:02 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= No
|
|
|
|
PERMIT_PACKAGE_FTP= No
|
|
|
|
PERMIT_DISTFILES_CDROM= No
|
|
|
|
PERMIT_DISTFILES_FTP= No
|
2000-03-29 22:40:25 -05:00
|
|
|
|
2001-01-05 11:35:58 -05:00
|
|
|
JDK= jdk1.1.8
|
|
|
|
JAR= ${JDK}/bin/jar
|
|
|
|
JAVA= ${JDK}/bin/java
|
|
|
|
|
|
|
|
NO_BUILD= Yes
|
2000-03-30 04:27:02 -05:00
|
|
|
|
2001-01-05 11:35:58 -05:00
|
|
|
WRKDIST= ${WRKDIR}
|
2000-03-29 22:40:25 -05:00
|
|
|
|
2000-03-30 01:51:28 -05:00
|
|
|
do-fetch:
|
|
|
|
@if [ ! -f ${DISTDIR}/${DISTFILES} ]; then \
|
|
|
|
echo "" ; \
|
|
|
|
echo " The source to this port may not be automatically fetched" ; \
|
|
|
|
echo " due to licensing restrictions. You must fetch the source" ; \
|
|
|
|
echo " manually, after reading and agreeing to the license at:" ; \
|
|
|
|
echo "" ; \
|
|
|
|
echo " http://java.sun.com/products/hotjava/" ; \
|
|
|
|
echo "" ; \
|
|
|
|
echo " Once ${DISTFILES} has been downloaded, move it to ${DISTDIR}"; \
|
|
|
|
echo " and then restart this build." ; \
|
|
|
|
echo "" ; \
|
|
|
|
exit 1 ; \
|
|
|
|
fi
|
2000-03-29 22:40:25 -05:00
|
|
|
|
|
|
|
do-install:
|
2000-09-12 08:00:59 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/java/HotJava
|
2001-03-02 11:04:49 -05:00
|
|
|
@cd ${PREFIX}/share/java/HotJava && \
|
2000-09-12 08:00:59 -04:00
|
|
|
${TRUEPREFIX}/${JAR} xf ${WRKDIST}/hjb3_0.jar
|
2001-03-02 11:04:49 -05:00
|
|
|
@cd ${PREFIX}/share/java/HotJava && chmod -R a+rX *
|
|
|
|
@echo '#! /bin/sh' >${PREFIX}/bin/hotjava
|
|
|
|
@echo 'exec ${TRUEPREFIX}/${JAVA} -classpath \
|
2000-09-12 08:00:59 -04:00
|
|
|
${TRUEPREFIX}/${JDK}/lib/classes.zip:${TRUEPREFIX}/share/java/HotJava/Browser.jar \
|
2000-09-12 11:12:53 -04:00
|
|
|
sunw.hotjava.Main -Dhotjava.home=${TRUEPREFIX}/share/java/HotJava $$@' \
|
2000-09-12 08:00:59 -04:00
|
|
|
>>${PREFIX}/bin/hotjava
|
2001-03-02 11:04:49 -05:00
|
|
|
@chmod a+rx ${PREFIX}/bin/hotjava
|
2000-03-29 22:40:25 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|