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 /lang/sun-jre14 | |
parent | 0c74939a50f2441d17ff557194465f6e9b2462c3 (diff) | |
download | pkgsrc-6e34569b92f8d83425a7fa605bdabcd8a33a30cf.tar.gz |
Convert sun-jre14 and sun-jre15 to use the options framework.
Diffstat (limited to 'lang/sun-jre14')
-rw-r--r-- | lang/sun-jre14/Makefile | 14 |
1 files changed, 9 insertions, 5 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 |