Porting to NetBSD

I have ported SDL to NetBSD and think it would be nice if this could
be included in the source. Where should I send the patches, and do you
have any preferences about flags to diff etc.? (provided you are
interested of the patches, that is…)

I have however a minor configuration problem (and as far as I can see,
this will also prevent OpenBSD from building.) I basically duplicated
the OpenBSD config goo, and it copies some audio source from solaris/linux
using COPY_ARCH_SRC that copies the files to src/audio. But the
Makefile.am lives in src/audio/openbsd and requires that the source
is located in the same directory (or have I missed something?) What is
the preferred way of solving this? Making a new COPY_ function, trying
to persuade aoutomake to get files from the parent directory, or
something other? (I really hate automatically generated makefiles.
Makefiles are evil enough when written by humans… :wink:

/Krister

I have ported SDL to NetBSD and think it would be nice if this could
be included in the source. Where should I send the patches, and do you
have any preferences about flags to diff etc.? (provided you are
interested of the patches, that is…)

Go ahead and send me the patches at @slouken

I have however a minor configuration problem (and as far as I can see,
this will also prevent OpenBSD from building.)

Yup. I changed the automake stuff so that it would build an architecture
dependent sub-library, but unfortunately the OpenBSD and NetBSD platforms
use code originally written for other platforms.

The easy way to solve this would be to just copy the files over, and
remember to update them when the original files change.

A harder way is to find out how to trick automake and autoconf into
doing “the right thing”, which is really frustrating when automake
really isn’t designed to handle multi-platform source.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software