pkgsrc/lang/sun-jre14/Makefile.common
2006-10-18 12:53:54 +00:00

80 lines
2.1 KiB
Text

# $NetBSD: Makefile.common,v 1.33 2006/10/18 12:53:54 obache Exp $
CATEGORIES= lang java
EXTRACT_SUFX= .bin
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://java.sun.com/
DOWNLOAD= http://java.sun.com/j2se/1.4.2/download.html
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.4
JAVA_NAME= sun14
JAVA_UNLIMIT= datasize
MESSAGE_SUBST+= JAVA_HOME="${JAVA_HOME}"
NO_MTREE= yes # since we change PREFIX
LDD= ${TRUE}
ONLY_FOR_PLATFORM= *-*-i386
.include "../../emulators/suse_linux/Makefile.application"
.if !defined(USE_NATIVE_LINUX)
. 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:" \
" ${COMMENT}" \
"must be fetched into:" \
" {DISTDIR}" \
"from:" \
" ${DOWNLOAD}" \
" or ${ARCHIVE}" \
"" \
"Click 'Download J2SE ${SHORT}', read and accept the" \
"license, then choose 'Linux self-extracting file'." \
${END_MESSAGE}
EXTRACT_ENV+= HOME=${WRKDIR}/fake_home
.if !empty(PKG_OPTIONS:Msun-jre-jce)
END_MESSAGE= \
"" \
"The file jce_policy-1_4_2.zip must be fetched into:" \
" ${DISTDIR}/jce_policy-1_4_2.zip" \
""
"Under 'Other Downloads' / 'Java Cryptography Extension'" \
"click 'Download' and choose the .zip file."
.endif
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"