1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/devel/sdl12/files/patch-ac
Maxim Sobolev e219727201 Make vgl driver working OOB without the need to use custom patched version
of libvgl. I abadoned my previous plans to get my extentions into the base
system because it seems that libvgl is at the end of its lifecycle and will
be replaced by more generic and better solution (probably kgi/ggi), at least
nsouch is actively working in this drection now. In the meantime, those
lucky with VESA 2.0 compatible videocards would be able to play quakeforge
or any other SDL-based games straight on their FreeBSD consoles ;).
2001-01-27 19:22:03 +00:00

133 lines
3.4 KiB
Plaintext

$FreeBSD$
--- configure.orig Fri Jan 5 22:18:22 2001
+++ configure Sun Jan 21 23:03:55 2001
@@ -80,6 +80,8 @@
ac_help="$ac_help
--enable-video-svga use SVGAlib video driver [default=no]"
ac_help="$ac_help
+ --enable-video-vgl use VGL video driver [default=no]"
+ac_help="$ac_help
--enable-video-aalib use AAlib video driver [default=no]"
ac_help="$ac_help
--enable-video-opengl include OpenGL context creation [default=yes]"
@@ -630,9 +632,9 @@
# libtool versioning
LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
-LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
+LT_CURRENT=$SDL_INTERFACE_AGE
LT_REVISION=$SDL_INTERFACE_AGE
-LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
+LT_AGE=$SDL_INTERFACE_AGE
@@ -3022,7 +3024,7 @@
SDL_CFLAGS=""
-SDL_LIBS="-lSDL"
+SDL_LIBS="-lSDL-1.1"
case "$target" in
@@ -5144,6 +5146,57 @@
fi
}
+CheckVGL()
+{
+ # Check whether --enable-video-vgl or --disable-video-vgl was given.
+if test "${enable_video_vgl+set}" = set; then
+ enableval="$enable_video_vgl"
+ :
+else
+ enable_video_vgl=no
+fi
+
+ if test x$enable_video = xyes -a x$enable_video_vgl = xyes; then
+ echo $ac_n "checking for libVGL support""... $ac_c" 1>&6
+echo "configure:5162: checking for libVGL support" >&5
+ video_vgl=no
+ cat > conftest.$ac_ext <<EOF
+#line 5165 "configure"
+#include "confdefs.h"
+
+ #include <sys/fbio.h>
+ #include <sys/consio.h>
+ #include <sys/kbio.h>
+ #include <vgl.h>
+
+int main() {
+
+ VGLBitmap bitmap;
+ exit(bitmap.PixelBytes);
+
+; return 0; }
+EOF
+if { (eval echo configure:5180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+
+ video_vgl=yes
+
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+fi
+rm -f conftest*
+ echo "$ac_t""$video_vgl" 1>&6
+ if test x$video_vgl = xyes; then
+ CFLAGS="$CFLAGS -DENABLE_VGL"
+ SYSTEM_LIBS="$SYSTEM_LIBS -lvgl"
+
+ VIDEO_SUBDIRS="$VIDEO_SUBDIRS vgl"
+ VIDEO_DRIVERS="$VIDEO_DRIVERS vgl/libvideo_vgl.la"
+ fi
+ fi
+}
+
CheckAAlib()
{
# Check whether --enable-video-aalib or --disable-video-aalib was given.
@@ -5883,6 +5936,7 @@
CheckX11
CheckDGA
CheckSVGA
+ CheckVGL
CheckAAlib
CheckOpenGL
CheckPTHREAD
@@ -5899,10 +5953,10 @@
cat >>$new <$old
# Set up files for the audio library
- if test x$enable_audio = xyes; then
- AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
- AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
- fi
+ #if test x$enable_audio = xyes; then
+ # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
+ # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
+ #fi
# Set up files for the joystick library
# (No joystick support yet)
if test x$enable_joystick = xyes; then
@@ -8412,6 +8466,7 @@
src/video/macdsp/Makefile
src/video/macrom/Makefile
src/video/svga/Makefile
+src/video/vgl/Makefile
src/video/aalib/Makefile
src/video/wincommon/Makefile
src/video/windib/Makefile
@@ -8621,6 +8676,7 @@
src/video/macdsp/Makefile
src/video/macrom/Makefile
src/video/svga/Makefile
+src/video/vgl/Makefile
src/video/aalib/Makefile
src/video/wincommon/Makefile
src/video/windib/Makefile