We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 615

Summary: SDL - Patch to add support for Haiku
Product: SDL Reporter: Scott McCreary <scottmc2>
Component: buildAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2 CC: scottmc2
Version: 1.2.13Keywords: target-1.2.14
Hardware: x86   
OS: Other   
URL: http://ports.haiku-files.org/browser/haikuports/trunk/media-libs/libsdl/SDL-1.2.13-haiku.diff
Attachments: I checked out the current 1.2 branch and applied the previous haiku patch

Description Scott McCreary 2008-08-21 10:48:14 UTC
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/
-scottmc
Comment 1 Scott McCreary 2008-10-21 17:08:03 UTC
Created attachment 281 [details]
I checked out the current 1.2 branch and applied the previous haiku patch

We still need to copy in a newer config.guess and config.sub as haiku wasn't defined in those until April 2008.
Then run:
cat $(aclocal --print-ac-dir)/libtool.m4 >> acinclude.m4
libtoolize --force --copy
aclocal
automake
autoconf
./configure --prefix=/boot/common
make
make install 

I tried just running ./autogen.sh but then the shared libraries weren't able to build.
-scottmc
Comment 2 Ryan C. Gordon 2009-09-13 16:33:29 UTC
Tagging this bug with "target-1.2.14" so we can try to resolve it for SDL 1.2.14.

Please note that we may choose to resolve it as WONTFIX. This tag is largely so we have a comprehensive wishlist of bugs to examine for 1.2.14 (and so we can close bugs that we'll never fix, rather than have them live forever in Bugzilla).

--ryan.
Comment 3 Sam Lantinga 2009-09-21 02:21:20 UTC
This is fixed in subversion, thanks!