Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

ports supercollider to OpenBSD #683

Merged
merged 2 commits into from

3 participants

@acamari

I'm working on porting supercollider to OpenBSD:

  • Adds preprocessor directives, backride on FreeBSD ones.
  • Adds SC_LID cmake option to enable/disable Linux Input Device support (not present on OpenBSD)
@acamari acamari closed this
@acamari acamari reopened this
@sensestage
@acamari
@timblechmann

hi acamari,

would it be possible that you address the last comment (regarding cmake integration) and update the pull request?
then i'd be fine with merging it

thanks, tim

@acamari

I updated the patch (disabled SC_LID option), and tested it, it builds.

I'm unsure if the reverting was necessary/desirable...

Thanks.

@timblechmann

you can just rebase interactively and remove the SC_LID related changes ... that results in a cleaner git history and makes it easier to read ...

thanks a lot!

acamari added some commits
@acamari acamari make supercollider build on OpenBSD
change FreeBSD-only define preprocessor directives to include OpenBSD.
ec22b6a
@acamari acamari enables Linux Input Device support only in linux... 15c6b09
@acamari

Ok, now rebased interactively, and just uses two commits.

I'll comment tomorrow about run-time errors (which to me seem very deep...)

thanks!

@timblechmann timblechmann merged commit 8211eba into supercollider:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 10, 2012
  1. @acamari

    make supercollider build on OpenBSD

    acamari authored
    change FreeBSD-only define preprocessor directives to include OpenBSD.
  2. @acamari
This page is out of date. Refresh to see the latest.
View
2  common/SC_DirUtils.cpp
@@ -148,7 +148,7 @@ bool sc_IsNonHostPlatformDir(const char *name)
const char a[] = "linux", b[] = "windows", c[]="iphone";
#elif defined(__linux__)
const char a[] = "osx", b[] = "windows", c[]="iphone";
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__OpenBSD__)
const char a[] = "osx", b[] = "windows", c[]="iphone";
#elif defined(_WIN32)
const char a[] = "osx", b[] = "linux", c[]="iphone";
View
4 include/common/SC_Endian.h
@@ -35,9 +35,9 @@
# include <machine/endian.h>
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__OpenBSD__)
-# include <machine/endian.h>
+# include <sys/types.h>
# include <netinet/in.h>
#elif defined(_WIN32)
View
6 lang/CMakeLists.txt
@@ -139,8 +139,10 @@ if(UNIX)
if(ALSA_FOUND)
list(APPEND sclang_sources LangPrimSource/SC_AlsaMIDI.cpp)
endif()
- list(APPEND sclang_sources LangPrimSource/SC_LID.cpp)
- add_definitions(-DHAVE_LID)
+ if(LINUX)
+ list(APPEND sclang_sources LangPrimSource/SC_LID.cpp)
+ add_definitions(-DHAVE_LID)
+ endif(LINUX)
endif(APPLE)
else(UNIX)
endif(UNIX)
View
2  lang/LangPrimSource/PyrPrimitive.cpp
@@ -4177,7 +4177,7 @@ void initMIDIPrimitives();
initMIDIPrimitives();
#endif
-#if !defined(SC_WIN32) && !defined(SC_IPHONE)
+#if !defined(SC_WIN32) && !defined(SC_IPHONE) && !defined(__OpenBSD__)
void initHIDPrimitives();
initHIDPrimitives();
View
4 server/scsynth/SC_ComPort.cpp
@@ -37,9 +37,11 @@
# define bzero( ptr, count ) memset( ptr, 0, count )
#else
#include <netinet/tcp.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
#endif
-#if defined(__linux__) || defined(__FreeBSD__)
+#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#include <unistd.h>
#endif
Something went wrong with that request. Please try again.