72 lines
2.2 KiB
Text
72 lines
2.2 KiB
Text
# $NetBSD: Makefile.common,v 1.13 2006/06/08 21:21:21 rillig Exp $
|
|
|
|
CATEGORIES= lang java
|
|
COMMENT= Sun's Java(tm) 2 Standard Edition, ${DOWNLOAD_NAME}
|
|
EXTRACT_SUFX= .bin
|
|
|
|
MAINTAINER= tv@NetBSD.org
|
|
HOMEPAGE= http://java.sun.com/
|
|
DOWNLOAD= http://java.sun.com/j2se/1.5.0/download.html
|
|
DOWNLOAD_NAME= ${SHORT_NAME} 5.0 Update ${PKGNAME_NOREV:C/^.*\.//}
|
|
ARCHIVE= http://java.sun.com/products/archive/index.html
|
|
|
|
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}
|
|
|
|
INTERACTIVE_STAGE= fetch
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
JAVA_HOME= ${LOCALBASE}/java/sun-1.5
|
|
JAVA_NAME= sun15
|
|
JAVA_UNLIMIT= datasize
|
|
|
|
MESSAGE_SUBST+= JAVA_HOME=${JAVA_HOME:Q}
|
|
|
|
# the following forces compression of jarfiles, which is a huge disk
|
|
# space win and trivial to no speed reduction in the face of the
|
|
# new class sharing in J2SE 5.0... -tvierling
|
|
EXTRACT_ENV+= UNPACK200_FLAGS=-Htrue
|
|
|
|
NO_MTREE= yes # since we change PREFIX
|
|
LDD= ${TRUE}
|
|
|
|
.include "../../emulators/suse_linux/Makefile.application"
|
|
|
|
.if !defined(USE_NATIVE_LINUX)
|
|
ONLY_FOR_PLATFORM= *-*-i386
|
|
. if ${SUSE_DIR_PREFIX} == "suse91"
|
|
DEPENDS+= suse_locale-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_locale
|
|
. endif
|
|
DEPENDS+= suse_compat-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_compat
|
|
DEPENDS+= suse_x11-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_x11
|
|
.endif
|
|
|
|
FETCH_MESSAGE+= " The file ${DISTNAME}${EXTRACT_SUFX} containing ${DOWNLOAD_NAME}"
|
|
FETCH_MESSAGE+= ""
|
|
FETCH_MESSAGE+= " must be fetched into:"
|
|
FETCH_MESSAGE+= " ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}"
|
|
FETCH_MESSAGE+= " from:"
|
|
FETCH_MESSAGE+= " ${DOWNLOAD}"
|
|
FETCH_MESSAGE+= " or ${ARCHIVE}"
|
|
FETCH_MESSAGE+= ""
|
|
FETCH_MESSAGE+= " Click 'Download ${DOWNLOAD_NAME}', read and accept the"
|
|
FETCH_MESSAGE+= " license, then choose 'Linux self-extracting file'."
|
|
|
|
post-fetch:
|
|
@if [ ! -x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
|
|
${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}; \
|
|
fi
|
|
|
|
do-build: # nothing
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM_DIR} ${JAVA_HOME}
|
|
cd ${WRKSRC} && ${PAX} -rwp ma . ${JAVA_HOME}
|
|
|
|
.include "../../mk/java-env.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|