diff options
author | tobik <tobik@FreeBSD.org> | 2017-08-25 01:48:55 +0800 |
---|---|---|
committer | tobik <tobik@FreeBSD.org> | 2017-08-25 01:48:55 +0800 |
commit | a1880fa771284d93b5328d4ebbdee6a004a102bf (patch) | |
tree | 256aad071550458d9c487c49b88777b7e8eaeadb /java | |
parent | 0fb68edc75de27e3b65aefe249c75894be00f76b (diff) | |
download | freebsd-ports-gnome-a1880fa771284d93b5328d4ebbdee6a004a102bf.tar.gz freebsd-ports-gnome-a1880fa771284d93b5328d4ebbdee6a004a102bf.tar.zst freebsd-ports-gnome-a1880fa771284d93b5328d4ebbdee6a004a102bf.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')
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" }; + } |