diff options
author | joerg <joerg@pkgsrc.org> | 2006-05-29 19:44:24 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-05-29 19:44:24 +0000 |
commit | 4ecb4314aa6810a3d6834493b96df67278f9ff13 (patch) | |
tree | 2241d3d1b8c5f408f4f8380b30819f23de1e9df9 /audio/csound5/patches/patch-am | |
parent | 0461ff04d40fdd0bdd760855a20370a03d089b5d (diff) | |
download | pkgsrc-4ecb4314aa6810a3d6834493b96df67278f9ff13.tar.gz |
Add DragonFly support.
XXX The SCons usage sucks.
Diffstat (limited to 'audio/csound5/patches/patch-am')
-rw-r--r-- | audio/csound5/patches/patch-am | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/audio/csound5/patches/patch-am b/audio/csound5/patches/patch-am index 6559f7a484e..abc3fdf3966 100644 --- a/audio/csound5/patches/patch-am +++ b/audio/csound5/patches/patch-am @@ -1,4 +1,4 @@ -$NetBSD: patch-am,v 1.1.1.1 2006/05/21 22:46:22 ben Exp $ +$NetBSD: patch-am,v 1.2 2006/05/29 19:44:24 joerg Exp $ --- Top/csmodule.c.orig 2006-03-08 15:13:15.000000000 -0800 +++ Top/csmodule.c @@ -7,7 +7,7 @@ $NetBSD: patch-am,v 1.1.1.1 2006/05/21 22:46:22 ben Exp $ #include "csmodule.h" -#if defined(LINUX) -+#if defined(LINUX) || defined(__NetBSD__) ++#if defined(LINUX) || defined(__NetBSD__) || defined(__DragonFly__) #include <dlfcn.h> #elif defined(WIN32) #include <windows.h> @@ -16,7 +16,7 @@ $NetBSD: patch-am,v 1.1.1.1 2006/05/21 22:46:22 ben Exp $ /* default directory to load plugins from if environment variable is not set */ -#if !(defined(_CSOUND_RELEASE_) && (defined(LINUX) || defined(__MACH__))) -+#if !(defined(_CSOUND_RELEASE_) && (defined(LINUX) || defined(__MACH__) || defined(__NetBSD__))) ++#if !(defined(_CSOUND_RELEASE_) && (defined(LINUX) || defined(__MACH__) || defined(__NetBSD__) || defined(__DragonFly__))) # define ENABLE_OPCODEDIR_WARNINGS 1 # ifdef CS_DEFAULT_PLUGINDIR # undef CS_DEFAULT_PLUGINDIR @@ -37,7 +37,7 @@ $NetBSD: patch-am,v 1.1.1.1 2006/05/21 22:46:22 ben Exp $ err = csound->OpenLibrary(&h, libraryPath); if (err) { -#if defined(BETA) && defined(LINUX) -+#if defined(BETA) && (defined(LINUX) || defined(__NetBSD__)) ++#if defined(BETA) && (defined(LINUX) || defined(__NetBSD__) || defined(__DragonFly__)) csound->Warning(csound, "%s", dlerror()); #endif csound->Warning(csound, Str("could not open library '%s' (%d)"), @@ -46,7 +46,7 @@ $NetBSD: patch-am,v 1.1.1.1 2006/05/21 22:46:22 ben Exp $ } -#elif defined(LINUX) -+#elif defined(LINUX) || defined(__NetBSD__) ++#elif defined(LINUX) || defined(__NetBSD__) || defined(__DragonFly__) PUBLIC int csoundOpenLibrary(void **library, const char *libraryPath) { |