c5c0cbe0bd
- become MAINTAINER for jdk 1.1 and 1.2 (ok MAINTAINERs) - add jdk 1.3
64 lines
1.8 KiB
Makefile
64 lines
1.8 KiB
Makefile
# $OpenBSD: Makefile,v 1.13 2001/05/08 00:54:37 matt Exp $
|
|
# $FreeBSD: ports/www/hotjava/Makefile,v 1.4 2000/02/16 00:19:45 mharo Exp $
|
|
|
|
COMMENT= "Sun's Hotjava web browser"
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
DISTNAME= hotjava-3.0
|
|
CATEGORIES= www
|
|
NEED_VERSION= 1.402
|
|
MASTER_SITES=
|
|
DISTFILES= hjb3_0-linux.sfx
|
|
|
|
EXTRACT_CASES=*.sfx) uudecode ${FULLDISTDIR}/$$archive;;
|
|
|
|
HOMEPAGE= http://java.sun.com/products/hotjava/
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/${JAR}::devel/jdk/1.1
|
|
RUN_DEPENDS= ${LOCALBASE}/${JAVA}::devel/jdk/1.1
|
|
|
|
MAINTAINER= Chris Cappuccio <chris@openbsd.org>
|
|
|
|
PERMIT_PACKAGE_CDROM= No
|
|
PERMIT_PACKAGE_FTP= No
|
|
PERMIT_DISTFILES_CDROM= No
|
|
PERMIT_DISTFILES_FTP= No
|
|
|
|
JDK= jdk1.1.8
|
|
JAR= ${JDK}/bin/jar
|
|
JAVA= ${JDK}/bin/java
|
|
|
|
NO_BUILD= Yes
|
|
|
|
WRKDIST= ${WRKDIR}
|
|
|
|
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
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/java/HotJava
|
|
@cd ${PREFIX}/share/java/HotJava && \
|
|
${TRUEPREFIX}/${JAR} xf ${WRKDIST}/hjb3_0.jar
|
|
@cd ${PREFIX}/share/java/HotJava && chmod -R a+rX *
|
|
@echo '#! /bin/sh' >${PREFIX}/bin/hotjava
|
|
@echo 'exec ${TRUEPREFIX}/${JAVA} -classpath \
|
|
${TRUEPREFIX}/${JDK}/lib/classes.zip:${TRUEPREFIX}/share/java/HotJava/Browser.jar \
|
|
sunw.hotjava.Main -Dhotjava.home=${TRUEPREFIX}/share/java/HotJava $$@' \
|
|
>>${PREFIX}/bin/hotjava
|
|
@chmod a+rx ${PREFIX}/bin/hotjava
|
|
|
|
.include <bsd.port.mk>
|