2021-12-08 17:01:42 +01:00
|
|
|
# $NetBSD: Makefile,v 1.110 2021/12/08 16:05:22 adam Exp $
|
2015-02-08 09:41:25 +01:00
|
|
|
|
2019-07-25 21:12:55 +02:00
|
|
|
DISTNAME= openjdk-jdk8u-${GITHUB_TAG}
|
|
|
|
PKGNAME= openjdk8-1.8.${GITHUB_TAG:C/.*u([0-9]+).*/\1/}
|
2021-12-08 17:01:42 +01:00
|
|
|
PKGREVISION= 3
|
2015-02-08 09:41:25 +01:00
|
|
|
CATEGORIES= lang
|
2019-08-23 20:52:23 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=battleblow/}
|
|
|
|
MASTER_SITES+= ${MASTER_SITE_LOCAL:=openjdk7/} # for bootstrap kits
|
2019-11-03 20:03:56 +01:00
|
|
|
GITHUB_PROJECT= openjdk-jdk8u
|
2021-06-27 16:54:40 +02:00
|
|
|
GITHUB_TAG= jdk8u292-b10.2
|
2015-02-08 09:41:25 +01:00
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2020-01-26 18:30:40 +01:00
|
|
|
HOMEPAGE= https://openjdk.java.net/
|
2015-02-08 09:41:25 +01:00
|
|
|
COMMENT= Open-source implementation of the Java Platform, Standard Edition
|
|
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
|
|
|
|
DISTFILES= ${DEFAULT_DISTFILES}
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
# Use same DIST_SUBDIR as openjdk7 to avoid duplication of common distfiles
|
|
|
|
DIST_SUBDIR= openjdk7
|
|
|
|
|
|
|
|
JAVA_NAME= openjdk8
|
|
|
|
JAVA_HOME= ${PREFIX}/java/${JAVA_NAME}
|
2020-05-29 12:51:23 +02:00
|
|
|
JAVA_WRAPPERS= jar java javac javadoc javah javap jcmd jhat jmap jps jstack \
|
2018-09-19 20:18:30 +02:00
|
|
|
keytool orbd policytool rmid rmiregistry servertool tnameserv
|
2015-02-08 09:41:25 +01:00
|
|
|
|
2015-12-15 00:05:11 +01:00
|
|
|
BUILD_DEPENDS+= mozilla-rootcerts>=1.0.20140820nb2:../../security/mozilla-rootcerts
|
|
|
|
|
2015-10-23 01:01:52 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2020-06-02 20:25:39 +02:00
|
|
|
GNU_CONFIGURE_STRICT= no # not really GNU configure, only similar
|
2019-07-25 14:00:08 +02:00
|
|
|
USE_GNU_CONFIGURE_HOST= no
|
2018-12-12 15:22:11 +01:00
|
|
|
CONFIGURE_SCRIPT= configure
|
2015-02-08 09:41:25 +01:00
|
|
|
CONFIG_SHELL= bash
|
2015-02-20 10:38:00 +01:00
|
|
|
CONFIG_SUB_OVERRIDE+= common/autoconf/build-aux/config.sub
|
2015-02-21 10:55:47 +01:00
|
|
|
CONFIG_GUESS_OVERRIDE+= common/autoconf/build-aux/config.guess
|
2015-10-23 01:01:52 +02:00
|
|
|
CONFIG_SUB_OVERRIDE+= common/autoconf/build-aux/autoconf-config.sub
|
2015-02-21 10:55:47 +01:00
|
|
|
CONFIG_GUESS_OVERRIDE+= common/autoconf/build-aux/autoconf-config.guess
|
2015-02-08 09:41:25 +01:00
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
USE_TOOLS+= bash gmake pax pkg-config unzip:run zip:run
|
2020-05-06 12:16:29 +02:00
|
|
|
UNLIMIT_RESOURCES= datasize stacksize virtualsize cputime
|
2015-02-08 09:41:25 +01:00
|
|
|
PLIST_SRC+= ${PLIST_SRC_DFLT}
|
2019-09-22 16:47:00 +02:00
|
|
|
CHECK_SHLIBS_SKIP+= java/${JAVA_NAME}/jre/lib/${LIBDIR_ARCH}/libinstrument.so
|
2015-02-08 09:41:25 +01:00
|
|
|
|
|
|
|
BUILDLINK_PASSTHRU_DIRS+= ${ALT_BOOTDIR}
|
|
|
|
PREPEND_PATH+= ${ALT_BOOTDIR}/bin
|
|
|
|
|
2018-02-16 23:31:01 +01:00
|
|
|
BUILDLINK_TRANSFORM+= rm:-Werror
|
|
|
|
|
2020-05-03 21:21:55 +02:00
|
|
|
# hotspot/src/share/vm/adlc/dict2.cpp does that, but it's safe.
|
|
|
|
BUILDLINK_TRANSFORM+= rm:-Werror=char-subscripts
|
|
|
|
|
2015-10-23 01:01:52 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-option-checking # for --with-libiconv-prefix
|
2015-07-05 23:03:05 +02:00
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
|
2019-07-25 14:00:08 +02:00
|
|
|
CONFIGURE_ARGS+= --openjdk-target=${MACHINE_GNU_PLATFORM:Q}
|
2015-02-08 09:41:25 +01:00
|
|
|
CONFIGURE_ARGS+= --with-boot-jdk=${ALT_BOOTDIR}
|
|
|
|
CONFIGURE_ARGS+= --with-zlib=system
|
|
|
|
CONFIGURE_ARGS+= --with-giflib=bundled
|
2020-05-17 03:17:18 +02:00
|
|
|
CONFIGURE_ARGS+= --with-cups-include=${BUILDLINK_PREFIX.libcups}/include
|
2015-02-08 09:41:25 +01:00
|
|
|
CONFIGURE_ARGS+= --with-freetype-lib=${BUILDLINK_PREFIX.freetype2}/lib
|
|
|
|
CONFIGURE_ARGS+= --with-freetype-include=${BUILDLINK_PREFIX.freetype2}/include
|
|
|
|
CONFIGURE_ARGS+= --disable-freetype-bundling
|
|
|
|
CONFIGURE_ARGS+= --with-jobs=${MAKE_JOBS:U1}
|
|
|
|
CONFIGURE_ARGS+= --with-num-cores=${MAKE_JOBS:U1}
|
|
|
|
CONFIGURE_ARGS+= --with-memory-size=768
|
2015-06-13 16:55:52 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-precompiled-headers
|
2015-02-08 09:41:25 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-ccache
|
|
|
|
CONFIGURE_ARGS+= --with-user-release-suffix=pkgsrc_${PKGVERSION}
|
2015-11-03 18:57:47 +01:00
|
|
|
CONFIGURE_ARGS+= --with-update-version=${PKGVERSION_NOREV:S/1.8.//}
|
2017-07-24 14:27:33 +02:00
|
|
|
CONFIGURE_ARGS+= --with-extra-ldflags=${LDFLAGS:Q}
|
2015-02-08 09:41:25 +01:00
|
|
|
|
|
|
|
CHECK_PORTABILITY_SKIP+= hotspot/test/runtime/*/*.sh
|
2021-06-27 16:54:40 +02:00
|
|
|
CHECK_PORTABILITY_SKIP+= hotspot/test/compiler/*/*/*.sh
|
2015-02-08 09:41:25 +01:00
|
|
|
|
|
|
|
# Avoid build errors when JAVA_HOME and CLASSPATH are defined by user.
|
|
|
|
MAKE_ENV+= JAVA_HOME=
|
|
|
|
MAKE_ENV+= CLASSPATH=
|
|
|
|
|
2019-11-03 20:03:56 +01:00
|
|
|
BUILD_OPSYS= ${OPSYS:C/.*BSD/bsd/:S/DragonFly/bsd/:S/SunOS/solaris/:S/Linux/linux/}
|
|
|
|
BUILD_ARCH= ${MACHINE_ARCH:S/i386/x86/:S/sparc64/sparcv9/:C/^e?arm.*$/arm/}
|
|
|
|
LIBDIR_ARCH= ${MACHINE_ARCH:S/x86_64/amd64/:S/sparc64/sparcv9/:C/^e?arm.*$/arm/}
|
|
|
|
BUILDDIR= ${WRKSRC}/build/${BUILD_OPSYS}-${BUILD_ARCH}-normal-${BUILD_VARIANT}-${BUILD_DEBUG_LEVEL}
|
|
|
|
LD_LIBRARY_PATH= ${WRKDIR}/bootstrap/jre/lib/${LIBDIR_ARCH}:${WRKDIR}/bootstrap/jre/lib/${LIBDIR_ARCH}/jli:${WRKDIR}/bootstrap/jre/lib/${LIBDIR_ARCH}/server
|
|
|
|
CONFIGURE_ENV+= LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
|
|
|
|
MAKE_ENV+= LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
|
|
|
|
CONFIGURE_ENV+= LFLAGS=${LDFLAGS:Q}
|
|
|
|
MAKE_ENV+= LFLAGS=${LDFLAGS:Q}
|
2019-09-22 16:47:00 +02:00
|
|
|
BUILDLINK_PASSTHRU_RPATHDIRS+= ${PREFIX}/java/${JAVA_NAME}/jre/lib/${LIBDIR_ARCH}
|
2015-02-08 09:41:25 +01:00
|
|
|
|
2015-02-12 07:19:59 +01:00
|
|
|
PLIST_SUBST+= ARCH=${LIBDIR_ARCH}
|
2015-07-03 22:40:59 +02:00
|
|
|
PLIST_SUBST+= LOWER_OPSYS=${LOWER_OPSYS:S/sunos/solaris/}
|
2015-02-08 09:41:25 +01:00
|
|
|
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
|
|
|
|
SUBST_CLASSES+= libpath
|
|
|
|
SUBST_STAGE.libpath= pre-build
|
|
|
|
SUBST_FILES.libpath+= hotspot/src/os/bsd/vm/os_bsd.cpp
|
|
|
|
SUBST_VARS.libpath= PREFIX
|
|
|
|
|
2015-03-02 04:53:26 +01:00
|
|
|
CFLAGS+= -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
|
|
|
|
CXXFLAGS+= -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
|
|
|
|
|
2017-12-15 15:27:52 +01:00
|
|
|
CONFIGURE_ENV+= CFLAGS_JDK=${CFLAGS:Q}
|
|
|
|
CONFIGURE_ENV+= CXXFLAGS_JDK=${CXXFLAGS:Q}
|
|
|
|
|
2015-07-03 22:40:59 +02:00
|
|
|
.if ${OPSYS} == "SunOS" && !empty(PKGSRC_COMPILER:Mgcc)
|
|
|
|
MAKE_ENV+= USE_GCC=1
|
|
|
|
MAKE_ENV+= ARCH_DATA_MODEL=${ABI:Q}
|
|
|
|
.endif
|
|
|
|
|
2015-02-08 09:41:25 +01:00
|
|
|
.if !empty(PKGSRC_COMPILER:Mclang)
|
2018-12-12 15:22:11 +01:00
|
|
|
CONFIGURE_ARGS+= --with-toolchain-type=clang
|
2018-08-20 19:24:00 +02:00
|
|
|
MAKE_ENV+= USE_CLANG=true
|
2015-02-08 18:19:59 +01:00
|
|
|
_WRAP_EXTRA_ARGS.CC+= -Wno-return-type
|
2015-02-08 18:20:54 +01:00
|
|
|
CWRAPPERS_APPEND.cc+= -Wno-return-type
|
2015-02-08 09:41:25 +01:00
|
|
|
_WRAP_EXTRA_ARGS.CXX+= -Wno-parentheses -Wno-sign-conversion \
|
|
|
|
-Wno-shorten-64-to-32 -Wno-conversion \
|
|
|
|
-Wno-unused-value -Wno-switch-enum -Wno-switch \
|
|
|
|
-Wno-tautological-compare \
|
|
|
|
-Wno-delete-non-virtual-dtor \
|
|
|
|
-Wno-return-type -Wno-unused-parameter \
|
|
|
|
-Wno-parentheses-equality -Wno-empty-body \
|
|
|
|
-Wno-format -Wno-dynamic-class-memaccess
|
|
|
|
CWRAPPERS_APPEND.cxx+= -Wno-parentheses -Wno-sign-conversion \
|
|
|
|
-Wno-shorten-64-to-32 -Wno-conversion \
|
|
|
|
-Wno-unused-value -Wno-switch-enum -Wno-switch \
|
|
|
|
-Wno-tautological-compare \
|
|
|
|
-Wno-delete-non-virtual-dtor \
|
|
|
|
-Wno-return-type -Wno-unused-parameter \
|
|
|
|
-Wno-parentheses-equality -Wno-empty-body \
|
|
|
|
-Wno-format -Wno-dynamic-class-memaccess
|
|
|
|
. if ${OPSYS} != "FreeBSD"
|
|
|
|
_WRAP_EXTRA_ARGS.CXX+= -Wno-new-returns-null
|
|
|
|
CWRAPPERS_APPEND.cxx+= -Wno-new-returns-null
|
|
|
|
. endif
|
|
|
|
BUILDLINK_TRANSFORM+= rm:-fcheck-new
|
|
|
|
BUILDLINK_TRANSFORM+= rm:-fpch-deps
|
|
|
|
. if ${MACHINE_ARCH} == "x86_64"
|
|
|
|
_WRAP_EXTRA_ARGS.CXX+= -mstackrealign
|
|
|
|
CWRAPPERS_APPEND.cxx+= -mstackrealign
|
|
|
|
. endif
|
2018-12-12 15:22:11 +01:00
|
|
|
.else
|
|
|
|
# GCC
|
|
|
|
CONFIGURE_ARGS+= --with-toolchain-type=gcc
|
2015-02-08 09:41:25 +01:00
|
|
|
.endif
|
|
|
|
.include "bootstrap.mk"
|
|
|
|
|
|
|
|
.include "options.mk"
|
|
|
|
|
|
|
|
SUBST_CLASSES+= fontpaths
|
|
|
|
SUBST_STAGE.fontpaths= pre-build
|
|
|
|
SUBST_MESSAGE.fontpaths= fixing font paths
|
|
|
|
SUBST_FILES.fontpaths= jdk/src/solaris/classes/sun/awt/fontconfigs/bsd.fontconfig.properties
|
|
|
|
SUBST_FILES.fontpaths+= jdk/src/solaris/native/sun/awt/fontpath.c
|
2019-05-23 21:22:54 +02:00
|
|
|
SUBST_VARS.fontpaths= PREFIX
|
|
|
|
SUBST_VARS.fontpaths+= BUILDLINK_PREFIX.fontconfig
|
2015-02-08 09:41:25 +01:00
|
|
|
|
2016-07-19 14:32:15 +02:00
|
|
|
SUBST_CLASSES+= zlibpath
|
|
|
|
SUBST_STAGE.zlibpath= pre-build
|
|
|
|
SUBST_FILES.zlibpath= jdk/make/CompileLaunchers.gmk jdk/make/lib/CoreLibraries.gmk
|
2020-04-25 20:37:28 +02:00
|
|
|
SUBST_FILES.zlibpath+= jdk/make/lib/Awt2dLibraries.gmk
|
2016-07-19 14:32:15 +02:00
|
|
|
SUBST_VARS.zlibpath= COMPILER_RPATH_FLAG BUILDLINK_PREFIX.zlib
|
2017-05-10 16:01:58 +02:00
|
|
|
SUBST_VARS.zlibpath+= BUILDLINK_PREFIX.iconv
|
2016-07-19 14:32:15 +02:00
|
|
|
|
2021-06-29 19:32:52 +02:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
# NetBSD's EVFILT_* are different from FreeBSD/OpenBSD's values.
|
|
|
|
SUBST_CLASSES+= kqueue
|
|
|
|
SUBST_STAGE.kqueue= pre-configure
|
|
|
|
SUBST_MESSAGE.kqueue= fixing kqueue filter values
|
|
|
|
SUBST_FILES.kqueue= jdk/src/solaris/classes/sun/nio/ch/KQueue.java
|
|
|
|
SUBST_SED.kqueue= -e 's/static final int EVFILT_READ = -1;/static final int EVFILT_READ = 0;/'
|
|
|
|
SUBST_SED.kqueue+= -e 's/static final int EVFILT_WRITE = -2;/static final int EVFILT_WRITE = 1;/'
|
|
|
|
.endif
|
|
|
|
|
2015-07-03 22:40:59 +02:00
|
|
|
PLIST_VARS+= i386
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
PLIST.i386= yes
|
|
|
|
.endif
|
|
|
|
|
2015-03-02 15:27:38 +01:00
|
|
|
PLIST_VARS+= sctp
|
2018-11-12 11:42:07 +01:00
|
|
|
.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
|
2015-03-02 15:27:38 +01:00
|
|
|
PLIST.sctp= yes
|
|
|
|
.endif
|
|
|
|
|
2015-02-08 09:41:25 +01:00
|
|
|
post-extract:
|
2015-03-02 04:53:26 +01:00
|
|
|
# These libs are bundled w/ the netbsd-7 bootstrap to facilitate building with
|
|
|
|
# MKLLVM=yes / MKGCC=no. Nuke them from bootstrap if they are present in base.
|
|
|
|
.if exists(/lib/libgcc_s.so.1)
|
|
|
|
${RM} -f ${ALT_BOOTDIR}/jre/lib/${LIBDIR_ARCH}/libgcc_s.so*
|
|
|
|
.endif
|
|
|
|
.if exists(/usr/lib/libstdc++.so.7)
|
|
|
|
${RM} -f ${ALT_BOOTDIR}/jre/lib/${LIBDIR_ARCH}/libstdc++.so*
|
2015-02-08 09:41:25 +01:00
|
|
|
.endif
|
2020-05-09 22:47:26 +02:00
|
|
|
# This can be removed after bootstrap kits have been refreshed
|
2016-05-27 06:57:16 +02:00
|
|
|
.if defined(TOOLS_PLATFORM.paxctl)
|
|
|
|
${PAXCTL} +m ${WRKDIR}/bootstrap/bin/[a-ik-z]*
|
|
|
|
${PAXCTL} +m ${WRKDIR}/bootstrap/bin/j[b-z]*
|
|
|
|
${PAXCTL} +m ${WRKDIR}/bootstrap/bin/jar*
|
|
|
|
${PAXCTL} +m ${WRKDIR}/bootstrap/bin/java
|
|
|
|
${PAXCTL} +m ${WRKDIR}/bootstrap/bin/java[a-z]*
|
|
|
|
.endif
|
2015-02-08 09:41:25 +01:00
|
|
|
|
|
|
|
do-build: ${WRKDIR}/stage3-done
|
|
|
|
|
|
|
|
# stage 1 builds a native JDK using the bootstrap binaries
|
|
|
|
${WRKDIR}/stage1-done:
|
openjdk8: update to 8u232 GA
Bug fix and security update. Resolves in particular the following CVEs:
- S8213429, CVE-2019-2933: Windows file handling redux
- S8218573, CVE-2019-2945: Better socket support
- S8220302, CVE-2019-2949: Better Kerberos ccache handling
- S8221858, CVE-2019-2958: Build Better Processes
- S8222684, CVE-2019-2964: Better support for patterns
- S8222690, CVE-2019-2962: Better Glyph Images
- S8223505, CVE-2019-2973: Better pattern compilation
- S8223518, CVE-2019-2975: Unexpected exception in jjs
- S8223892, CVE-2019-2978: Improved handling of jar files
- S8224532, CVE-2019-2981: Better Path supports
- S8224915, CVE-2019-2983: Better serial attributes
- S8225286, CVE-2019-2987: Better rendering of native glyphs
- S8225292, CVE-2019-2988: Better Graphics2D drawing
- S8225298, CVE-2019-2989: Improve TLS connection support
- S8225597, CVE-2019-2992: Enhance font glyph mapping
- S8226765, CVE-2019-2999: Commentary on Javadoc comments
- S8228825, CVE-2019-2894: Enhance ECDSA operations
2019-11-02 22:31:14 +01:00
|
|
|
${_ULIMIT_CMD} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} images
|
2015-02-08 09:41:25 +01:00
|
|
|
rm -rf ${ALT_BOOTDIR}
|
|
|
|
cd ${BUILDDIR}/images && mv j2sdk-image ${ALT_BOOTDIR}
|
|
|
|
.for d in corba hotspot jaxp jaxws langtools tmp
|
|
|
|
mv ${BUILDDIR}/${d} ${BUILDDIR}/${d}-stage1
|
|
|
|
.endfor
|
2015-02-12 07:19:59 +01:00
|
|
|
touch ${.TARGET}
|
|
|
|
|
|
|
|
# stage 1.5 reconfigures, since the bootstrap JDK major version might have changed now
|
|
|
|
${WRKDIR}/stage1_5-done: ${WRKDIR}/stage1-done
|
2015-03-05 17:35:49 +01:00
|
|
|
@${STEP_MSG} "Reconfiguring with newly built JDK"
|
|
|
|
@${RECURSIVE_MAKE} ${MAKEFLAGS} do-configure
|
2015-02-12 07:19:59 +01:00
|
|
|
touch ${.TARGET}
|
2015-02-08 09:41:25 +01:00
|
|
|
|
|
|
|
# stage 2 rebuilds the JDK using native tools
|
2015-02-12 07:19:59 +01:00
|
|
|
${WRKDIR}/stage2-done: ${WRKDIR}/stage1_5-done
|
openjdk8: update to 8u232 GA
Bug fix and security update. Resolves in particular the following CVEs:
- S8213429, CVE-2019-2933: Windows file handling redux
- S8218573, CVE-2019-2945: Better socket support
- S8220302, CVE-2019-2949: Better Kerberos ccache handling
- S8221858, CVE-2019-2958: Build Better Processes
- S8222684, CVE-2019-2964: Better support for patterns
- S8222690, CVE-2019-2962: Better Glyph Images
- S8223505, CVE-2019-2973: Better pattern compilation
- S8223518, CVE-2019-2975: Unexpected exception in jjs
- S8223892, CVE-2019-2978: Improved handling of jar files
- S8224532, CVE-2019-2981: Better Path supports
- S8224915, CVE-2019-2983: Better serial attributes
- S8225286, CVE-2019-2987: Better rendering of native glyphs
- S8225292, CVE-2019-2988: Better Graphics2D drawing
- S8225298, CVE-2019-2989: Improve TLS connection support
- S8225597, CVE-2019-2992: Enhance font glyph mapping
- S8226765, CVE-2019-2999: Commentary on Javadoc comments
- S8228825, CVE-2019-2894: Enhance ECDSA operations
2019-11-02 22:31:14 +01:00
|
|
|
${_ULIMIT_CMD} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} images
|
2015-02-12 07:19:59 +01:00
|
|
|
touch ${.TARGET}
|
2015-02-08 09:41:25 +01:00
|
|
|
|
|
|
|
# stage 3 builds third party add-ons
|
|
|
|
${WRKDIR}/stage3-done: ${WRKDIR}/stage2-done ${WRKDIR}/cacerts.out
|
2015-02-12 07:19:59 +01:00
|
|
|
touch ${.TARGET}
|
2015-02-08 09:41:25 +01:00
|
|
|
|
|
|
|
${WRKDIR}/cacerts.out:
|
|
|
|
mkdir ${WRKDIR}/cacerts && cd ${WRKDIR}/cacerts && \
|
|
|
|
${PREFIX}/sbin/mozilla-rootcerts extract
|
|
|
|
for cert in ${WRKDIR}/cacerts/*.pem; do \
|
|
|
|
${INFO_MSG} "Importing $$cert" && \
|
|
|
|
${SETENV} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} LC_ALL=C \
|
2015-03-05 17:35:49 +01:00
|
|
|
${ALT_BOOTDIR}/bin/keytool \
|
2015-02-08 09:41:25 +01:00
|
|
|
-noprompt \
|
|
|
|
-importcert \
|
|
|
|
-keystore ${.TARGET} \
|
|
|
|
-alias `${ECHO} $$cert | sed 's,.*/\\([^/]*\\)\\.pem,\\1,'` \
|
|
|
|
-file $$cert \
|
|
|
|
-storepass changeit; \
|
|
|
|
done
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${JAVA_HOME}
|
|
|
|
cd ${BUILDDIR}/images/j2sdk-image && pax -rwpp . \
|
|
|
|
${DESTDIR}${JAVA_HOME}/.
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/cacerts.out \
|
|
|
|
${DESTDIR}${JAVA_HOME}/jre/lib/security/cacerts
|
|
|
|
rm -f ${DESTDIR}${JAVA_HOME}/include/jni_md.h
|
2020-03-06 11:50:08 +01:00
|
|
|
ln -s ${LOWER_OPSYS:S/sunos/solaris/}/jni_md.h \
|
2015-02-08 09:41:25 +01:00
|
|
|
${DESTDIR}${JAVA_HOME}/include/jni_md.h
|
|
|
|
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
TOOLS_PLATFORM.unzip=
|
|
|
|
.endif
|
|
|
|
|
2015-07-03 22:40:59 +02:00
|
|
|
# Include binutils for objcopy and GNU strip on SmartOS
|
2020-10-13 11:46:03 +02:00
|
|
|
.if ${OS_VARIANT} == "SmartOS" || ${OS_VARIANT} == "OmniOS"
|
2015-07-03 22:40:59 +02:00
|
|
|
.include "../../devel/binutils/buildlink3.mk"
|
|
|
|
BUILDLINK_DEPMETHOD.binutils?= build
|
|
|
|
MAKE_ENV+= STRIP=${PREFIX}/bin/gstrip
|
|
|
|
.endif
|
|
|
|
|
2015-02-08 09:41:25 +01:00
|
|
|
# disabled the ALSA support for now on BSDs via patch
|
2018-11-12 11:42:07 +01:00
|
|
|
.if ${OPSYS} == "Linux"
|
|
|
|
.include "../../audio/alsa-lib/buildlink3.mk"
|
|
|
|
.endif
|
2015-02-08 09:41:25 +01:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
|
|
.include "../../fonts/fontconfig/buildlink3.mk"
|
|
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
2018-08-20 18:59:34 +02:00
|
|
|
# Headers from CUPS are required to build the native implementation of
|
|
|
|
# sun.print.* which is used by java.awt.print.
|
2020-05-17 03:07:03 +02:00
|
|
|
BUILDLINK_DEPMETHOD.libcups?= build
|
|
|
|
.include "../../print/libcups/buildlink3.mk"
|
2015-02-08 09:41:25 +01:00
|
|
|
.include "../../mk/java-env.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|