pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio Remove original OpenAL implementation (audio/ope...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fbbf54530547
branches:  trunk
changeset: 335783:fbbf54530547
user:      nia <nia%pkgsrc.org@localhost>
date:      Mon Jul 01 12:30:20 2019 +0000

description:
Remove original OpenAL implementation (audio/openal).

As far as I can tell, no package is using this. They are all using
audio/openal-soft instead.

Brief history of OpenAL: This is the original reference implementation,
developed by Loki Software and Creative Labs. This was eventually made
proprietary, the open source version packaged here was discontinued, and
OpenAL-Soft was developed as a replacement. This package has pointed
to gentoo distfiles for about 10 years since the original distfiles
disappeared.

We've apparently been planning this since 2016 but nobody got around to it:

https://mail-index.netbsd.org/pkgsrc-users/2016/07/16/msg023531.html

diffstat:

 audio/Makefile                                                 |   3 +-
 audio/openal/DESCR                                             |   6 -
 audio/openal/Makefile                                          |  52 ---------
 audio/openal/PLIST                                             |   7 -
 audio/openal/buildlink3.mk                                     |  12 --
 audio/openal/distinfo                                          |  14 --
 audio/openal/patches/patch-aa                                  |  57 ----------
 audio/openal/patches/patch-ab                                  |  24 ----
 audio/openal/patches/patch-ac                                  |  13 --
 audio/openal/patches/patch-ad                                  |  13 --
 audio/openal/patches/patch-ae                                  |  12 --
 audio/openal/patches/patch-common_include_AL_alc.h             |  42 -------
 audio/openal/patches/patch-src_arch_i386_x86__floatmul.c       |  34 -----
 audio/openal/patches/patch-src_backends_alc__backend__darwin.c |  51 --------
 14 files changed, 1 insertions(+), 339 deletions(-)

diffs (truncated from 406 to 300 lines):

diff -r c7ba6b026fc2 -r fbbf54530547 audio/Makefile
--- a/audio/Makefile    Mon Jul 01 12:08:51 2019 +0000
+++ b/audio/Makefile    Mon Jul 01 12:30:20 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.557 2019/06/09 15:46:52 wiz Exp $
+# $NetBSD: Makefile,v 1.558 2019/07/01 12:30:20 nia Exp $
 #
 
 COMMENT=       Audio tools
@@ -351,7 +351,6 @@
 SUBDIR+=       nspmod
 SUBDIR+=       ocp
 SUBDIR+=       oggasm
-SUBDIR+=       openal
 SUBDIR+=       openal-soft
 SUBDIR+=       opencore-amr
 SUBDIR+=       opus-tools
diff -r c7ba6b026fc2 -r fbbf54530547 audio/openal/DESCR
--- a/audio/openal/DESCR        Mon Jul 01 12:08:51 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-OpenAL is a 3D positional spatialized sound library analogous to OpenGL:
-instead of micromanaging each aspect of sound playback and effect, the
-application writer may limit himself to placing sounds in the scene and
-letting the native OpenAL implementation determine the correct amount of
-pitch alteration, gain attenuation, phase shift, etc., required to render
-the sounds correctly.
diff -r c7ba6b026fc2 -r fbbf54530547 audio/openal/Makefile
--- a/audio/openal/Makefile     Mon Jul 01 12:08:51 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,52 +0,0 @@
-# $NetBSD: Makefile,v 1.33 2016/06/01 15:00:25 richard Exp $
-
-DISTNAME=      openal-0.0.8
-PKGREVISION=   6
-CATEGORIES=    audio
-MASTER_SITES=  ${MASTER_SITE_GENTOO:=distfiles/}
-
-MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      http://www.openal.org/
-COMMENT=       3D positional spatialized sound library
-LICENSE=       gnu-gpl-v2
-
-USE_TOOLS+=            gmake makeinfo
-USE_LIBTOOL=           yes
-GNU_CONFIGURE=         yes
-
-PTHREAD_AUTO_VARS=     yes
-
-INFO_FILES=            yes
-INSTALLATION_DIRS=     ${PKGINFODIR} include/AL
-PKGCONFIG_OVERRIDE=    admin/pkgconfig/openal.pc.in
-REPLACE_SH=            admin/pkgconfig/openal-config.in
-LIBS+=                 ${LIBOSSAUDIO}
-
-CPPFLAGS.SunOS+=       -D__EXTENSIONS__
-
-SUBST_CLASSES+=                fixdev
-SUBST_STAGE.fixdev=    post-configure
-SUBST_FILES.fixdev=    src/backends/alc_backend_bsd.c
-SUBST_SED.fixdev=      -e 's;/dev/dsp;${DEVOSSSOUND};g'
-
-.include "../../mk/bsd.prefs.mk"
-
-.if !empty(MACHINE_PLATFORM:MDarwin-10.*-*)
-CONFIGURE_ENV+=                NASM_FORMAT="-f macho"
-.endif
-
-.if ${OPSYS} == "SunOS"
-.  if ${ABI:U} == "64"
-CONFIGURE_ENV+=        NASM_FORMAT="-f elf64"
-.  else
-CONFIGURE_ENV+=        NASM_FORMAT="-f elf32"
-.  endif
-CONFIGURE_ENV+=        NM="${NM:Unm} -p"
-LDFLAGS+=      -Wl,-zdefs
-.endif
-
-BUILD_DEPENDS+=        nasm>=0.98:../../devel/nasm
-
-.include "../../mk/pthread.buildlink3.mk"
-.include "../../mk/oss.buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
diff -r c7ba6b026fc2 -r fbbf54530547 audio/openal/PLIST
--- a/audio/openal/PLIST        Mon Jul 01 12:08:51 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-@comment $NetBSD: PLIST,v 1.7 2009/06/14 17:32:19 joerg Exp $
-bin/openal-config
-include/AL/al.h
-include/AL/alc.h
-include/AL/alext.h
-lib/libopenal.la
-lib/pkgconfig/openal.pc
diff -r c7ba6b026fc2 -r fbbf54530547 audio/openal/buildlink3.mk
--- a/audio/openal/buildlink3.mk        Mon Jul 01 12:08:51 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-# $NetBSD: buildlink3.mk,v 1.8 2009/03/20 19:23:58 joerg Exp $
-
-BUILDLINK_TREE+=       openal
-
-.if !defined(OPENAL_BUILDLINK3_MK)
-OPENAL_BUILDLINK3_MK:=
-
-BUILDLINK_API_DEPENDS.openal+= openal>=0.0.8
-BUILDLINK_PKGSRCDIR.openal?=   ../../audio/openal
-.endif # OPENAL_BUILDLINK3_MK
-
-BUILDLINK_TREE+=       -openal
diff -r c7ba6b026fc2 -r fbbf54530547 audio/openal/distinfo
--- a/audio/openal/distinfo     Mon Jul 01 12:08:51 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-$NetBSD: distinfo,v 1.18 2015/11/03 01:12:44 agc Exp $
-
-SHA1 (openal-0.0.8.tar.gz) = 31aaedc18bd26759bd51f4fa495bc4ccb08acb3e
-RMD160 (openal-0.0.8.tar.gz) = 29368dbceea7cfd8b5c520b9e0f0cfdc7324e265
-SHA512 (openal-0.0.8.tar.gz) = 6cb254904c1b22843572a6e54584716778a7b4d6542606c099858b8fc16b644912f68eb89acd0ad9a307aad15405d5d34db10530dcf2f63b3aa082c34c75d92b
-Size (openal-0.0.8.tar.gz) = 870671 bytes
-SHA1 (patch-aa) = 9014e279338650f8a0066b50bdc89f0341d00dc0
-SHA1 (patch-ab) = df734f669866c728ede17d1bfc809ec6a31c43d2
-SHA1 (patch-ac) = a8911a1c8f421c9043df3ed5d7054a30f92eb635
-SHA1 (patch-ad) = c740552ebcb4f846faa7ac17140753a6aac4393c
-SHA1 (patch-ae) = 590a40890ccfe488248ef9d58c8991c07f0422d7
-SHA1 (patch-common_include_AL_alc.h) = 22ee2edf133c5691487fc8628d3ef25d871dcb0d
-SHA1 (patch-src_arch_i386_x86__floatmul.c) = 88d050249673393f702a6c3dd124650656296a4b
-SHA1 (patch-src_backends_alc__backend__darwin.c) = f1ae045dd05e35f76cebaec2e47949a6e507fe4f
diff -r c7ba6b026fc2 -r fbbf54530547 audio/openal/patches/patch-aa
--- a/audio/openal/patches/patch-aa     Mon Jul 01 12:08:51 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,57 +0,0 @@
-$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     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 <sys/types.h>
-+#include <sys/soundcard.h>
-+#elif defined(__NetBSD__) || defined(__OpenBSD__)
-+#include <soundcard.h>
-+#else
- #include <sys/soundcard.h>
-+#endif
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <sys/ioctl.h>
- #include <sys/mman.h>
-+#include <sys/select.h>
- #include <sys/stat.h>
- #include <sys/time.h>
- #include <sys/types.h>
-@@ -210,7 +226,11 @@
- 
-       handle_fd = *(int *) handle;
- 
-+#if defined(__NetBSD__) || defined(__OpenBSD__)
-+      if(ioctl(handle_fd, SNDCTL_DSP_RESET, NULL) < 0) {
-+#else
-       if(ioctl(handle_fd, SNDCTL_DSP_RESET) < 0) {
-+#endif
- #ifdef DEBUG_MAXIMUS
-               fprintf(stderr, "Couldn't reset dsp\n");
- #endif
-@@ -385,7 +405,7 @@
- static void *grab_read_native(void)
- {
-       fprintf(stderr,"grab_read_native Not implemented! (%s:%d)\n",__FILE__,__LINE__);
--      return;
-+      return NULL;
- }
- 
- void *
diff -r c7ba6b026fc2 -r fbbf54530547 audio/openal/patches/patch-ab
--- a/audio/openal/patches/patch-ab     Mon Jul 01 12:08:51 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-$NetBSD: patch-ab,v 1.5 2007/09/15 11:45:57 joerg Exp $
-
---- admin/pkgconfig/openal-config.in.orig      2006-02-11 09:36:55.000000000 +0000
-+++ admin/pkgconfig/openal-config.in
-@@ -6,8 +6,8 @@ bindir="@bindir@"
- includedir="@includedir@"
- libdir="@libdir@"
- PACKAGE_VERSION="@PACKAGE_VERSION@"
--# PTHREAD_CFLAGS="@PTHREAD_CFLAGS@"
--# PTHREAD_LIBS="@PTHREAD_LIBS@"
-+PTHREAD_CFLAGS="@PTHREAD_CFLAGS@"
-+PTHREAD_LIBS="@PTHREAD_LIBS@"
- 
- openal_dynamic_ldflags="-lopenal"
- # TODO: configure should provide the following...
-@@ -165,7 +165,7 @@ if test "$echo_libs" = "yes"; then
-   if test "${libdir}" = "/usr/lib" ; then
-     libpathflag=""
-   else
--    libpathflag="-L${libdir}"
-+    libpathflag="-Wl,-R${libdir} -L${libdir}"
-   fi
-   if test "${static_libs}" = "yes"; then
-      ldflags="${openal_static_ldflags}"
diff -r c7ba6b026fc2 -r fbbf54530547 audio/openal/patches/patch-ac
--- a/audio/openal/patches/patch-ac     Mon Jul 01 12:08:51 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-ac,v 1.3 2007/08/30 15:01:46 joerg Exp $
-
---- configure.ac.orig  2007-08-30 14:14:55.000000000 +0000
-+++ configure.ac
-@@ -648,7 +648,7 @@ if test "x$enable_bsd" = xno; then
-   openal_backend_bsd_support=disabled
- else
-   case "$target" in
--    *bsd*) openal_backend_bsd_support=static ;;
-+    *bsd* | *dragonfly*) openal_backend_bsd_support=static ;;
-     *) openal_backend_bsd_support=none
-        if test "x$enable_bsd" = xyes; then
-          AC_MSG_WARN([--enable-bsd ignored because this is no BSD build.])
diff -r c7ba6b026fc2 -r fbbf54530547 audio/openal/patches/patch-ad
--- a/audio/openal/patches/patch-ad     Mon Jul 01 12:08:51 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-ad,v 1.4 2007/08/30 15:01:46 joerg Exp $
-
---- configure.orig     2007-08-30 14:15:59.000000000 +0000
-+++ configure
-@@ -23233,7 +23233,7 @@ if test "x$enable_bsd" = xno; then
-   openal_backend_bsd_support=disabled
- else
-   case "$target" in
--    *bsd*) openal_backend_bsd_support=static ;;
-+    *bsd* | *dragonfly*) openal_backend_bsd_support=static ;;
-     *) openal_backend_bsd_support=none
-        if test "x$enable_bsd" = xyes; then
-          { echo "$as_me:$LINENO: WARNING: --enable-bsd ignored because this is no BSD build." >&5
diff -r c7ba6b026fc2 -r fbbf54530547 audio/openal/patches/patch-ae
--- a/audio/openal/patches/patch-ae     Mon Jul 01 12:08:51 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-$NetBSD: patch-ae,v 1.1 2009/02/16 12:46:00 drochner Exp $
-
---- admin/pkgconfig/openal.pc.in.orig  2006-02-11 10:36:55.000000000 +0100
-+++ admin/pkgconfig/openal.pc.in
-@@ -5,7 +5,6 @@ includedir=@includedir@
- 
- Name: OpenAL
- Description:  OpenAL is a cross-platform 3D audio API.
--Requires: @requirements@
- Version: @PACKAGE_VERSION@
- Libs: -L${libdir} -lopenal
- Cflags: -I${includedir}
diff -r c7ba6b026fc2 -r fbbf54530547 audio/openal/patches/patch-common_include_AL_alc.h
--- a/audio/openal/patches/patch-common_include_AL_alc.h        Mon Jul 01 12:08:51 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-$NetBSD: patch-common_include_AL_alc.h,v 1.1 2011/08/22 13:36:31 wiz Exp $
-
-gcc-4.5 doesn't like this.
-
---- common/include/AL/alc.h.orig       2006-02-11 09:36:55.000000000 +0000
-+++ common/include/AL/alc.h
-@@ -187,7 +187,7 @@ ALC_API void            ALC_APIENTRY alc
- 
- ALC_API void            ALC_APIENTRY alcDestroyContext( ALCcontext *context );
- 
--ALC_API ALCcontext *    ALC_APIENTRY alcGetCurrentContext( ALCvoid );
-+ALC_API ALCcontext *    ALC_APIENTRY alcGetCurrentContext( void );
- 
- ALC_API ALCdevice*      ALC_APIENTRY alcGetContextsDevice( ALCcontext *context );
- 
-@@ -238,7 +238,7 @@ ALC_API void            ALC_APIENTRY alc
- 
- ALC_API void            ALC_APIENTRY alcCaptureStop( ALCdevice *device );
- 
--ALC_API void            ALC_APIENTRY alcCaptureSamples( ALCdevice *device, ALCvoid *buffer, ALCsizei samples );
-+ALC_API void            ALC_APIENTRY alcCaptureSamples( ALCdevice *device, void *buffer, ALCsizei samples );
- 
- /*
-  * Pointer-to-function types, useful for dynamically getting ALC entry points.
-@@ -248,7 +248,7 @@ typedef ALCboolean     (ALC_APIENTRY *LP
- typedef void           (ALC_APIENTRY *LPALCPROCESSCONTEXT)( ALCcontext *context );
- typedef void           (ALC_APIENTRY *LPALCSUSPENDCONTEXT)( ALCcontext *context );
- typedef void           (ALC_APIENTRY *LPALCDESTROYCONTEXT)( ALCcontext *context );
--typedef ALCcontext *   (ALC_APIENTRY *LPALCGETCURRENTCONTEXT)( ALCvoid );



Home | Main Index | Thread Index | Old Index