openbsd-ports/www/hotjava/Makefile

64 lines
1.8 KiB
Makefile
Raw Normal View History

# $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;;
2001-01-05 11:35:58 -05:00
HOMEPAGE= http://java.sun.com/products/hotjava/
BUILD_DEPENDS= ${LOCALBASE}/${JAR}::devel/jdk/1.1
RUN_DEPENDS= ${LOCALBASE}/${JAVA}::devel/jdk/1.1
2001-01-05 11:35:58 -05:00
MAINTAINER= Chris Cappuccio <chris@openbsd.org>
PERMIT_PACKAGE_CDROM= No
PERMIT_PACKAGE_FTP= No
PERMIT_DISTFILES_CDROM= No
PERMIT_DISTFILES_FTP= No
2001-01-05 11:35:58 -05:00
JDK= jdk1.1.8
JAR= ${JDK}/bin/jar
JAVA= ${JDK}/bin/java
NO_BUILD= Yes
2001-01-05 11:35:58 -05:00
WRKDIST= ${WRKDIR}
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
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 \
2000-09-12 11:12:53 -04:00
sunw.hotjava.Main -Dhotjava.home=${TRUEPREFIX}/share/java/HotJava $$@' \
>>${PREFIX}/bin/hotjava
@chmod a+rx ${PREFIX}/bin/hotjava
.include <bsd.port.mk>