diff options
Diffstat (limited to 'lang/sun-jre6/Makefile')
-rw-r--r-- | lang/sun-jre6/Makefile | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/lang/sun-jre6/Makefile b/lang/sun-jre6/Makefile new file mode 100644 index 00000000000..78d04d54ce7 --- /dev/null +++ b/lang/sun-jre6/Makefile @@ -0,0 +1,82 @@ +# $NetBSD: Makefile,v 1.1 2007/02/18 19:11:27 tv Exp $ + +# Note: Regen distinfo with PKG_DEFAULT_OPTIONS+=sun-jre-jce + +DISTNAME= jre-6-linux-${DIST_ARCH} +PKGNAME= sun-jre6-6.0 +MASTER_SITES= # empty + +SHORT_NAME= JRE + +WRKSRC= ${WRKDIR}/jre1.6.0 +JAVA_WRAPPERS= java javaws keytool orbd policytool rmid rmiregistry \ + servertool tnameserv +REQD_DIRS= ${JAVA_HOME} +REQD_DIRS+= ${JAVA_HOME}/lib +REQD_DIRS+= ${JAVA_HOME}/lib/applet +REQD_DIRS+= ${JAVA_HOME}/lib/images +REQD_DIRS+= ${JAVA_HOME}/lib/images/cursors +REQD_DIRS+= ${JAVA_HOME}/lib/security +CONF_FILES= # empty +.include "../../mk/bsd.prefs.mk" + +.if ${MACHINE_ARCH} == "i386" +DIST_ARCH= i586 +.sinclude "sfiles-i386.mk" +.endif + +.for FILE in ${SFILES} +CONF_FILES+= ${JAVA_HOME}/lib/${FILE}.default ${JAVA_HOME}/lib/${FILE} +.endfor + +PKG_OPTIONS_VAR= PKG_OPTIONS.sun-jre6 +PKG_SUPPORTED_OPTIONS= sun-jre-jce + +.include "../../mk/bsd.options.mk" + +HEADER_TEMPLATES+= ${WRKDIR}/HEADER.tmpl +INSTALL_TEMPLATES+= ${PKGDIR}/INSTALL.tmpl +DEINSTALL_TEMPLATES+= ${PKGDIR}/DEINSTALL.tmpl +FILES_SUBST+= JAVA_HOME=${JAVA_HOME:Q} +FILES_SUBST+= MACHINE_ARCH=${MACHINE_ARCH:Q} + +CHECK_FILES_SKIP+= ${JAVA_HOME}/lib/${MACHINE_ARCH}/client/classes.jsa + +.if !empty(PKG_OPTIONS:Msun-jre-jce) +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} jce_policy-6.zip +PLIST_SUBST+= SUN_JRE6_USE_JCE="" +.else +PLIST_SUBST+= SUN_JRE6_USE_JCE="@comment " +.endif + +post-extract: + ${MKDIR} ${WRKSRC}/.systemPrefs + ${TOUCH} ${WRKSRC}/.systemPrefs/.system.lock + ${TOUCH} ${WRKSRC}/.systemPrefs/.systemRootModFile + +do-configure: + cd ${WRKSRC}/lib; for file in ${SFILES}; do \ + ${MV} -f $$file $$file.default; \ + done + @${ECHO} 'CONF_FILES="${CONF_FILES}"' >${WRKDIR}/HEADER.tmpl + +pre-install: +.if !empty(PKG_OPTIONS:Msun-jre-jce) + cd ${WRKDIR}/jce ; ${PAX} -rw -pe -v . ${WRKSRC}/lib/security +.endif + +# +# re-create sfiles.mk from properties and config files +# +makesfiles: + ${ECHO} > sfiles-${MACHINE_ARCH}.mk '# $$Net''BSD$$' + ${ECHO} >> sfiles-${MACHINE_ARCH}.mk '#' + ${ECHO} >> sfiles-${MACHINE_ARCH}.mk '# Created with "make makesfiles"' + ${ECHO} >> sfiles-${MACHINE_ARCH}.mk '# Do not edit this file manually!' + ${ECHO} >> sfiles-${MACHINE_ARCH}.mk '#' + cd ${WRKSRC}/lib && ${FIND} * -name fontconfig.\* -o \ + -name \*.properties -o -name \*.properties.\?\? -o \ + -name \*.cfg -o -name \*.security | \ + ${SED} 's/^/SFILES+= /' >> ${PKGDIR}/sfiles-${MACHINE_ARCH}.mk + +.include "../../lang/sun-jre6/Makefile.common" |