summaryrefslogtreecommitdiff
path: root/devel/sdl-devel/files/patch-configure.in
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-01-23 17:28:59 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-01-23 17:28:59 +0000
commit1f53fed603b26f258dc43d2780f88ad67adaa5f9 (patch)
tree96bb67eb0d0260f05c194701d852a56269e6e392 /devel/sdl-devel/files/patch-configure.in
parentAdd qtpkg 1.0, a Qt based package removal tool. (diff)
Add FreeBSD native VGL driver. Right now it is work in progress and to activate
and test it you need the following (5-CURRENT only, BTW): - fetch a patch for libvgl: http://people.freebsd.org/~sobomax/libvgl.patch, apply it, recompile/reinstall libvgl; - recompile/reinstall sdl-devel (configure script automatically detects if right version of libvgl is present); - set environment variable SDL_VIDEODRIVER=vgl; - ensure that you have VESA support compiled into kernel or loaded as a kld; - fire up your favourite SDL app ;).
Notes
Notes: svn path=/head/; revision=37500
Diffstat (limited to 'devel/sdl-devel/files/patch-configure.in')
-rw-r--r--devel/sdl-devel/files/patch-configure.in59
1 files changed, 59 insertions, 0 deletions
diff --git a/devel/sdl-devel/files/patch-configure.in b/devel/sdl-devel/files/patch-configure.in
new file mode 100644
index 000000000000..96e94473bd8f
--- /dev/null
+++ b/devel/sdl-devel/files/patch-configure.in
@@ -0,0 +1,59 @@
+
+$FreeBSD$
+
+--- configure.in.orig Fri Jan 5 22:18:17 2001
++++ configure.in Sun Jan 21 23:01:12 2001
+@@ -600,6 +600,37 @@
+ fi
+ }
+
++dnl Find the VGL includes and libraries
++CheckVGL()
++{
++ AC_ARG_ENABLE(video-vgl,
++[ --enable-video-vgl use VGL video driver [default=no]],
++ , enable_video_vgl=no)
++ if test x$enable_video = xyes -a x$enable_video_vgl = xyes; then
++ AC_MSG_CHECKING(for libVGL support)
++ video_vgl=no
++ AC_TRY_COMPILE([
++ #include <sys/fbio.h>
++ #include <sys/consio.h>
++ #include <sys/kbio.h>
++ #include <vgl.h>
++ ],[
++ VGLMode mode;
++ exit(0);
++ ],[
++ video_vgl=yes
++ ])
++ AC_MSG_RESULT($video_vgl)
++ 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
++}
++
+ dnl Find the AAlib includes
+ CheckAAlib()
+ {
+@@ -998,6 +1029,7 @@
+ CheckX11
+ CheckDGA
+ CheckSVGA
++ CheckVGL
+ CheckAAlib
+ CheckOpenGL
+ CheckPTHREAD
+@@ -1659,6 +1691,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