Here are a few minor changes needed to cross-compile FreeSCI to BeOS.
I just removed the UNIX soundserver from sound/Makefile.am, so a
better approach will be needed.
I didn't test the binaries yet, but I'll do that in the next few days.
claudio
-------
Index: configure.in
===================================================================
RCS file: /home/cvs/freesci/configure.in,v
retrieving revision 1.82
diff -u -r1.82 configure.in
--- configure.in 2001/08/24 04:15:40 1.82
+++ configure.in 2001/09/22 23:03:59
@@ -18,9 +18,13 @@
AC_CHECK_HEADERS(fnmatch.h)
AC_CHECK_HEADERS(getopt.h)
AC_C_INLINE
-AC_CHECK_SIZEOF(short)
-AC_CHECK_SIZEOF(int)
-AC_CHECK_SIZEOF(long)
+
+if test "$cross_compiling" != "yes"; then
+ AC_CHECK_SIZEOF(short)
+ AC_CHECK_SIZEOF(int)
+ AC_CHECK_SIZEOF(long)
+fi
+
AC_CHECK_FUNCS(pipe socketpair fork sched_yield memfrob ffs getopt_long isblank
usleep)
AM_PATH_ALSA(0.5.0, [AC_DEFINE(HAVE_ALSA)], [echo >/dev/null])
AM_WITHOUT_SOUND
Index: src/engine/game.c
===================================================================
RCS file: /home/cvs/freesci/src/engine/game.c,v
retrieving revision 1.52
diff -u -r1.52 game.c
--- src/engine/game.c 2001/09/22 20:42:09 1.52
+++ src/engine/game.c 2001/09/22 23:05:53
@@ -31,7 +31,7 @@
#include <kernel.h>
#include <kdebug.h>
-#ifndef _WIN32
+#if !defined (_WIN32) && !defined (__BEOS__)
#include <sys/resource.h>
#endif
Index: src/engine/vm.c
===================================================================
RCS file: /home/cvs/freesci/src/engine/vm.c,v
retrieving revision 1.51
diff -u -r1.51 vm.c
--- src/engine/vm.c 2001/09/15 23:06:24 1.51
+++ src/engine/vm.c 2001/09/22 23:08:54
@@ -31,7 +31,7 @@
#include <versions.h>
#include <kdebug.h>
-#ifndef _WIN32
+#if !defined (_WIN32) && !defined (__BEOS__)
#include <sys/resource.h>
#endif
Index: src/include/scitypes.h
===================================================================
RCS file: /home/cvs/freesci/src/include/scitypes.h,v
retrieving revision 1.4
diff -u -r1.4 scitypes.h
--- src/include/scitypes.h 2001/05/27 19:29:55 1.4
+++ src/include/scitypes.h 2001/09/22 23:09:07
@@ -41,6 +41,10 @@
# define TYPE_32 int
#endif
+#if defined(__BEOS__)
+# define TYPE_16 short
+# define TYPE_32 int
+#endif
#ifndef TYPE_8
# define TYPE_8 char /* Guaranteed by ISO */
Index: src/scicore/modules.c
===================================================================
RCS file: /home/cvs/freesci/src/scicore/modules.c,v
retrieving revision 1.5
diff -u -r1.5 modules.c
--- src/scicore/modules.c 2001/08/25 08:20:05 1.5
+++ src/scicore/modules.c 2001/09/22 23:09:24
@@ -25,6 +25,8 @@
***************************************************************************/
+#ifndef __BEOS__
+
#include <sci_memory.h>
#include <modules.h>
#include <dlfcn.h>
@@ -145,4 +147,5 @@
}
}
+#endif /* !__BEOS__ */
Index: src/sound/Makefile.am
===================================================================
RCS file: /home/cvs/freesci/src/sound/Makefile.am,v
retrieving revision 1.27
diff -u -r1.27 Makefile.am
--- src/sound/Makefile.am 2001/09/10 00:23:33 1.27
+++ src/sound/Makefile.am 2001/09/22 23:09:27
@@ -1,8 +1,8 @@
INCLUDES = -I$(top_srcdir)/src/include
LDADD = -lc
-EXTRA_DIST = sfx_save.cfsml soundserver_dos.c midiout_win32mci.c
+EXTRA_DIST = sfx_save.cfsml soundserver_dos.c midiout_win32mci.c soundserver_unix.c
noinst_LIBRARIES = libscisound.a
-libscisound_a_SOURCES = oldmidi.c sound.c sfx_save.c soundserver_unix.c midi_mt32.c
midiout.c midiout_unixraw.c midiout_alsaraw.c midi_device.c midi_mt32gm.c
midiout_ossseq.c midiout_ossopl3.c soundserver_sdl.c soundserver.c midi_adlib.c
+libscisound_a_SOURCES = oldmidi.c sound.c sfx_save.c midi_mt32.c midiout.c
+midiout_unixraw.c midiout_alsaraw.c midi_device.c midi_mt32gm.c midiout_ossseq.c
+midiout_ossopl3.c soundserver_sdl.c soundserver.c midi_adlib.c
sfx_save.c: sfx_save.cfsml
cat sfx_save.cfsml | ../engine/cfsml.pl -f sfx_save.cfsml > sfx_save.c