Hi, I have just build RG on FreeBSD, mostly it was straight forward - thankfully someone has ported alsa-lib :). I have attached the needed diffs.
- The PTHREAD_* diff is necessary because in FreeBSD (now anyway) it is an enum not a define. I would have thought that by now GLibC has the non-_NP suffixed version available though. Perhaps it can be changed that way? - The bash -> sh change works for me, I don't think it will cause a problem on Linux. I can't see any bashisms in the script anyway. - I am not sure if the configure change will still work on Linux, I don't have a handy system to test it ATM. - The alloca change is annoying but I am not sure of a portable solution. One thing that doesn't work is playback, it doesn't move. I note that it doesn't list any time sources so perhaps that is the issue? I don't know how ALSA does MIDI or how RG uses it so I am only guessing. If it's a limitation in the FreeBSD port of alsa-lib please let me know and I will try and resolve it. Thanks! -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
Index: src/sound/AudioProcess.cpp =================================================================== --- src/sound/AudioProcess.cpp (revision 11819) +++ src/sound/AudioProcess.cpp (working copy) @@ -31,7 +31,11 @@ #include <cmath> +#ifdef __FreeBSD__ +#include <stdlib.h> +#else #include <alloca.h> +#endif //#define DEBUG_THREAD_CREATE_DESTROY 1 //#define DEBUG_BUSS_MIXER 1 Index: src/sound/AudioFileTimeStretcher.cpp =================================================================== --- src/sound/AudioFileTimeStretcher.cpp (revision 11819) +++ src/sound/AudioFileTimeStretcher.cpp (working copy) @@ -26,7 +26,11 @@ #include <iostream> #include <fstream> +#ifdef __FreeBSD__ +#include <stdlib.h> +#else #include <alloca.h> +#endif namespace Rosegarden { Index: src/sound/MappedStudio.cpp =================================================================== --- src/sound/MappedStudio.cpp (revision 11819) +++ src/sound/MappedStudio.cpp (working copy) @@ -296,7 +296,7 @@ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); #else -#ifdef PTHREAD_MUTEX_RECURSIVE +#if defined(PTHREAD_MUTEX_RECURSIVE) || defined(__FreeBSD__) pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); #else Index: src/sound/DSSIPluginInstance.cpp =================================================================== --- src/sound/DSSIPluginInstance.cpp (revision 11819) +++ src/sound/DSSIPluginInstance.cpp (working copy) @@ -23,7 +23,11 @@ #include <misc/Strings.h> +#ifdef __FreeBSD__ +#include <stdlib.h> +#else #include <alloca.h> +#endif //#define DEBUG_DSSI 1 //#define DEBUG_DSSI_PROCESS 1 Index: src/sound/AudioFileManager.cpp =================================================================== --- src/sound/AudioFileManager.cpp (revision 11819) +++ src/sound/AudioFileManager.cpp (working copy) @@ -78,7 +78,7 @@ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); #else -#ifdef PTHREAD_MUTEX_RECURSIVE +#if defined(PTHREAD_MUTEX_RECURSIVE) || defined(__FreeBSD__) pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); #else Index: scripts/extract-data-files =================================================================== --- scripts/extract-data-files (revision 11819) +++ scripts/extract-data-files (working copy) @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # extract-data-files # Index: configure.ac =================================================================== --- configure.ac (revision 11819) +++ configure.ac (working copy) @@ -58,8 +58,9 @@ fi AC_PATH_PROG([SHA1SUM],[sha1sum]) +AC_PATH_PROG([SHA1SUM],[sha1 -q]) if test x$SHA1SUM = x ; then - AC_MSG_ERROR([Failed to find required sha1sum program.]) + AC_MSG_ERROR([Failed to find required sha1sum or sha1 programs.]) fi AC_PATH_PROG([CUT],[cut])
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ Rosegarden-devel mailing list Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel