From f4240520fe308ff5ea77707047127bab11e00dc7 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 13 Sep 2001 15:57:48 +0000 Subject: [PATCH] Added CD-ROM support for BSD/OS (thanks Steven!) --- configure.in | 9 +- docs.html | 2 + src/cdrom/bsdi/.cvsignore | 6 + src/cdrom/bsdi/Makefile.am | 8 + src/cdrom/bsdi/SDL_syscdrom.c | 547 ++++++++++++++++++++++++++++++++++ 5 files changed, 568 insertions(+), 4 deletions(-) create mode 100644 src/cdrom/bsdi/.cvsignore create mode 100644 src/cdrom/bsdi/Makefile.am create mode 100644 src/cdrom/bsdi/SDL_syscdrom.c diff --git a/configure.in b/configure.in index 5de68efe2..6b6c023dd 100644 --- a/configure.in +++ b/configure.in @@ -1347,18 +1347,18 @@ case "$target" in JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la" fi # Set up files for the cdrom library - # (No cdrom support yet) if test x$enable_cdrom = xyes; then - CDROM_SUBDIRS="$CDROM_SUBDIRS dummy" - CDROM_DRIVERS="$CDROM_DRIVERS dummy/libcdrom_dummy.la" + CDROM_SUBDIRS="$CDROM_SUBDIRS bsdi" + CDROM_DRIVERS="$CDROM_DRIVERS bsdi/libcdrom_bsdi.la" fi # Set up files for the thread library + SDL_LIBS="$SDL_LIBS -lsem" if test x$enable_threads = xyes; then COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c) COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h) COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c) COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h) - COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c) + COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c) COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) @@ -2247,6 +2247,7 @@ src/cdrom/Makefile src/cdrom/aix/Makefile src/cdrom/beos/Makefile src/cdrom/dummy/Makefile +src/cdrom/bsdi/Makefile src/cdrom/freebsd/Makefile src/cdrom/linux/Makefile src/cdrom/macos/Makefile diff --git a/docs.html b/docs.html index ed801a7ac..3d33f14ec 100644 --- a/docs.html +++ b/docs.html @@ -16,8 +16,10 @@

Major changes since SDL 1.0.0: