71 lines
2.1 KiB
Makefile
71 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.8 2004/10/09 04:34:07 tv Exp $
|
|
|
|
# Note: Regen distinfo with SUN_JRE15_USE_JCE=YES
|
|
|
|
DISTNAME= jre-1_5_0-linux-i586
|
|
PKGNAME= sun-jre15-5.0
|
|
PKGREVISION= 4
|
|
MASTER_SITES= # empty
|
|
|
|
COMMENT= Sun's Java(tm) 2 Runtime Environment 1.5.0
|
|
|
|
SHORT= JRE
|
|
|
|
WRKSRC= ${WRKDIR}/jre1.5.0
|
|
USE_PKGINSTALL= yes
|
|
JAVA_WRAPPERS= java javaws keytool orbd policytool rmid rmiregistry \
|
|
servertool tnameserv
|
|
OWN_DIRS= ${JAVA_HOME}
|
|
OWN_DIRS+= ${JAVA_HOME}/lib
|
|
OWN_DIRS+= ${JAVA_HOME}/lib/applet
|
|
OWN_DIRS+= ${JAVA_HOME}/lib/images
|
|
OWN_DIRS+= ${JAVA_HOME}/lib/images/cursors
|
|
OWN_DIRS+= ${JAVA_HOME}/lib/security
|
|
SUPPORT_FILES= # empty
|
|
.sinclude "sfiles.mk"
|
|
.for FILE in ${SFILES}
|
|
SUPPORT_FILES+= ${JAVA_HOME}/lib/${FILE}.default ${JAVA_HOME}/lib/${FILE}
|
|
.endfor
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
HEADER_EXTRA_TMPL= ${WRKDIR}/HEADER.tmpl
|
|
INSTALL_EXTRA_TMPL= ${PKGDIR}/INSTALL.tmpl
|
|
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])
|
|
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
|
|
@${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
|
|
|
|
#
|
|
# re-create sfiles.mk from properties and config files
|
|
#
|
|
makesfiles:
|
|
${ECHO} > sfiles.mk '# $$Net''BSD$$'
|
|
${ECHO} >> sfiles.mk '#'
|
|
${ECHO} >> sfiles.mk '# Created with "make makesfiles"'
|
|
${ECHO} >> sfiles.mk '# Do not edit this file manually!'
|
|
${ECHO} >> sfiles.mk '#'
|
|
cd ${WRKSRC}/lib && ${FIND} * -name fontconfig.\* -o \
|
|
-name \*.properties -o -name \*.properties.\?\? -o \
|
|
-name \*.cfg -o -name \*.security | \
|
|
${SED} 's/^/SFILES+= /' >>../../../sfiles.mk
|
|
|
|
.include "../../lang/sun-jre15/Makefile.common"
|