pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/alsa-plugins-oss Import alsa-plugins-oss version...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cae8c34f00ab
branches:  trunk
changeset: 551695:cae8c34f00ab
user:      jmcneill <jmcneill%pkgsrc.org@localhost>
date:      Fri Dec 19 04:03:22 2008 +0000

description:
Import alsa-plugins-oss version 1.0.18.

The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
functionality to the Linux operating system. ALSA has the following
significant features:

    * Efficient support for all types of audio interfaces, from consumer sound
      cards to professional multichannel audio interfaces.
    * Fully modularized sound drivers.
    * SMP and thread-safe design.
    * User space library (alsa-lib) to simplify application programming and
      provide higher level functionality.
    * Support for the older Open Sound System (OSS) API, providing binary
      compatibility for most OSS programs.

This package provides an OSS plugin for ALSA.

diffstat:

 audio/alsa-plugins-oss/DESCR            |  14 ++++++++++
 audio/alsa-plugins-oss/Makefile         |  29 ++++++++++++++++++++++
 audio/alsa-plugins-oss/PLIST            |   3 ++
 audio/alsa-plugins-oss/distinfo         |   8 ++++++
 audio/alsa-plugins-oss/patches/patch-aa |  22 ++++++++++++++++
 audio/alsa-plugins-oss/patches/patch-ab |  16 ++++++++++++
 audio/alsa-plugins-oss/patches/patch-ac |  43 +++++++++++++++++++++++++++++++++
 7 files changed, 135 insertions(+), 0 deletions(-)

diffs (163 lines):

