Fixed bug #615 SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Mon, 21 Sep 2009 09:18:42 +0000
branchSDL-1.2
changeset 4215d83830711a5b
parent 4214 4250beeb5ad1
child 4216 5b99971a27b4
Fixed bug #615

Scott McCreary 2008-08-21 10:48:14 PDT

This patch adds support for Haiku.
http://ports.haiku-files.org/browser/haikuports/trunk/media-libs/libsdl/SDL-1.2.13-haiku.diff
Haiku is an open-source recreation of BeOS. It has better POSIX compliance
than beOS did, and other improved features, which in some cases causes us to
have to "undo" previous BeOS workarounds.
Here's our port log entry for it, showing the steps to force the changes into
configure and Makefile:
http://ports.haiku-files.org/wiki/media-libs/libsdl/1.2.13/1
Note that this was only tried on 1.2.13 stable so far.
Haiku is using a newer config.guess / config.sub that doesn't yet seem to be in
the released libtool, so we are having to copy it in for now.
http://haiku-files.org/files/optional-packages/
test/testplatform.c
     1.1 --- a/test/testplatform.c	Mon Sep 21 08:58:51 2009 +0000
     1.2 +++ b/test/testplatform.c	Mon Sep 21 09:18:42 2009 +0000
     1.3 @@ -154,6 +154,9 @@
     1.4  		printf("This system is running %s\n",
     1.5  #if __AIX__
     1.6  			"AIX"
     1.7 +#elif __HAIKU__
     1.8 +/* Haiku must appear here before BeOS, since it also defines __BEOS__ */
     1.9 +			"Haiku"
    1.10  #elif __BEOS__
    1.11  			"BeOS"
    1.12  #elif __BSDI__
    1.13 @@ -162,8 +165,6 @@
    1.14  			"Dreamcast"
    1.15  #elif __FREEBSD__
    1.16  			"FreeBSD"
    1.17 -#elif __HAIKU__
    1.18 -			"Haiku"
    1.19  #elif __HPUX__
    1.20  			"HP-UX"
    1.21  #elif __IRIX__