diff options
Diffstat (limited to 'lang/sun-jre15/Makefile')
-rw-r--r-- | lang/sun-jre15/Makefile | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/lang/sun-jre15/Makefile b/lang/sun-jre15/Makefile index 7e196a465f8..d4e787ba3b7 100644 --- a/lang/sun-jre15/Makefile +++ b/lang/sun-jre15/Makefile @@ -1,4 +1,6 @@ -# $NetBSD: Makefile,v 1.4 2004/10/06 01:42:34 tv Exp $ +# $NetBSD: Makefile,v 1.5 2004/10/06 16:44:52 tv Exp $ + +# Note: Regen distinfo with SUN_JRE15_USE_JCE=YES DISTNAME= jre-1_5_0-linux-i586 PKGNAME= sun-jre15-5.0 @@ -24,26 +26,31 @@ SUPPORT_FILES= # empty .for FILE in ${SFILES} SUPPORT_FILES+= ${JAVA_HOME}/lib/${FILE}.default ${JAVA_HOME}/lib/${FILE} .endfor +HEADER_EXTRA_TMPL=${WRKDIR}/HEADER.tmpl .include "../../mk/bsd.prefs.mk" -#BUILD_DEFS+= SUN_JRE15_USE_JCE # does not exist (yet?) -#PLIST_SRC= ${WRKDIR}/PLIST +BUILD_DEFS+= SUN_JRE15_USE_JCE +PLIST_SRC= ${WRKDIR}/PLIST -#.if !empty(SUN_JRE15_USE_JCE:M[Yy][Ee][Ss]) -#DISTFILES= ${DISTNAME}${EXTRACT_SUFX} jce_policy-1_5_0.zip -#.endif +.if !empty(SUN_JRE15_USE_JCE:M[Yy][Ee][Ss]) +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} jce_policy-1_5_0.zip +.endif do-configure: cd ${WRKSRC}/lib; for file in ${SFILES}; do \ ${MV} -f $$file $$file.default; \ done -#.if !empty(SUN_JRE15_USE_JCE:M[Yy][Ee][Ss]) -# cd ${WRKDIR}/jce ; pax -rw -pe -v . ${WRKSRC}/lib/security -# ${SED} 's/@SUN_JRE15_USE_JCE@//' ${PKGDIR}/PLIST > ${PLIST_SRC} -#.else -# ${SED} '/@SUN_JRE15_USE_JCE@/d' ${PKGDIR}/PLIST > ${PLIST_SRC} -#.endif + @${ECHO} 'SUPPORT_FILES="${SUPPORT_FILES}"' >${HEADER_EXTRA_TMPL} +.if !empty(SUN_JRE15_USE_JCE:M[Yy][Ee][Ss]) + cd ${WRKDIR}/jce ; pax -rw -pe -v . ${WRKSRC}/lib/security + ${SED} 's/@SUN_JRE15_USE_JCE@//' ${PKGDIR}/PLIST > ${PLIST_SRC} +.else + ${SED} '/@SUN_JRE15_USE_JCE@/d' ${PKGDIR}/PLIST > ${PLIST_SRC} +.endif + +post-build: + # # re-create sfiles.mk from properties and config files @@ -54,7 +61,7 @@ makesfiles: ${ECHO} >> sfiles.mk '# Created with "make makesfiles"' ${ECHO} >> sfiles.mk '# Do not edit this file manually!' ${ECHO} >> sfiles.mk '#' - cd ${WRKSRC}/lib && ${FIND} * \ + cd ${WRKSRC}/lib && ${FIND} * -name fontconfig.\* -o \ -name \*.properties -o -name \*.properties.\?\? -o \ -name \*.cfg -o -name \*.security | \ ${SED} 's/^/SFILES+= /' >>../../../sfiles.mk |