summaryrefslogtreecommitdiff
path: root/lang/sun-jre15
diff options
context:
space:
mode:
authordillo <dillo>2005-08-13 11:25:14 +0000
committerdillo <dillo>2005-08-13 11:25:14 +0000
commit6e34569b92f8d83425a7fa605bdabcd8a33a30cf (patch)
tree25b7ba25a40d741e4a51b1a5066658b858360433 /lang/sun-jre15
parent0c74939a50f2441d17ff557194465f6e9b2462c3 (diff)
downloadpkgsrc-6e34569b92f8d83425a7fa605bdabcd8a33a30cf.tar.gz
Convert sun-jre14 and sun-jre15 to use the options framework.
Diffstat (limited to 'lang/sun-jre15')
-rw-r--r--lang/sun-jre15/Makefile14
1 files changed, 9 insertions, 5 deletions
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