pkgsrc/lang/sun-jdk6/Makefile
ryoon 1343d246fa Update to 6.0.45
Changelog:
* Update timezone data to 2012i
* Bugfixes
2013-04-25 13:32:12 +00:00

61 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.34 2013/04/25 13:32:39 ryoon Exp $
DISTNAME= jdk-6u45-${DIST_OS}-${DIST_ARCH}
PKGNAME= sun-jdk6-6.0.45
MASTER_SITES= # empty
LICENSE= sun-jdk6-license
DEPENDS+= ${PKGNAME_NOREV:S/jdk/jre/}*:../../lang/sun-jre6
WRKSRC= ${WRKDIR}/jdk1.6.0_45
JAVA_WRAPPERS= appletviewer apt extcheck idlj jar jarsigner \
javac javadoc javah javap jdb rmic serialver
MAKE_JOBS_SAFE= no
.include "../../lang/sun-jre6/Makefile.common"
.if !empty(MACHINE_PLATFORM:MLinux-*-x86_64)
CHECK_SHLIBS_SUPPORTED= no
.endif
# The 64-bit Solaris downloads for some inexplicable reason only contain
# the additional 64-bit files, and you need the main 32-bit file too.
.if ${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "x86_64"
DISTFILES= ${DEFAULT_DISTFILES} ${DEFAULT_DISTFILES:S/x64/i586/}
.endif
PLIST_SRC= PLIST.${DIST_OS}-${EMUL_ARCH}
# Remove parts that are in common with the JRE
#
post-extract:
common=`${AWK} '/^#.*/ { next } /^$$/ { next } { print }' ${FILESDIR}/common`; \
cd ${WRKSRC}; for i in $$common; do \
if [ -d $$i ]; then \
${RM} -rf $$i; \
else \
${RM} -f $$i; \
fi; \
done
${LN} -sf . ${WRKSRC}/jre
pre-install:
# These files are generated the *first* time the package is built
${RM} -f ${WRKSRC}/register.html
${RM} -f ${WRKSRC}/register_ja.html
${RM} -f ${WRKSRC}/register_zh_CN.html
${CHMOD} -x \
${WRKSRC}/db/bin/NetworkServerControl.bat \
${WRKSRC}/db/bin/dblook.bat \
${WRKSRC}/db/bin/derby_common.bat \
${WRKSRC}/db/bin/ij.bat \
${WRKSRC}/db/bin/setEmbeddedCP.bat \
${WRKSRC}/db/bin/setNetworkClientCP.bat \
${WRKSRC}/db/bin/setNetworkServerCP.bat \
${WRKSRC}/db/bin/startNetworkServer.bat \
${WRKSRC}/db/bin/stopNetworkServer.bat \
${WRKSRC}/db/bin/sysinfo.bat
.include "../../mk/bsd.pkg.mk"