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)
This commit is contained in:
Tobias Kortkamp 2017-08-24 17:48:55 +00:00
parent d478eaa4e3
commit 092b72c9e9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=448699
3 changed files with 27 additions and 0 deletions

View file

@ -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

View file

@ -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;
}
/**

View file

@ -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" };
}