On Fri, 25 Jan 2008, Kurt Miller wrote:
I thought about this too. But what version will it use
when there are multiple version installed? For example libGL.so.5.1 and
libGL.so.6.0.
If you don't specify a major.minor in the name passed dlopen() it will select
the one with the highest major then highest minor after that.
I tried Bzflag and Neverball and both worked okay with "libGL.so".
With sdl it is loaded on runtime, it can also be overridden
using and environment variable. Does that matter?
Less knobs == better.
Of course.
? w-sdl-1.2.13p0
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/sdl/Makefile,v
retrieving revision 1.60
diff -u -r1.60 Makefile
--- Makefile 3 Jan 2008 17:39:40 -0000 1.60
+++ Makefile 25 Jan 2008 17:13:22 -0000
@@ -4,7 +4,7 @@
VERSION= 1.2.13
DISTNAME= SDL-${VERSION}
-PKGNAME= ${DISTNAME:L}
+PKGNAME= ${DISTNAME:L}p0
CATEGORIES= devel
HOMEPAGE= http://www.libsdl.org/
Index: patches/patch-src_video_x11_SDL_x11gl_c
===================================================================
RCS file: /cvs/ports/devel/sdl/patches/patch-src_video_x11_SDL_x11gl_c,v
retrieving revision 1.12
diff -u -r1.12 patch-src_video_x11_SDL_x11gl_c
--- patches/patch-src_video_x11_SDL_x11gl_c 22 Sep 2007 01:12:38 -0000
1.12
+++ patches/patch-src_video_x11_SDL_x11gl_c 25 Jan 2008 17:13:22 -0000
@@ -6,7 +6,7 @@
#define DEFAULT_OPENGL "libGL.so.3"
#elif defined(__OpenBSD__)
-#define DEFAULT_OPENGL "libGL.so.4.0"
-+#define DEFAULT_OPENGL "libGL.so.5.1"
++#define DEFAULT_OPENGL "libGL.so"
#else
#define DEFAULT_OPENGL "libGL.so.1"
#endif