diff options
author | asau <asau@pkgsrc.org> | 2013-12-15 20:33:47 +0000 |
---|---|---|
committer | asau <asau@pkgsrc.org> | 2013-12-15 20:33:47 +0000 |
commit | f6ab9ed0c4e4e7b4929b70b9bf0d1501cd2ca903 (patch) | |
tree | 6aa7eb8eb18627d396926d7058a78b3194fef1f4 /audio/openal | |
parent | 79a7c95f9cc815566690c529c6a226a240ad5e10 (diff) | |
download | pkgsrc-f6ab9ed0c4e4e7b4929b70b9bf0d1501cd2ca903.tar.gz |
Fix the build on FreeBSD 9, FreeBSD uses sys/soundcard.h nowadays.
Diffstat (limited to 'audio/openal')
-rw-r--r-- | audio/openal/distinfo | 4 | ||||
-rw-r--r-- | audio/openal/patches/patch-aa | 16 |
2 files changed, 12 insertions, 8 deletions
diff --git a/audio/openal/distinfo b/audio/openal/distinfo index 6a1cc9a5dff..e52c21062b1 100644 --- a/audio/openal/distinfo +++ b/audio/openal/distinfo @@ -1,9 +1,9 @@ -$NetBSD: distinfo,v 1.14 2012/04/17 17:40:49 joerg Exp $ +$NetBSD: distinfo,v 1.15 2013/12/15 20:33:47 asau Exp $ SHA1 (openal-0.0.8.tar.gz) = 31aaedc18bd26759bd51f4fa495bc4ccb08acb3e RMD160 (openal-0.0.8.tar.gz) = 29368dbceea7cfd8b5c520b9e0f0cfdc7324e265 Size (openal-0.0.8.tar.gz) = 870671 bytes -SHA1 (patch-aa) = 6beefc3db89261d96d869ce54c47b314d5242fbf +SHA1 (patch-aa) = 9014e279338650f8a0066b50bdc89f0341d00dc0 SHA1 (patch-ab) = df734f669866c728ede17d1bfc809ec6a31c43d2 SHA1 (patch-ac) = a8911a1c8f421c9043df3ed5d7054a30f92eb635 SHA1 (patch-ad) = c740552ebcb4f846faa7ac17140753a6aac4393c diff --git a/audio/openal/patches/patch-aa b/audio/openal/patches/patch-aa index 1cac0f79b5c..99d658529b0 100644 --- a/audio/openal/patches/patch-aa +++ b/audio/openal/patches/patch-aa @@ -1,21 +1,25 @@ -$NetBSD: patch-aa,v 1.4 2012/04/17 17:40:50 joerg Exp $ +$NetBSD: patch-aa,v 1.5 2013/12/15 20:33:47 asau Exp $ --- src/backends/alc_backend_bsd.c.orig 2006-01-05 15:11:20.000000000 +0000 -+++ src/backends/alc_backend_bsd.c -@@ -9,15 +9,27 @@ ++++ src/backends/alc_backend_bsd.c 2013-12-15 20:30:26.204504830 +0000 +@@ -9,15 +9,31 @@ */ #include "al_siteconfig.h" +#ifdef __NetBSD__ +#define _NETBSD_SOURCE +#endif ++#ifdef __FreeBSD__ ++#define __BSD_VISIBLE 1 ++#endif + #include <AL/al.h> +#include <AL/alext.h> #include <assert.h> #include <fcntl.h> +#if defined(__FreeBSD__) -+#include <machine/soundcard.h> ++#include <sys/types.h> ++#include <sys/soundcard.h> +#elif defined(__NetBSD__) || defined(__OpenBSD__) +#include <soundcard.h> +#else @@ -30,7 +34,7 @@ $NetBSD: patch-aa,v 1.4 2012/04/17 17:40:50 joerg Exp $ #include <sys/stat.h> #include <sys/time.h> #include <sys/types.h> -@@ -210,7 +222,11 @@ void release_native(void *handle) { +@@ -210,7 +226,11 @@ handle_fd = *(int *) handle; @@ -42,7 +46,7 @@ $NetBSD: patch-aa,v 1.4 2012/04/17 17:40:50 joerg Exp $ #ifdef DEBUG_MAXIMUS fprintf(stderr, "Couldn't reset dsp\n"); #endif -@@ -385,7 +401,7 @@ alcBackendSetAttributesNative_(ALC_OpenM +@@ -385,7 +405,7 @@ static void *grab_read_native(void) { fprintf(stderr,"grab_read_native Not implemented! (%s:%d)\n",__FILE__,__LINE__); |