diff --git a/build.xml b/build.xml index 07c07c6b41..e7418fc293 100644 --- a/build.xml +++ b/build.xml @@ -1105,50 +1105,7 @@ - - - LWJGL - @{title}]]> - Copyright LWJGL. All Rights Reserved. License terms.]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/modules/lwjgl/core/src/main/java/org/lwjgl/system/APIUtil.java b/modules/lwjgl/core/src/main/java/org/lwjgl/system/APIUtil.java index 17f7e22934..13b90cc686 100644 --- a/modules/lwjgl/core/src/main/java/org/lwjgl/system/APIUtil.java +++ b/modules/lwjgl/core/src/main/java/org/lwjgl/system/APIUtil.java @@ -124,6 +124,8 @@ public static SharedLibrary apiCreateLibrary(String name) { return new LinuxLibrary(name); case MACOSX: return MacOSXLibrary.create(name); + case OPENBSD: + return new OpenBSDLibrary(name); default: throw new IllegalStateException(); } diff --git a/modules/lwjgl/openal/src/main/java/org/lwjgl/openal/ALC.java b/modules/lwjgl/openal/src/main/java/org/lwjgl/openal/ALC.java index 40735ca886..1f9fb16b5e 100644 --- a/modules/lwjgl/openal/src/main/java/org/lwjgl/openal/ALC.java +++ b/modules/lwjgl/openal/src/main/java/org/lwjgl/openal/ALC.java @@ -56,6 +56,7 @@ public static void create() { String libName; switch (Platform.get()) { case LINUX: + case OPENBSD: case MACOSX: libName = "openal"; break; @@ -228,4 +229,4 @@ public static ALCCapabilities createCapabilities(long device) { return new ALCCapabilities(functionProvider, device, supportedExtensions); } -} \ No newline at end of file +} diff --git a/modules/lwjgl/opengl/src/main/java/org/lwjgl/opengl/GL.java b/modules/lwjgl/opengl/src/main/java/org/lwjgl/opengl/GL.java index 6b8b51f102..bf71aebd21 100644 --- a/modules/lwjgl/opengl/src/main/java/org/lwjgl/opengl/GL.java +++ b/modules/lwjgl/opengl/src/main/java/org/lwjgl/opengl/GL.java @@ -7,6 +7,7 @@ import org.lwjgl.system.*; import org.lwjgl.system.macosx.*; import org.lwjgl.system.windows.*; +import org.lwjgl.system.openbsd.*; import javax.annotation.*; import java.nio.*; @@ -107,6 +108,9 @@ public static void create() { case WINDOWS: GL = Library.loadNative(GL.class, "org.lwjgl.opengl", Configuration.OPENGL_LIBRARY_NAME, "opengl32"); break; + case OPENBSD: + GL = Library.loadNative(GL.class, "org.lwjgl.opengl", Configuration.OPENGL_LIBRARY_NAME, "libGL.so.17.1", "libGL.so"); + break; default: throw new IllegalStateException(); } @@ -158,6 +162,7 @@ long getExtensionAddress(long name) { } }; break; + case OPENBSD: case LINUX: functionProvider = new SharedLibraryGL(OPENGL) { private final long glXGetProcAddress;