diff options
author | dillo <dillo> | 2005-08-13 11:25:14 +0000 |
---|---|---|
committer | dillo <dillo> | 2005-08-13 11:25:14 +0000 |
commit | 6e34569b92f8d83425a7fa605bdabcd8a33a30cf (patch) | |
tree | 25b7ba25a40d741e4a51b1a5066658b858360433 | |
parent | 0c74939a50f2441d17ff557194465f6e9b2462c3 (diff) | |
download | pkgsrc-6e34569b92f8d83425a7fa605bdabcd8a33a30cf.tar.gz |
Convert sun-jre14 and sun-jre15 to use the options framework.
-rw-r--r-- | lang/sun-jre14/Makefile | 14 | ||||
-rw-r--r-- | lang/sun-jre15/Makefile | 14 | ||||
-rw-r--r-- | mk/defaults/mk.conf | 14 | ||||
-rw-r--r-- | mk/defaults/options.description | 1 |
4 files changed, 20 insertions, 23 deletions
diff --git a/lang/sun-jre14/Makefile b/lang/sun-jre14/Makefile index 9c1b1aa8387..a5899f2751f 100644 --- a/lang/sun-jre14/Makefile +++ b/lang/sun-jre14/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 2005/04/18 15:39:04 jschauma Exp $ +# $NetBSD: Makefile,v 1.25 2005/08/13 11:25:14 dillo Exp $ # Note: Regen distinfo with SUN_JRE14_USE_JCE=YES @@ -34,12 +34,16 @@ SUPPORT_FILES= # empty SUPPORT_FILES+= ${JAVA_HOME}/lib/${FILE}.default ${JAVA_HOME}/lib/${FILE} .endfor -.include "../../mk/bsd.prefs.mk" +PKG_OPTIONS_VAR= PKG_OPTIONS.sun-jre14 +PKG_SUPPORTED_OPTIONS= sun-jre-jce +# can be removed after 2005Q3 +PKG_OPTIONS_LEGACY_VARS=SUN_JRE14_USE_JCE:sun-jre-jce + +.include "../../mk/bsd.options.mk" -BUILD_DEFS+= SUN_JRE14_USE_JCE PLIST_SRC= ${WRKDIR}/PLIST -.if !empty(SUN_JRE14_USE_JCE:M[Yy][Ee][Ss]) +.if !empty(PKG_OPTIONS:Msun-jre-jce) DISTFILES= ${DISTNAME}${EXTRACT_SUFX} jce_policy-1_4_2.zip .endif @@ -47,7 +51,7 @@ do-configure: cd ${WRKSRC}/lib; for file in ${SFILES}; do \ ${MV} -f $$file $$file.default; \ done -.if !empty(SUN_JRE14_USE_JCE:M[Yy][Ee][Ss]) +.if !empty(PKG_OPTIONS:Msun-jre-jce) cd ${WRKDIR}/jce ; pax -rw -pe -v . ${WRKSRC}/lib/security ${SED} 's/@SUN_JRE14_USE_JCE@//' ${PKGDIR}/PLIST > ${PLIST_SRC} .else diff --git a/lang/sun-jre15/Makefile b/lang/sun-jre15/Makefile index 60e5ea26445..93def35f443 100644 --- a/lang/sun-jre15/Makefile +++ b/lang/sun-jre15/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2005/07/21 18:23:16 tv Exp $ +# $NetBSD: Makefile,v 1.16 2005/08/13 11:25:14 dillo Exp $ # Note: Regen distinfo with SUN_JRE15_USE_JCE=YES @@ -26,7 +26,12 @@ SUPPORT_FILES= # empty SUPPORT_FILES+= ${JAVA_HOME}/lib/${FILE}.default ${JAVA_HOME}/lib/${FILE} .endfor -.include "../../mk/bsd.prefs.mk" +PKG_OPTIONS_VAR= PKG_OPTIONS.sun-jre15 +PKG_SUPPORTED_OPTIONS= sun-jre-jce +# can be removed after 2005Q3 +PKG_OPTIONS_LEGACY_VARS=SUN_JRE15_USE_JCE:sun-jre-jce + +.include "../../mk/bsd.options.mk" HEADER_EXTRA_TMPL= ${WRKDIR}/HEADER.tmpl INSTALL_EXTRA_TMPL= ${PKGDIR}/INSTALL.tmpl @@ -34,10 +39,9 @@ DEINSTALL_EXTRA_TMPL= ${PKGDIR}/DEINSTALL.tmpl FILES_SUBST+= JAVA_HOME=${JAVA_HOME:Q} FILES_SUBST+= MACHINE_ARCH=${MACHINE_ARCH:Q} -BUILD_DEFS+= SUN_JRE15_USE_JCE PLIST_SRC= ${WRKDIR}/PLIST -.if !empty(SUN_JRE15_USE_JCE:M[Yy][Ee][Ss]) +.if !empty(PKG_OPTIONS:Msun-jre-jce) DISTFILES= ${DISTNAME}${EXTRACT_SUFX} jce_policy-1_5_0.zip .endif @@ -51,7 +55,7 @@ do-configure: ${MV} -f $$file $$file.default; \ done @${ECHO} 'SUPPORT_FILES="${SUPPORT_FILES}"' >${HEADER_EXTRA_TMPL} -.if !empty(SUN_JRE15_USE_JCE:M[Yy][Ee][Ss]) +.if !empty(PKG_OPTIONS:Msun-jre-jce) cd ${WRKDIR}/jce ; pax -rw -pe -v . ${WRKSRC}/lib/security ${SED} 's/@SUN_JRE15_USE_JCE@//' ${PKGDIR}/PLIST > ${PLIST_SRC} .else diff --git a/mk/defaults/mk.conf b/mk/defaults/mk.conf index b42439edf53..f9ab415b7d8 100644 --- a/mk/defaults/mk.conf +++ b/mk/defaults/mk.conf @@ -1,4 +1,4 @@ -# $NetBSD: mk.conf,v 1.77 2005/08/07 16:37:11 wiz Exp $ +# $NetBSD: mk.conf,v 1.78 2005/08/13 11:25:14 dillo Exp $ # # A file providing defaults for pkgsrc and the packages collection. @@ -1728,18 +1728,6 @@ SSYNC_PAWD?= pwd # Possible: pawd, pwd # Default: pwd -SUN_JRE14_USE_JCE?= NO -# Whether to include the Java Cryptography Extension (JCE) Unlimited Strength -# Jurisdiction Policy Files in the sun-jre14 package -# Possible: YES or NO. -# Default: NO - -SUN_JRE15_USE_JCE?= NO -# Whether to include the Java Cryptography Extension (JCE) Unlimited Strength -# Jurisdiction Policy Files in the sun-jre15 package -# Possible: YES or NO. -# Default: NO - .if empty(MACHINE_PLATFORM:MNetBSD-1*-*) SUSE_PREFER?= 9.1 .else diff --git a/mk/defaults/options.description b/mk/defaults/options.description index a9269709067..0884ec54300 100644 --- a/mk/defaults/options.description +++ b/mk/defaults/options.description @@ -237,6 +237,7 @@ starttls Enable TLS support. static subshell suexec +sun-jre-jce Use unlimited strength cryptograpy extension. svn syncdir Force synchronous link() and related syscalls. tcpd |