diff options
author | jmcneill <jmcneill@pkgsrc.org> | 2008-12-19 04:03:22 +0000 |
---|---|---|
committer | jmcneill <jmcneill@pkgsrc.org> | 2008-12-19 04:03:22 +0000 |
commit | 78110d132047c99968290b3b0ac6e96e402d52e2 (patch) | |
tree | ca887d2291570c67d19919be0ff88fa22c79ba8e | |
parent | 7b4666e565ea1d07a993158bae42cdab99dd1ec2 (diff) | |
download | pkgsrc-78110d132047c99968290b3b0ac6e96e402d52e2.tar.gz |
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.
-rw-r--r-- | audio/alsa-plugins-oss/DESCR | 14 | ||||
-rw-r--r-- | audio/alsa-plugins-oss/Makefile | 29 | ||||
-rw-r--r-- | audio/alsa-plugins-oss/PLIST | 3 | ||||
-rw-r--r-- | audio/alsa-plugins-oss/distinfo | 8 | ||||
-rw-r--r-- | audio/alsa-plugins-oss/patches/patch-aa | 22 | ||||
-rw-r--r-- | audio/alsa-plugins-oss/patches/patch-ab | 16 | ||||
-rw-r--r-- | audio/alsa-plugins-oss/patches/patch-ac | 43 |
7 files changed, 135 insertions, 0 deletions
diff --git a/audio/alsa-plugins-oss/DESCR b/audio/alsa-plugins-oss/DESCR new file mode 100644 index 00000000000..de1d0859011 --- /dev/null +++ b/audio/alsa-plugins-oss/DESCR @@ -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 --git a/audio/alsa-plugins-oss/Makefile b/audio/alsa-plugins-oss/Makefile new file mode 100644 index 00000000000..27896bb189f --- /dev/null +++ b/audio/alsa-plugins-oss/Makefile @@ -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 +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 --git a/audio/alsa-plugins-oss/PLIST b/audio/alsa-plugins-oss/PLIST new file mode 100644 index 00000000000..23563a74763 --- /dev/null +++ b/audio/alsa-plugins-oss/PLIST @@ -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 --git a/audio/alsa-plugins-oss/distinfo b/audio/alsa-plugins-oss/distinfo new file mode 100644 index 00000000000..26b5901c3af --- /dev/null +++ b/audio/alsa-plugins-oss/distinfo @@ -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 --git a/audio/alsa-plugins-oss/patches/patch-aa b/audio/alsa-plugins-oss/patches/patch-aa new file mode 100644 index 00000000000..1f60ac4f88f --- /dev/null +++ b/audio/alsa-plugins-oss/patches/patch-aa @@ -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 --git a/audio/alsa-plugins-oss/patches/patch-ab b/audio/alsa-plugins-oss/patches/patch-ab new file mode 100644 index 00000000000..196c3a23a1a --- /dev/null +++ b/audio/alsa-plugins-oss/patches/patch-ab @@ -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 --git a/audio/alsa-plugins-oss/patches/patch-ac b/audio/alsa-plugins-oss/patches/patch-ac new file mode 100644 index 00000000000..322e9d9dd63 --- /dev/null +++ b/audio/alsa-plugins-oss/patches/patch-ac @@ -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; + |