$OpenBSD: patch-build_gradle,v 1.2 2020/07/19 01:29:23 lteo Exp $

From https://github.com/NationalSecurityAgency/ghidra/pull/490

Index: build.gradle
--- build.gradle.orig
+++ build.gradle
@@ -77,7 +77,7 @@ else {	
  *		project.OS_NAMES.each {...}
  ****************************************************************************/
 
-project.ext.set("OS_NAMES", ["osx64", "win32", "win64", "linux64"])
+project.ext.set("OS_NAMES", ["osx64", "win32", "win64", "linux64", "openbsd64"])
 
 /****************************************************************************
  * Establish Visual Studio configuration environment for Windows native builds
@@ -131,6 +131,19 @@ def isMac(String platformName) {
 
 
 /*********************************************************************************
+ * Returns true if the platform is an OpenBSD machine
+ *********************************************************************************/
+def isOpenBSD(String platformName) {
+	if (platformName.toLowerCase().startsWith("openbsd")) {
+		return true
+	}
+	else {
+		return false
+	}
+}
+
+
+/*********************************************************************************
  * Returns true if the platform is a Windows machine.
  *********************************************************************************/
 def isWindows(String platformName) {
@@ -281,6 +294,11 @@ String getCurrentPlatformName() {
 	else if (osName.startsWith("Mac OS X")) {
 		if (isX86_64) {
 			return 'osx64'
+		}
+	}
+	else if (osName.startsWith("OpenBSD")) {
+		if (isX86_64) {
+			return 'openbsd64'
 		}
 	}
 	throw new GradleException("Unrecognized current platform -> osName = $osName, archName = $archName")
