pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/openal-soft openal-soft: Fix build on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/07918fe73d21
branches:  trunk
changeset: 426967:07918fe73d21
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Apr 09 13:35:21 2020 +0000

description:
openal-soft: Fix build on SunOS.

diffstat:

 audio/openal-soft/distinfo                               |   4 ++-
 audio/openal-soft/patches/patch-alc_backends_solaris.cpp |  14 +++++++++++
 audio/openal-soft/patches/patch-include_AL_al.h          |  19 ++++++++++++++++
 3 files changed, 36 insertions(+), 1 deletions(-)

diffs (56 lines):

diff -r d938ea03ec03 -r 07918fe73d21 audio/openal-soft/distinfo
--- a/audio/openal-soft/distinfo        Thu Apr 09 13:29:17 2020 +0000
+++ b/audio/openal-soft/distinfo        Thu Apr 09 13:35:21 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2020/01/25 14:58:13 nia Exp $
+$NetBSD: distinfo,v 1.7 2020/04/09 13:35:21 jperkin Exp $
 
 SHA1 (openal-soft-1.20.1.tar.bz2) = 77c3d2736adf4058ec3e19f26e51fac9b5412ac1
 RMD160 (openal-soft-1.20.1.tar.bz2) = dd53b9aac8710db7344f16fb49c93f9f73af8b6d
@@ -6,3 +6,5 @@
 Size (openal-soft-1.20.1.tar.bz2) = 512971 bytes
 SHA1 (patch-alc_alconfig.cpp) = 0539016dadf1827e5a86700c2db5a96479a8b70d
 SHA1 (patch-alc_backends_alsa.cpp) = 3ee7f86e544d9b33ccbe9422eb87b9540623053a
+SHA1 (patch-alc_backends_solaris.cpp) = 62e7a5bddb5c4ed7f7e4c4889b2234dd778be960
+SHA1 (patch-include_AL_al.h) = 5545de5f606320b64ddd713569c9a86c8552eb46
diff -r d938ea03ec03 -r 07918fe73d21 audio/openal-soft/patches/patch-alc_backends_solaris.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/openal-soft/patches/patch-alc_backends_solaris.cpp  Thu Apr 09 13:35:21 2020 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-alc_backends_solaris.cpp,v 1.1 2020/04/09 13:35:21 jperkin Exp $
+
+Fix SunOS build.
+
+--- alc/backends/solaris.cpp.orig      2020-01-24 07:28:45.000000000 +0000
++++ alc/backends/solaris.cpp
+@@ -29,6 +29,7 @@
+ #include <fcntl.h>
+ #include <stdlib.h>
+ #include <stdio.h>
++#include <string.h>
+ #include <memory.h>
+ #include <unistd.h>
+ #include <errno.h>
diff -r d938ea03ec03 -r 07918fe73d21 audio/openal-soft/patches/patch-include_AL_al.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/openal-soft/patches/patch-include_AL_al.h   Thu Apr 09 13:35:21 2020 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-include_AL_al.h,v 1.1 2020/04/09 13:35:21 jperkin Exp $
+
+Fix SunOS build, int8_t is not always the same as signed char.
+
+--- include/AL/al.h.orig       2020-01-24 07:28:45.000000000 +0000
++++ include/AL/al.h
+@@ -41,7 +41,12 @@ typedef char ALboolean;
+ typedef char ALchar;
+ 
+ /** signed 8-bit 2's complement integer */
++#ifdef __sun
++#include <inttypes.h>
++typedef int8_t ALbyte;
++#else
+ typedef signed char ALbyte;
++#endif
+ 
+ /** unsigned 8-bit integer */
+ typedef unsigned char ALubyte;



Home | Main Index | Thread Index | Old Index