f77d18f8b7
There were two problems building openMSX on NetBSD: 1) The was a name conflict with the funcion bswap16. This only appeared on one file, so the function was prefixed with msx_ to solve it. 2) freetype-config is not located on $PREFIX on NetBSD with native X11. Normally the wrappers abstract this but openmsx was making assumptions and using absolute paths. The solution was to set the distroRoot value to "None" which tells the configure process to not use a path and those finds freetype-configure through the search path. I compiled it, installed it, and executed openMSX with these patches.
25 lines
866 B
C++
25 lines
866 B
C++
$NetBSD: patch-src_video_AviWriter.cc,v 1.1 2012/08/27 13:27:33 marino Exp $
|
|
|
|
NetBSD already has bswap16 defined, so rename this function to avoid
|
|
name conflict.
|
|
|
|
--- src/video/AviWriter.cc.orig 2012-08-12 12:29:37.000000000 +0000
|
|
+++ src/video/AviWriter.cc
|
|
@@ -259,7 +259,7 @@ void AviWriter::addAviChunk(const char*
|
|
writeLE4(&index[idxsize + 12], size);
|
|
}
|
|
|
|
-static inline unsigned short bswap16(unsigned short val)
|
|
+static inline unsigned short msx_bswap16(unsigned short val)
|
|
{
|
|
return ((val & 0xFF00) >> 8) | ((val & 0x00FF) << 8);
|
|
}
|
|
@@ -277,7 +277,7 @@ void AviWriter::addFrame(FrameSource* fr
|
|
if (OPENMSX_BIGENDIAN) {
|
|
VLA(short, buf, samples);
|
|
for (unsigned i = 0; i < samples; ++i) {
|
|
- buf[i] = bswap16(sampleData[i]);
|
|
+ buf[i] = msx_bswap16(sampleData[i]);
|
|
}
|
|
addAviChunk("01wb", samples * sizeof(short), buf, 0);
|
|
} else {
|