# $NetBSD: Makefile,v 1.1 2002/05/14 18:00:56 jschauma Exp $ # MASTER_SITES is very special, and must end in "=": DISTNAME= j2re-1_4_0-linux-i386 PKGNAME= sun-jre-1.4.0 CATEGORIES= lang MASTER_SITES= http://java.sun.com/Download4?config-file=j2re-1_4_0.config&platform=linux-i386&protocol=HTTP+download&download-name= EXTRACT_SUFX= .bin MAINTAINER= jschauma@netbsd.org HOMEPAGE= http://java.sun.com/ COMMENT= Sun's Java(tm) Runtime Environment 1.4.0 CONFLICTS= jdk-[0-9]* blackdown-j* sun-jre-1.3* sun-jdk-1.3* FETCH_BEFORE_ARGS=-o ${DISTNAME}${EXTRACT_SUFX} EXTRACT_CMD= ${ECHO} yes | ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} >/dev/null WRKSRC= ${WRKDIR}/j2re1.4.0 LICENSE= jdk13-license RESTRICTED= "Redistribution of repackaged binaries not permitted" NO_SRC_ON_CDROM=${RESTRICTED} NO_SRC_ON_FTP= ${RESTRICTED} NO_BIN_ON_CDROM=${RESTRICTED} NO_BIN_ON_FTP= ${RESTRICTED} .include "../../mk/bsd.prefs.mk" # Needs to be after bsd.prefs.mk .if ${OPSYS} != "Linux" DEPENDS+= suse_compat-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_compat DEPENDS+= suse_x11-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_x11 .endif .if !defined(JDK_HOME) JDK_HOME:= ${LOCALBASE}/java .endif # since we change PREFIX: NO_MTREE= yes ONLY_FOR_PLATFORM= NetBSD-1.5Z[A-Z]-i386 NetBSD-1.[6-9]*-i386 Linux-*-i[3-6]86 LDD= ${TRUE} post-fetch: @${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} post-patch: @${FIND} ${WRKSRC} -name '*.orig' -print | ${XARGS} ${RM} -f do-build: ${SED} -e "s,@PREFIX@,${PREFIX}," ${FILESDIR}/wrap.sh >${WRKDIR}/java # This is ugly. The chown should happen after copying, or tar should have # a way to override permissions. do-install: ${INSTALL_PROGRAM_DIR} ${PREFIX} ${PREFIX}/jre ${INSTALL_PROGRAM_DIR} ${PREFIX} ${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKDIR}/java ${PREFIX}/bin/java ${CHOWN} -hR ${BINOWN}:${BINGRP} ${WRKSRC} ${GTAR} -C ${WRKSRC} -cf- . | ${GTAR} -C ${PREFIX}/jre -xpf- .include "../../emulators/suse_linux/Makefile.application" # These need to be after bsd.pkg.mk .if ${OPSYS} == "Linux" # No patches on linux PATCHDIR= ${WRKDIR}/.patches pre-patch: ${MKDIR} ${PATCHDIR} .endif PREFIX:= ${JDK_HOME}