https://github.com/t6/openjfx/releases/download/release/openjfx8-8u202-b00.tar.gz
8u202-b00 is old now. Newest is 8u202-b07 AFAICT [1]. I will not be spending time doing this any time soon, so this needs a patch for starters. [1] http://hg.openjdk.java.net/openjfx/8u/rt/tags
Created attachment 206000 [details] openjfx8.diff - Update to 8u202-b07
A commit references this bug: Author: tobik Date: Tue Jul 23 05:34:23 UTC 2019 New revision: 507200 URL: https://svnweb.freebsd.org/changeset/ports/507200 Log: java/openjfx8-devel: Update to 8u202-b07 - Also update devel/gradle to the latest version on the 4.x branch. Gradle >=4.8<5 is required to build OpenJFX now. - GStreamer-lite is now based on GStreamer 1.0, so update the sndio backend accordingly. - Add a bunch of missing platform checks which will make it actually use system fonts as configured. OpenJFX 8 is unmaintained upstream and has been for a while [1]. Deprecate the port as noone seems to have stepped up to take over maintainership. No expiration date since this port has multiple consumers and there is no alternative. [1] https://mail.openjdk.java.net/pipermail/openjfx-dev/2018-December/023007.html PR: 237443 Changes: head/devel/gradle4/Makefile head/devel/gradle4/distinfo head/devel/gradle4/pkg-plist head/java/openjfx8-devel/Makefile head/java/openjfx8-devel/distinfo head/java/openjfx8-devel/files/bsd.gradle head/java/openjfx8-devel/files/gstsndio.c head/java/openjfx8-devel/files/gstsndio.h head/java/openjfx8-devel/files/patch-build.gradle head/java/openjfx8-devel/files/patch-modules_controls_src_main_java_com_sun_javafx_scene_control_behavior_TextInputControlBehavior.java head/java/openjfx8-devel/files/patch-modules_controls_src_main_java_com_sun_javafx_scene_control_behavior_TextInputControlBindings.java head/java/openjfx8-devel/files/patch-modules_fxpackager_src_main_native_library_common_PosixPlatform.cpp head/java/openjfx8-devel/files/patch-modules_graphics_src_main_java_com_sun_javafx_font_LogicalFont.java head/java/openjfx8-devel/files/patch-modules_graphics_src_main_java_com_sun_javafx_font_PrismFontFactory.java head/java/openjfx8-devel/files/patch-modules_graphics_src_main_java_com_sun_javafx_tk_quantum_GlassSystemMenu.java head/java/openjfx8-devel/files/patch-modules_graphics_src_main_java_com_sun_javafx_tk_quantum_WindowStage.java head/java/openjfx8-devel/files/patch-modules_graphics_src_main_java_com_sun_prism_impl_PrismSettings.java head/java/openjfx8-devel/files/patch-modules_graphics_src_main_native-glass_gtk_GlassApplication.cpp head/java/openjfx8-devel/files/patch-modules_graphics_src_main_native-glass_gtk_glass__general.cpp head/java/openjfx8-devel/files/patch-modules_graphics_src_main_native-glass_gtk_glass__window.h head/java/openjfx8-devel/files/patch-modules_graphics_src_main_native-glass_gtk_launcher.c head/java/openjfx8-devel/files/patch-modules_graphics_src_main_native-glass_gtk_wrapped.c head/java/openjfx8-devel/files/patch-modules_media_src_main_java_com_sun_media_jfxmediaimpl_HostUtils.java head/java/openjfx8-devel/files/patch-modules_media_src_main_java_com_sun_media_jfxmediaimpl_NativeMediaManager.java head/java/openjfx8-devel/files/patch-modules_media_src_main_native_gstreamer_gstreamer-lite_gstreamer_gst_gstregistry.c head/java/openjfx8-devel/files/patch-modules_media_src_main_native_gstreamer_gstreamer-lite_projects_build_linux_common_config.h head/java/openjfx8-devel/files/patch-modules_media_src_main_native_gstreamer_projects_bsd_avplugin_Makefile head/java/openjfx8-devel/files/patch-modules_media_src_main_native_gstreamer_projects_bsd_fxplugins_Makefile head/java/openjfx8-devel/files/patch-modules_media_src_main_native_gstreamer_projects_bsd_gstreamer-lite_Makefile head/java/openjfx8-devel/files/patch-modules_media_src_main_native_jfxmedia_projects_bsd_Makefile head/java/openjfx8-devel/files/patch-modules_swing_src_main_java_javafx_embed_swing_JFXPanel.java head/java/openjfx8-devel/files/patch-modules_swing_src_main_java_javafx_embed_swing_SwingNode.java head/java/openjfx8-devel/files/patch-modules_web_src_main_native_Source_JavaScriptCore_PlatformJava.cmake head/java/openjfx8-devel/files/patch-modules_web_src_main_native_Source_WTF_wtf_CMakeLists.txt head/java/openjfx8-devel/files/patch-modules_web_src_main_native_Source_WTF_wtf_Optional.h head/java/openjfx8-devel/files/patch-modules_web_src_main_native_Source_WebCore_CMakeLists.txt head/java/openjfx8-devel/files/patch-modules_web_src_main_native_Source_WebCore_PlatformJava.cmake head/java/openjfx8-devel/files/patch-modules_web_src_main_native_Source_cmake_OptionsJava.cmake head/java/openjfx8-devel/files/patch-modules_web_src_main_native_Source_cmake_WebKitCompilerFlags.cmake head/java/openjfx8-devel/files/patch-modules_web_src_main_native_Tools_DumpRenderTree_TestRunner.cpp head/java/openjfx8-devel/files/patch-modules_web_src_main_native_Tools_DumpRenderTree_java_CMakeLists.txt head/java/openjfx8-devel/files/patch-modules_web_src_main_native_Tools_Scripts_webkitdirs.pm head/java/openjfx8-devel/files/sndiosink.c head/java/openjfx8-devel/files/sndiosink.h head/java/openjfx8-devel/pkg-plist
Fails to build on 12.0 amd64: ===> NOTICE: This port is deprecated; you may wish to reconsider installing it: No longer maintained upstream. ===> License GPLv2 accepted by the user ===> openjfx8-devel-8.u202.b07,1 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by openjfx8-devel-8.u202.b07,1 for building ===> Extracting for openjfx8-devel-8.u202.b07,1 => SHA256 Checksum OK for openjfx8-8u202-b07.tar.gz. ===> Patching for openjfx8-devel-8.u202.b07,1 ===> Applying FreeBSD patches for openjfx8-devel-8.u202.b07,1 ===> openjfx8-devel-8.u202.b07,1 depends on package: apache-ant>0 - found ===> openjfx8-devel-8.u202.b07,1 depends on package: antlr3>0 - found ===> openjfx8-devel-8.u202.b07,1 depends on package: gradle4>=4.8 - found ===> openjfx8-devel-8.u202.b07,1 depends on file: /usr/local/share/java/classes/junit.jar - found ===> openjfx8-devel-8.u202.b07,1 depends on file: /usr/local/openjdk8/bin/java - found ===> openjfx8-devel-8.u202.b07,1 depends on package: pkgconf>=1.3.0_1 - found ===> openjfx8-devel-8.u202.b07,1 depends on package: xorgproto>=0 - found ===> openjfx8-devel-8.u202.b07,1 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found ===> openjfx8-devel-8.u202.b07,1 depends on file: /usr/local/libdata/pkgconfig/xtst.pc - found ===> openjfx8-devel-8.u202.b07,1 depends on file: /usr/local/libdata/pkgconfig/xxf86vm.pc - found ===> openjfx8-devel-8.u202.b07,1 depends on shared library: libfontconfig.so - found (/usr/local/lib/libfontconfig.so) ===> openjfx8-devel-8.u202.b07,1 depends on shared library: libfreetype.so - found (/usr/local/lib/libfreetype.so) ===> openjfx8-devel-8.u202.b07,1 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so) ===> openjfx8-devel-8.u202.b07,1 depends on shared library: libGL.so - found (/usr/local/lib/libGL.so) ===> openjfx8-devel-8.u202.b07,1 depends on shared library: libatk-1.0.so - found (/usr/local/lib/libatk-1.0.so) ===> openjfx8-devel-8.u202.b07,1 depends on shared library: libcairo.so - found (/usr/local/lib/libcairo.so) ===> openjfx8-devel-8.u202.b07,1 depends on shared library: libgdk_pixbuf-2.0.so - found (/usr/local/lib/libgdk_pixbuf-2.0.so) ===> openjfx8-devel-8.u202.b07,1 depends on shared library: libglib-2.0.so - found (/usr/local/lib/libglib-2.0.so) ===> openjfx8-devel-8.u202.b07,1 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so) ===> openjfx8-devel-8.u202.b07,1 depends on shared library: libgtk-x11-2.0.so - found (/usr/local/lib/libgtk-x11-2.0.so) ===> openjfx8-devel-8.u202.b07,1 depends on shared library: libgtk-3.so - found (/usr/local/lib/libgtk-3.so) ===> openjfx8-devel-8.u202.b07,1 depends on shared library: libpango-1.0.so - found (/usr/local/lib/libpango-1.0.so) ===> openjfx8-devel-8.u202.b07,1 depends on shared library: libjpeg.so - found (/usr/local/lib/libjpeg.so) ===> openjfx8-devel-8.u202.b07,1 depends on shared library: libsqlite3.so - found (/usr/local/lib/libsqlite3.so) ===> Configuring for openjfx8-devel-8.u202.b07,1 ===> Building for openjfx8-devel-8.u202.b07,1 Welcome to Gradle 4.10.3! Here are the highlights of this release: - Incremental Java compilation by default - Periodic Gradle caches cleanup - Gradle Kotlin DSL 1.0-RC6 - Nested included builds - SNAPSHOT plugin versions in the `plugins {}` block For more details see https://docs.gradle.org/4.10.3/release-notes.html > Task :buildSrc:generateGrammarSource > Task :buildSrc:compileJava > Task :buildSrc:compileGroovy > Task :buildSrc:processResources > Task :buildSrc:classes > Task :buildSrc:jar > Task :buildSrc:assemble > Task :buildSrc:compileTestJava Note: /tmp/work/usr/ports/java/openjfx8-devel/work/rt-8u202-b07/buildSrc/src/test/java/com/sun/scenario/effect/compiler/parser/FieldSelectTest.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. > Task :buildSrc:compileTestGroovy NO-SOURCE > Task :buildSrc:processTestResources NO-SOURCE > Task :buildSrc:testClasses > Task :buildSrc:test > Task :buildSrc:check > Task :buildSrc:build > Configure project : ***************************************************************** Unsupported gradle version 4.10.3 in use. Only version 4.8 is supported. Use this version at your own risk ***************************************************************** gradle.gradleVersion: 4.10.3 OS_NAME: freebsd OS_ARCH: amd64 JAVA_HOME: /usr/local/openjdk8 JDK_HOME: /usr/local/openjdk8 java.runtime.version: 1.8.0_222-b10 java version: 1.8.0_222 java build number: 10 jdk.runtime.version: 1.8.0_222-b10 jdk version: 1.8.0_222 jdk build number: 10 minimum java build number: 26 CONF: Debug NUM_COMPILE_THREADS: 2 COMPILE_TARGETS: bsd COMPILE_FLAGS_FILES: buildSrc/bsd.gradle HUDSON_JOB_NAME: not_hudson HUDSON_BUILD_NUMBER: 0000 PROMOTED_BUILD_NUMBER: 00 PRODUCT_NAME: OpenJFX RAW_VERSION: 8.0.202 RELEASE_NAME: 8u202 RELEASE_MILESTONE: ea UPDATE_STUB_CACHE: false > Task :checkJfxrtJar FAILED FAILURE: Build failed with an exception. * Where: Build file '/tmp/work/usr/ports/java/openjfx8-devel/work/rt-8u202-b07/build.gradle' line: 221 * What went wrong: Execution failed for task ':checkJfxrtJar'. > FAIL: /usr/local/openjdk8/jre/lib/ext/jfxrt.jar must be removed before building sdk * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 1m 0s 1 actionable task: 1 executed *** Error code 1 Stop. make[1]: stopped in /usr/ports/java/openjfx8-devel *** Error code 1 Stop. make: stopped in /usr/ports/java/openjfx8-devel
Uninstall it first as the message says. There is little I can do about that. > FAIL: /usr/local/openjdk8/jre/lib/ext/jfxrt.jar must be removed before building sdk
Thanks, it's build fine now. What about add message to UPDATING about this issue?