summaryrefslogtreecommitdiff
path: root/lang/sun-jre14/Makefile
diff options
context:
space:
mode:
authordillo <dillo>2005-08-13 11:25:14 +0000
committerdillo <dillo>2005-08-13 11:25:14 +0000
commit92ae0fbbbf60e3a12777ce975bd79e4019e78dda (patch)
tree25b7ba25a40d741e4a51b1a5066658b858360433 /lang/sun-jre14/Makefile
parentca216a10f84bd0be261e97763de7346c52ee5b98 (diff)
downloadpkgsrc-92ae0fbbbf60e3a12777ce975bd79e4019e78dda.tar.gz
Convert sun-jre14 and sun-jre15 to use the options framework.
Diffstat (limited to 'lang/sun-jre14/Makefile')
-rw-r--r--lang/sun-jre14/Makefile14
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