aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authortobik <tobik@FreeBSD.org>2017-08-25 01:48:55 +0800
committerKoop Mast <kwm@rainbow-runner.nl>2018-02-04 05:25:37 +0800
commit2d00ebd6289917041eceec2ada5cb372d92abf34 (patch)
treee5b5ffb47646524fa380f6ae0a1b7546bb217626 /java
parent69e6c9ca9579f3978efcefe2f2712ba62164331b (diff)
downloadfreebsd-ports-gnome-2d00ebd6289917041eceec2ada5cb372d92abf34.tar.gz
freebsd-ports-gnome-2d00ebd6289917041eceec2ada5cb372d92abf34.tar.zst
freebsd-ports-gnome-2d00ebd6289917041eceec2ada5cb372d92abf34.zip
java/openjfx8-devel
- Enable OpenGL Prism backend by default on FreeBSD too - Add missing platform check. FreeBSD is "a form of Linux or Solaris" too. Submitted by: Gareth Wyn Roberts <g.w.roberts@glyndwr.ac.uk> (via mail)
Diffstat (limited to 'java')
-rw-r--r--java/openjfx8-devel/Makefile1
-rw-r--r--java/openjfx8-devel/files/patch-modules_base_src_main_java_com_sun_javafx_PlatformUtil.java15
-rw-r--r--java/openjfx8-devel/files/patch-modules_graphics_src_main_java_com_sun_prism_impl_PrismSettings.java11
3 files changed, 27 insertions, 0 deletions
diff --git a/java/openjfx8-devel/Makefile b/java/openjfx8-devel/Makefile
index b81bbcdbc402..6324e02b74ce 100644
--- a/java/openjfx8-devel/Makefile
+++ b/java/openjfx8-devel/Makefile
@@ -3,6 +3,7 @@
PORTNAME= openjfx8
PORTVERSION= 20170722
+PORTREVISION= 1
CATEGORIES= java x11-toolkits devel
MASTER_SITES= https://bitbucket.org/tobik/openjfx-rt/get/freebsd${PORTVERSION}${EXTRACT_SUFX}?dummy=/
PKGNAMESUFFIX= -devel
diff --git a/java/openjfx8-devel/files/patch-modules_base_src_main_java_com_sun_javafx_PlatformUtil.java b/java/openjfx8-devel/files/patch-modules_base_src_main_java_com_sun_javafx_PlatformUtil.java
new file mode 100644
index 000000000000..3d4fd43c82f9
--- /dev/null
+++ b/java/openjfx8-devel/files/patch-modules_base_src_main_java_com_sun_javafx_PlatformUtil.java
@@ -0,0 +1,15 @@
+--- modules/base/src/main/java/com/sun/javafx/PlatformUtil.java.orig 2017-07-22 15:59:03 UTC
++++ modules/base/src/main/java/com/sun/javafx/PlatformUtil.java
+@@ -158,10 +158,10 @@ public class PlatformUtil {
+ }
+
+ /**
+- * Returns true if the operating system is a form of Linux or Solaris
++ * Returns true if the operating system is a form of Unix
+ */
+ public static boolean isUnix(){
+- return LINUX || SOLARIS;
++ return LINUX || SOLARIS || FREEBSD;
+ }
+
+ /**
diff --git a/java/openjfx8-devel/files/patch-modules_graphics_src_main_java_com_sun_prism_impl_PrismSettings.java b/java/openjfx8-devel/files/patch-modules_graphics_src_main_java_com_sun_prism_impl_PrismSettings.java
new file mode 100644
index 000000000000..c63d8483030a
--- /dev/null
+++ b/java/openjfx8-devel/files/patch-modules_graphics_src_main_java_com_sun_prism_impl_PrismSettings.java
@@ -0,0 +1,11 @@
+--- modules/graphics/src/main/java/com/sun/prism/impl/PrismSettings.java.orig 2017-07-22 15:59:03 UTC
++++ modules/graphics/src/main/java/com/sun/prism/impl/PrismSettings.java
+@@ -212,6 +212,8 @@ public final class PrismSettings {
+ tryOrderArr = new String[] { "es2" };
+ } else if (PlatformUtil.isLinux()) {
+ tryOrderArr = new String[] { "es2", "sw" };
++ } else if (PlatformUtil.isFreeBSD()) {
++ tryOrderArr = new String[] { "es2", "sw" };
+ } else {
+ tryOrderArr = new String[] { "sw" };
+ }