diff -r 03c58849611a -r cae8c34f00ab audio/alsa-plugins-oss/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alsa-plugins-oss/DESCR      Fri Dec 19 04:03:22 2008 +0000
@@ -0,0 +1,14 @@
+The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
+functionality to the Linux operating system. ALSA has the following
+significant features:
+
+    * Efficient support for all types of audio interfaces, from consumer sound
+      cards to professional multichannel audio interfaces.
+    * Fully modularized sound drivers.
+    * SMP and thread-safe design.
+    * User space library (alsa-lib) to simplify application programming and
+      provide higher level functionality.
+    * Support for the older Open Sound System (OSS) API, providing binary
+      compatibility for most OSS programs.
+
+This package provides an OSS plugin for ALSA.
diff -r 03c58849611a -r cae8c34f00ab audio/alsa-plugins-oss/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alsa-plugins-oss/Makefile   Fri Dec 19 04:03:22 2008 +0000
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/12/19 04:03:22 jmcneill Exp $
+#
+
+DISTNAME=      alsa-plugins-1.0.18
+PKGNAME=       ${DISTNAME:S/plugins/plugins-oss/}
+CATEGORIES=    audio
+MASTER_SITES=  ftp://ftp.alsa-project.org/pub/plugins/
+EXTRACT_SUFX=  .tar.bz2
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://www.alsa-project.org/
+COMMENT=       Advanced Linux Sound Architecture (ALSA) - OSS plugin
+
+GNU_CONFIGURE= yes
+USE_TOOLS=     pkg-config gmake
+USE_LIBTOOL=   yes
+
+MAKE_ENV+=     LIBOSSAUDIO=${LIBOSSAUDIO:Q}
+CFLAGS+=       -DDEVOSSAUDIO=\"${DEVOSSAUDIO:U/dev/dsp}\"
+
+do-build:
+       cd ${WRKSRC}/oss && ${GMAKE}
+
+do-install:
+       cd ${WRKSRC}/oss && ${GMAKE} install
+
+.include "../../audio/alsa-lib/buildlink3.mk"
+.include "../../mk/oss.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 03c58849611a -r cae8c34f00ab audio/alsa-plugins-oss/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alsa-plugins-oss/PLIST      Fri Dec 19 04:03:22 2008 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/12/19 04:03:22 jmcneill Exp $
+lib/alsa-lib/libasound_module_ctl_oss.la
+lib/alsa-lib/libasound_module_pcm_oss.la
diff -r 03c58849611a -r cae8c34f00ab audio/alsa-plugins-oss/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alsa-plugins-oss/distinfo   Fri Dec 19 04:03:22 2008 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/12/19 04:03:22 jmcneill Exp $
+
+SHA1 (alsa-plugins-1.0.18.tar.bz2) = 33b5eca861de35a6eeb47862f24a8663af56cd0a
+RMD160 (alsa-plugins-1.0.18.tar.bz2) = 83b570d5346c7c79f5fe628e381ba1cf8e5a69db
+Size (alsa-plugins-1.0.18.tar.bz2) = 312656 bytes
+SHA1 (patch-aa) = af3bc837cab95c8f042b6e041c89b03e171f1a73
+SHA1 (patch-ab) = 9cf0bda9f1928f46d0d5eac9464b790710ea2fda
+SHA1 (patch-ac) = 13da103ce3daad29d3c715f8f7d58dcd7bb9a72c
diff -r 03c58849611a -r cae8c34f00ab audio/alsa-plugins-oss/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alsa-plugins-oss/patches/patch-aa   Fri Dec 19 04:03:22 2008 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/12/19 04:03:22 jmcneill Exp $
+
+--- configure.orig     2008-10-29 08:47:45.000000000 -0400
++++ configure
+@@ -20252,7 +20252,7 @@ if test "${ac_cv_lib_asound_snd_pcm_iopl
+   echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+   ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lasound -ldl $LIBS"
++LIBS="-lasound $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h.  */
+ _ACEOF
+@@ -21974,6 +21974,8 @@ do
+   case $ac_option in
+   # Handling of the options.
+   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
++      : Avoid regenerating within pkgsrc
++      exit 0
+     ac_cs_recheck=: ;;
+   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
+     echo "$ac_cs_version"; exit ;;
diff -r 03c58849611a -r cae8c34f00ab audio/alsa-plugins-oss/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alsa-plugins-oss/patches/patch-ab   Fri Dec 19 04:03:22 2008 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-ab,v 1.1.1.1 2008/12/19 04:03:22 jmcneill Exp $
+
+--- oss/ctl_oss.c.orig 2008-10-29 08:42:13.000000000 -0400
++++ oss/ctl_oss.c
+@@ -26,7 +26,11 @@
+ #include <sys/ioctl.h>
+ #include <alsa/asoundlib.h>
+ #include <alsa/control_external.h>
++#ifdef __linux__
+ #include <linux/soundcard.h>
++#else
++#include <sys/soundcard.h>
++#endif
+ 
+ typedef struct snd_ctl_oss {
+       snd_ctl_ext_t ext;
diff -r 03c58849611a -r cae8c34f00ab audio/alsa-plugins-oss/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alsa-plugins-oss/patches/patch-ac   Fri Dec 19 04:03:22 2008 +0000
@@ -0,0 +1,43 @@
+$NetBSD: patch-ac,v 1.1.1.1 2008/12/19 04:03:22 jmcneill Exp $
+
+--- oss/pcm_oss.c.orig 2008-10-29 08:42:13.000000000 -0400
++++ oss/pcm_oss.c
+@@ -22,7 +22,11 @@
+ #include <sys/ioctl.h>
+ #include <alsa/asoundlib.h>
+ #include <alsa/pcm_external.h>
++#ifdef __linux__
+ #include <linux/soundcard.h>
++#else
++#include <sys/soundcard.h>
++#endif
+ 
+ typedef struct snd_pcm_oss {
+       snd_pcm_ioplug_t io;
+@@ -116,7 +120,7 @@ static int oss_drain(snd_pcm_ioplug_t *i
+       snd_pcm_oss_t *oss = io->private_data;
+ 
+       if (io->stream == SND_PCM_STREAM_PLAYBACK)
+-              ioctl(oss->fd, SNDCTL_DSP_SYNC);
++              ioctl(oss->fd, SNDCTL_DSP_SYNC, NULL);
+       return 0;
+ }
+ 
+@@ -125,7 +129,7 @@ static int oss_prepare(snd_pcm_ioplug_t 
+       snd_pcm_oss_t *oss = io->private_data;
+       int tmp;
+ 
+-      ioctl(oss->fd, SNDCTL_DSP_RESET);
++      ioctl(oss->fd, SNDCTL_DSP_RESET, NULL);
+ 
+       tmp = io->channels;
+       if (ioctl(oss->fd, SNDCTL_DSP_CHANNELS, &tmp) < 0) {
+@@ -355,7 +359,7 @@ static snd_pcm_ioplug_callback_t oss_cap
+ SND_PCM_PLUGIN_DEFINE_FUNC(oss)
+ {
+       snd_config_iterator_t i, next;
+-      const char *device = "/dev/dsp";
++      const char *device = DEVOSSAUDIO;
+       int err;
+       snd_pcm_oss_t *oss;
+       



Home | Main Index | Thread Index | Old Index