Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Aug 2017 17:48:55 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r448699 - in head/java/openjfx8-devel: . files
Message-ID:  <201708241748.v7OHmt2A003457@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Thu Aug 24 17:48:55 2017
New Revision: 448699
URL: https://svnweb.freebsd.org/changeset/ports/448699

Log:
  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)

Added:
  head/java/openjfx8-devel/files/patch-modules_base_src_main_java_com_sun_javafx_PlatformUtil.java   (contents, props changed)
  head/java/openjfx8-devel/files/patch-modules_graphics_src_main_java_com_sun_prism_impl_PrismSettings.java   (contents, props changed)
Modified:
  head/java/openjfx8-devel/Makefile

Modified: head/java/openjfx8-devel/Makefile
==============================================================================
--- head/java/openjfx8-devel/Makefile	Thu Aug 24 17:20:17 2017	(r448698)
+++ head/java/openjfx8-devel/Makefile	Thu Aug 24 17:48:55 2017	(r448699)
@@ -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

Added: head/java/openjfx8-devel/files/patch-modules_base_src_main_java_com_sun_javafx_PlatformUtil.java
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/java/openjfx8-devel/files/patch-modules_base_src_main_java_com_sun_javafx_PlatformUtil.java	Thu Aug 24 17:48:55 2017	(r448699)
@@ -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;
+     }
+ 
+     /**

Added: head/java/openjfx8-devel/files/patch-modules_graphics_src_main_java_com_sun_prism_impl_PrismSettings.java
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/java/openjfx8-devel/files/patch-modules_graphics_src_main_java_com_sun_prism_impl_PrismSettings.java	Thu Aug 24 17:48:55 2017	(r448699)
@@ -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" };
+             }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708241748.v7OHmt2A003457>