CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Major update for Arch-Maintainer's email (all ports)
[attic/ports/games-cross.git] / stella / stella-3.0.cross_compile.patch
1 diff -purN stella-3.0.orig/configure stella-3.0/configure
2 --- stella-3.0.orig/configure 2010-01-08 13:54:31.000000000 +0100
3 +++ stella-3.0/configure 2010-01-08 14:32:03.000000000 +0100
4 @@ -293,6 +293,10 @@ mingw32-cross)
5 _host_cpu=i386
6 _host_prefix=i386-mingw32msvc
7 ;;
8 +arm-*)
9 + _host_os=crux-arm
10 + _host_cpu=arm
11 + ;;
12 *)
13 guessed_host=`$_srcdir/config.guess`
14 _host_cpu=`echo $guessed_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
15 @@ -447,6 +451,10 @@ if test -n "$_host"; then
16 DEFINES="$DEFINES -DWIN32"
17 _host_os=win32
18 ;;
19 + arm-*)
20 + echo "Cross-compiling for ARM processors ($_host)"
21 + _build_gl=no
22 + ;;
23 *)
24 echo "Cross-compiling to unknown target, please add your target to configure."
25 exit 1
26 @@ -484,6 +492,11 @@ else
27 LIBS="$LIBS -lz"
28 _host_os=unix
29 ;;
30 + arm-*)
31 + DEFINES="$DEFINES -DUNIX"
32 + LIBS="$LIBS -lz"
33 + _host_os=crux-arm
34 + ;;
35 # given this is a shell script assume some type of unix
36 *)
37 echo "WARNING: could not establish system type, assuming unix like"
38 @@ -673,6 +686,16 @@ case $_host_os in
39 _ranlib="arm-linux-ranlib"
40 _ar="arm-linux-ar cru"
41 ;;
42 + crux-arm)
43 + CXXFLAGS="-O2 -finline-functions"
44 + DEFINES="$DEFINES -DUNIX -DBSPF_UNIX -DHAVE_GETTIMEOFDAY -DHAVE_INTTYPES"
45 + MODULES="$MODULES $SRC/unix"
46 + INCLUDES="$INCLUDES -I$SRC/unix -I$SRC/emucore $ZLIB_CFLAGS"
47 +
48 + _ranlib="arm-unknown-linux-gnu-ranlib"
49 + _ar="arm-unknown-linux-gnu-ar cru"
50 + _strip="arm-unknown-linux-gnu-strip"
51 + ;;
52 *)
53 echo "WARNING: host system not currenty supported"
54 exit