$OpenBSD: patch-features_org_eclipse_platform_launchers_library_gtk_build_sh,v 1.3 2007/04/06 02:16:21 kurt Exp $
--- features/org.eclipse.platform.launchers/library/gtk/build.sh.orig	Thu Sep 21 10:57:25 2006
+++ features/org.eclipse.platform.launchers/library/gtk/build.sh	Thu Apr  5 08:12:49 2007
@@ -71,6 +71,23 @@ case $OS in
 				;;
 		esac
 		;;
+	"OpenBSD")
+		makefile="make_openbsd.mak"
+		defaultOS="openbsd"
+		case $MODEL in
+			"amd64")
+				defaultOSArch="x86_64"
+				OUTPUT_DIR="../../bin/$defaultWS/$defaultOS/$defaultOSArch"
+				;;
+			"i386")
+				defaultOSArch="x86"
+				OUTPUT_DIR="../../bin/$defaultWS/$defaultOS/$defaultOSArch"
+				;;
+			*)
+				echo "*** Unknown MODEL <${MODEL}>"
+				;;
+		esac
+		;;
 	"SunOS")
 		makefile="make_solaris.mak"
 		defaultOS="solaris"
@@ -129,11 +146,11 @@ export OUTPUT_DIR PROGRAM_OUTPUT DEFAULT_OS DEFAULT_OS
 # If the OS is supported (a makefile exists)
 if [ "$makefile" != "" ]; then
 	if [ "$extraArgs" != "" ]; then
-		make -f $makefile $extraArgs
+		gmake -f $makefile $extraArgs
 	else
 		echo "Building $OS launcher. Defaults: -os $DEFAULT_OS -arch $DEFAULT_OS_ARCH -ws $DEFAULT_WS"
-		make -f $makefile clean
-		make -f $makefile all
+		gmake -f $makefile clean
+		gmake -f $makefile all
 	fi
 else
 	echo "Unknown OS ($OS) -- build aborted"
