pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/openal Fix the build on FreeBSD 9, FreeBSD uses ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/94da7a1f98b7
branches:  trunk
changeset: 627821:94da7a1f98b7
user:      asau <asau%pkgsrc.org@localhost>
date:      Sun Dec 15 20:33:47 2013 +0000

description:
Fix the build on FreeBSD 9, FreeBSD uses sys/soundcard.h nowadays.

diffstat:

 audio/openal/distinfo         |   4 ++--
 audio/openal/patches/patch-aa |  16 ++++++++++------
 2 files changed, 12 insertions(+), 8 deletions(-)

diffs (66 lines):

diff -r eb5519064844 -r 94da7a1f98b7 audio/openal/distinfo
--- a/audio/openal/distinfo     Sun Dec 15 20:19:08 2013 +0000
+++ b/audio/openal/distinfo     Sun Dec 15 20:33:47 2013 +0000
@@ -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 -r eb5519064844 -r 94da7a1f98b7 audio/openal/patches/patch-aa
--- a/audio/openal/patches/patch-aa     Sun Dec 15 20:19:08 2013 +0000
+++ b/audio/openal/patches/patch-aa     Sun Dec 15 20:33:47 2013 +0000
@@ -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 @@
  #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 @@
  #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__);



Home | Main Index | Thread Index | Old Index