diff options
author | jmcneill <jmcneill@pkgsrc.org> | 2008-12-19 03:33:00 +0000 |
---|---|---|
committer | jmcneill <jmcneill@pkgsrc.org> | 2008-12-19 03:33:00 +0000 |
commit | 693b8fdbcc74b64aee153a92a9527eac6f7c872f (patch) | |
tree | 5846122de149cdac7f51aceee6b7a28ce0146589 /audio/alsa-lib | |
parent | d3bd88fde4ccf78ae13b0ed44595057f8587419f (diff) | |
download | pkgsrc-693b8fdbcc74b64aee153a92a9527eac6f7c872f.tar.gz |
Import alsa-lib 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.
Diffstat (limited to 'audio/alsa-lib')
38 files changed, 725 insertions, 0 deletions
diff --git a/audio/alsa-lib/DESCR b/audio/alsa-lib/DESCR new file mode 100644 index 00000000000..615318b3fa9 --- /dev/null +++ b/audio/alsa-lib/DESCR @@ -0,0 +1,12 @@ +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. diff --git a/audio/alsa-lib/Makefile b/audio/alsa-lib/Makefile new file mode 100644 index 00000000000..606312f48d8 --- /dev/null +++ b/audio/alsa-lib/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ +# + +DISTNAME= alsa-lib-1.0.18 +CATEGORIES= audio +MASTER_SITES= ftp://ftp.alsa-project.org/pub/lib/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.alsa-project.org/ +COMMENT= Advanced Linux Sound Architecture (ALSA) + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= pkg-config gmake + +PKGCONFIG_OVERRIDE+= utils/alsa.pc.in + +.include "../../mk/bsd.pkg.mk" diff --git a/audio/alsa-lib/PLIST b/audio/alsa-lib/PLIST new file mode 100644 index 00000000000..e42cdc2f6cd --- /dev/null +++ b/audio/alsa-lib/PLIST @@ -0,0 +1,124 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ +bin/aserver +include/alsa/alisp.h +include/alsa/asoundef.h +include/alsa/asoundlib.h +include/alsa/conf.h +include/alsa/control.h +include/alsa/control_external.h +include/alsa/error.h +include/alsa/global.h +include/alsa/hwdep.h +include/alsa/iatomic.h +include/alsa/input.h +include/alsa/mixer.h +include/alsa/mixer_abst.h +include/alsa/output.h +include/alsa/pcm.h +include/alsa/pcm_external.h +include/alsa/pcm_extplug.h +include/alsa/pcm_ioplug.h +include/alsa/pcm_old.h +include/alsa/pcm_plugin.h +include/alsa/pcm_rate.h +include/alsa/rawmidi.h +include/alsa/seq.h +include/alsa/seq_event.h +include/alsa/seq_midi_event.h +include/alsa/seqmid.h +include/alsa/sound/asound_fm.h +include/alsa/sound/emu10k1.h +include/alsa/sound/hdsp.h +include/alsa/sound/sb16_csp.h +include/alsa/sound/sscape_ioctl.h +include/alsa/sound/type_compat.h +include/alsa/timer.h +include/alsa/version.h +include/sys/asoundlib.h +lib/alsa-lib/smixer/smixer-ac97.la +lib/alsa-lib/smixer/smixer-hda.la +lib/alsa-lib/smixer/smixer-sbase.la +lib/libasound.la +lib/pkgconfig/alsa.pc +share/aclocal/alsa.m4 +share/alsa/alsa.conf +share/alsa/cards/AACI.conf +share/alsa/cards/ATIIXP-MODEM.conf +share/alsa/cards/ATIIXP-SPDMA.conf +share/alsa/cards/ATIIXP.conf +share/alsa/cards/AU8810.conf +share/alsa/cards/AU8820.conf +share/alsa/cards/AU8830.conf +share/alsa/cards/Audigy.conf +share/alsa/cards/Audigy2.conf +share/alsa/cards/Aureon51.conf +share/alsa/cards/Aureon71.conf +share/alsa/cards/CA0106.conf +share/alsa/cards/CMI8338-SWIEC.conf +share/alsa/cards/CMI8338.conf +share/alsa/cards/CMI8738-MC6.conf +share/alsa/cards/CMI8738-MC8.conf +share/alsa/cards/CMI8788.conf +share/alsa/cards/CS46xx.conf +share/alsa/cards/EMU10K1.conf +share/alsa/cards/EMU10K1X.conf +share/alsa/cards/ENS1370.conf +share/alsa/cards/ENS1371.conf +share/alsa/cards/ES1968.conf +share/alsa/cards/FM801.conf +share/alsa/cards/GUS.conf +share/alsa/cards/HDA-Intel.conf +share/alsa/cards/ICE1712.conf +share/alsa/cards/ICE1724.conf +share/alsa/cards/ICH-MODEM.conf +share/alsa/cards/ICH.conf +share/alsa/cards/ICH4.conf +share/alsa/cards/Maestro3.conf +share/alsa/cards/NFORCE.conf +share/alsa/cards/PC-Speaker.conf +share/alsa/cards/PMac.conf +share/alsa/cards/PMacToonie.conf +share/alsa/cards/PS3.conf +share/alsa/cards/RME9636.conf +share/alsa/cards/RME9652.conf +share/alsa/cards/SI7018.conf +share/alsa/cards/SI7018/sndoc-mixer.alisp +share/alsa/cards/SI7018/sndop-mixer.alisp +share/alsa/cards/TRID4DWAVENX.conf +share/alsa/cards/USB-Audio.conf +share/alsa/cards/VIA686A.conf +share/alsa/cards/VIA8233.conf +share/alsa/cards/VIA8233A.conf +share/alsa/cards/VIA8237.conf +share/alsa/cards/VX222.conf +share/alsa/cards/VXPocket.conf +share/alsa/cards/VXPocket440.conf +share/alsa/cards/YMF744.conf +share/alsa/cards/aliases.alisp +share/alsa/cards/aliases.conf +share/alsa/pcm/center_lfe.conf +share/alsa/pcm/default.conf +share/alsa/pcm/dmix.conf +share/alsa/pcm/dpl.conf +share/alsa/pcm/dsnoop.conf +share/alsa/pcm/front.conf +share/alsa/pcm/hdmi.conf +share/alsa/pcm/iec958.conf +share/alsa/pcm/modem.conf +share/alsa/pcm/rear.conf +share/alsa/pcm/side.conf +share/alsa/pcm/surround40.conf +share/alsa/pcm/surround41.conf +share/alsa/pcm/surround50.conf +share/alsa/pcm/surround51.conf +share/alsa/pcm/surround71.conf +share/alsa/smixer.conf +share/alsa/sndo-mixer.alisp +@dirrm share/alsa/pcm +@dirrm share/alsa/cards/SI7018 +@dirrm share/alsa/cards +@dirrm share/alsa +@dirrm lib/alsa-lib/smixer +@dirrm lib/alsa-lib +@dirrm include/alsa/sound +@dirrm include/alsa diff --git a/audio/alsa-lib/buildlink3.mk b/audio/alsa-lib/buildlink3.mk new file mode 100644 index 00000000000..c3c6f14c2cf --- /dev/null +++ b/audio/alsa-lib/buildlink3.mk @@ -0,0 +1,19 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +ALSA_LIB_BUILDLINK3_MK:= ${ALSA_LIB_BUILDLINK3_MK}+ + +.if ${BUILDLINK_DEPTH} == "+" +BUILDLINK_DEPENDS+= alsa-lib +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nalsa-lib} +BUILDLINK_PACKAGES+= alsa-lib +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}alsa-lib + +.if ${ALSA_LIB_BUILDLINK3_MK} == "+" +BUILDLINK_API_DEPENDS.alsa-lib+= alsa-lib>=1.0.18 +BUILDLINK_PKGSRCDIR.alsa-lib?= ../../audio/alsa-lib +.endif # ALSA_LIB_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/audio/alsa-lib/distinfo b/audio/alsa-lib/distinfo new file mode 100644 index 00000000000..f2047d0e9a3 --- /dev/null +++ b/audio/alsa-lib/distinfo @@ -0,0 +1,38 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +SHA1 (alsa-lib-1.0.18.tar.bz2) = 54e6916738e479a0eec7e9f4715c22efee4d8594 +RMD160 (alsa-lib-1.0.18.tar.bz2) = 88a7a5ce6133704d100f034b9e08e9ffdf0627d9 +Size (alsa-lib-1.0.18.tar.bz2) = 790052 bytes +SHA1 (patch-aa) = 5a8e9571ac6fb1f1f6cbd18d3859468a7b64076f +SHA1 (patch-ab) = a29fcc96e01dc188d6f75677878b7daa3d9d114b +SHA1 (patch-ac) = 6f4e585a419d86ce9704157e45253c637494757e +SHA1 (patch-ad) = 16d5890ac5f947a2c4e3798c15d6a90fb1f7d817 +SHA1 (patch-ae) = 6f918ae55898c1f15bfd5243e62ecd5594a312ca +SHA1 (patch-af) = 2a3fd671144809eb8886521e21572ff67c2a86e7 +SHA1 (patch-ag) = bea09d714bf75735f5be6d370f7242c34b73cb95 +SHA1 (patch-ah) = 05229389b8bda654e8e979029b2bcd3a8050cf48 +SHA1 (patch-ai) = 3a5a6452f48b5dfe50f664c9e5b355cb757f1736 +SHA1 (patch-aj) = e3b23632104f62e5a9252e4045824a5a4243cd67 +SHA1 (patch-ak) = f1f53628e5c19ee670248e5f58b9e72923938d5f +SHA1 (patch-al) = 76de42304d5ba90bf5e8def57f523c1ee910d9df +SHA1 (patch-am) = 773b7c4acab99c4c470652a43a6b325a41eb432d +SHA1 (patch-an) = c7253acaaf2aeb96310d14c9e03853bc4cd4d0cd +SHA1 (patch-ao) = 25ac431685e033b165a9abdcd44246772c1f99b5 +SHA1 (patch-ap) = 593ca8e8d8ce2813ab254cd36201067634c216e5 +SHA1 (patch-aq) = 0e700c7e544fb6245e738a3d2356921484c55242 +SHA1 (patch-ar) = cc8bc40b55c43c002a81d68e89530109d7020dd4 +SHA1 (patch-as) = 946a179a675d6c5e03e0f7734ac97b0592806912 +SHA1 (patch-at) = 8d3473d1641ea2599a383f5b95ad3f78c5f28633 +SHA1 (patch-au) = 35b360728729bcb8ed4d6fbf219be0e2af468055 +SHA1 (patch-av) = 5f145c3755bf510be6fb101e30d40e10b8dcbd6d +SHA1 (patch-aw) = 0d64254b04ce74f830ee44a2f5d6aba4f89f1f2c +SHA1 (patch-ax) = c9f0a3dfb5cdca67d8fc4a85087163436ca5af45 +SHA1 (patch-ay) = d216823bf2451bb14787c1d97b00367be86f6451 +SHA1 (patch-az) = c8838d84841ffcfa19c299e574914ff326be6e04 +SHA1 (patch-ba) = 5c8e0169bc203d485d8c296007fa7910c73ec574 +SHA1 (patch-bb) = 3dcafe7f7694197170d2b2b0c02596f9b3594fec +SHA1 (patch-bc) = 0b034b98d536c4ab7f785420d0d51c3d0763d960 +SHA1 (patch-bd) = 63a102186f4df59da93bedaac772530e166a9fde +SHA1 (patch-be) = e071d0f3518dac8bbda216d4bd850a2a3557b103 +SHA1 (patch-bf) = a1159663f1c03437a9afdfc781ac3d0019c4774b +SHA1 (patch-bg) = 19d678643c68c250eebc75fbe17119d478e738cc diff --git a/audio/alsa-lib/patches/patch-aa b/audio/alsa-lib/patches/patch-aa new file mode 100644 index 00000000000..8fe8b59c16d --- /dev/null +++ b/audio/alsa-lib/patches/patch-aa @@ -0,0 +1,15 @@ +$NetBSD: patch-aa,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- aserver/aserver.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ aserver/aserver.c +@@ -35,6 +35,10 @@ + + #include "aserver.h" + ++#ifndef EBADFD ++#define EBADFD EBADF ++#endif ++ + char *command; + + #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) diff --git a/audio/alsa-lib/patches/patch-ab b/audio/alsa-lib/patches/patch-ab new file mode 100644 index 00000000000..5dd5a1f76b6 --- /dev/null +++ b/audio/alsa-lib/patches/patch-ab @@ -0,0 +1,16 @@ +$NetBSD: patch-ab,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- configure.orig 2008-10-29 08:46:35.000000000 -0400 ++++ configure +@@ -22342,6 +22342,11 @@ test "x$prefix" = xNONE && prefix=$ac_de + test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + + DEFS=-DHAVE_CONFIG_H ++case $host_os in ++ netbsd*) ++ DEFS="$DEFS -Dbswap_32=bswap32 -Dbswap_16=bswap16 -Dbswap_64=bswap64" ++ ;; ++esac + + ac_libobjs= + ac_ltlibobjs= diff --git a/audio/alsa-lib/patches/patch-ac b/audio/alsa-lib/patches/patch-ac new file mode 100644 index 00000000000..87ea1dde59c --- /dev/null +++ b/audio/alsa-lib/patches/patch-ac @@ -0,0 +1,16 @@ +$NetBSD: patch-ac,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- include/asoundlib-head.h.orig 2008-12-18 22:01:21.000000000 -0500 ++++ include/asoundlib-head.h +@@ -34,7 +34,11 @@ + #include <string.h> + #include <fcntl.h> + #include <assert.h> ++#ifdef __NetBSD__ ++#include <sys/endian.h> ++#else + #include <endian.h> ++#endif + #include <sys/poll.h> + #include <errno.h> + #include <stdarg.h> diff --git a/audio/alsa-lib/patches/patch-ad b/audio/alsa-lib/patches/patch-ad new file mode 100644 index 00000000000..c2d21dd4cb1 --- /dev/null +++ b/audio/alsa-lib/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- include/global.h.orig 2008-10-29 08:42:10.000000000 -0400 ++++ include/global.h +@@ -133,7 +133,7 @@ int snd_shm_area_destroy(struct snd_shm_ + + int snd_user_file(const char *file, char **result); + +-#if !defined(_POSIX_C_SOURCE) && !defined(_POSIX_SOURCE) ++#if !defined(_POSIX_C_SOURCE) && !defined(_POSIX_SOURCE) && !defined(__NetBSD__) + struct timeval { + time_t tv_sec; /* seconds */ + long tv_usec; /* microseconds */ diff --git a/audio/alsa-lib/patches/patch-ae b/audio/alsa-lib/patches/patch-ae new file mode 100644 index 00000000000..3430dffe010 --- /dev/null +++ b/audio/alsa-lib/patches/patch-ae @@ -0,0 +1,16 @@ +$NetBSD: patch-ae,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- include/local.h.orig 2008-10-29 08:42:10.000000000 -0400 ++++ include/local.h +@@ -28,7 +28,11 @@ + #include <string.h> + #include <fcntl.h> + #include <assert.h> ++#ifdef __NetBSD__ ++#include <sys/endian.h> ++#else + #include <endian.h> ++#endif + #include <stdarg.h> + #include <sys/poll.h> + #include <errno.h> diff --git a/audio/alsa-lib/patches/patch-af b/audio/alsa-lib/patches/patch-af new file mode 100644 index 00000000000..a1a6c47e409 --- /dev/null +++ b/audio/alsa-lib/patches/patch-af @@ -0,0 +1,17 @@ +$NetBSD: patch-af,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- include/search.h.orig 2008-10-29 08:42:10.000000000 -0400 ++++ include/search.h +@@ -20,7 +20,12 @@ + #ifndef _SEARCH_H + #define _SEARCH_H 1 + ++#ifndef __NetBSD__ + #include <features.h> ++#else ++#define __PMT __P ++typedef void * __ptr_t; ++#endif + + #define __need_size_t + #include <stddef.h> diff --git a/audio/alsa-lib/patches/patch-ag b/audio/alsa-lib/patches/patch-ag new file mode 100644 index 00000000000..21d22d69032 --- /dev/null +++ b/audio/alsa-lib/patches/patch-ag @@ -0,0 +1,15 @@ +$NetBSD: patch-ag,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/control/control_shm.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/control/control_shm.c +@@ -35,6 +35,10 @@ + #include <netdb.h> + #include "aserver.h" + ++#ifndef EBADFD ++#define EBADFD EBADF ++#endif ++ + #ifndef PIC + /* entry for static linking */ + const char *_snd_module_control_shm = ""; diff --git a/audio/alsa-lib/patches/patch-ah b/audio/alsa-lib/patches/patch-ah new file mode 100644 index 00000000000..1735c74f85c --- /dev/null +++ b/audio/alsa-lib/patches/patch-ah @@ -0,0 +1,15 @@ +$NetBSD: patch-ah,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm.c +@@ -635,6 +635,10 @@ playback devices. + #include <limits.h> + #include "pcm_local.h" + ++#ifndef EBADFD ++#define EBADFD EBADF ++#endif ++ + /** + * \brief get identifier of PCM handle + * \param pcm PCM handle diff --git a/audio/alsa-lib/patches/patch-ai b/audio/alsa-lib/patches/patch-ai new file mode 100644 index 00000000000..0dcb2936bcb --- /dev/null +++ b/audio/alsa-lib/patches/patch-ai @@ -0,0 +1,14 @@ +$NetBSD: patch-ai,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_adpcm.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_adpcm.c +@@ -56,7 +56,9 @@ IMA compatibility project proceedings, V + come across a good description of XA yet. + */ + ++#ifndef __NetBSD__ + #include <byteswap.h> ++#endif + #include "pcm_local.h" + #include "pcm_plugin.h" + diff --git a/audio/alsa-lib/patches/patch-aj b/audio/alsa-lib/patches/patch-aj new file mode 100644 index 00000000000..7564ba9bd42 --- /dev/null +++ b/audio/alsa-lib/patches/patch-aj @@ -0,0 +1,14 @@ +$NetBSD: patch-aj,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_alaw.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_alaw.c +@@ -26,7 +26,9 @@ + * + */ + ++#ifndef __NetBSD__ + #include <byteswap.h> ++#endif + #include "pcm_local.h" + #include "pcm_plugin.h" + diff --git a/audio/alsa-lib/patches/patch-ak b/audio/alsa-lib/patches/patch-ak new file mode 100644 index 00000000000..128063e9bc0 --- /dev/null +++ b/audio/alsa-lib/patches/patch-ak @@ -0,0 +1,14 @@ +$NetBSD: patch-ak,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_copy.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_copy.c +@@ -26,7 +26,9 @@ + * + */ + ++#ifndef __NetBSD__ + #include <byteswap.h> ++#endif + #include "pcm_local.h" + #include "pcm_plugin.h" + diff --git a/audio/alsa-lib/patches/patch-al b/audio/alsa-lib/patches/patch-al new file mode 100644 index 00000000000..209c06728df --- /dev/null +++ b/audio/alsa-lib/patches/patch-al @@ -0,0 +1,15 @@ +$NetBSD: patch-al,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_dmix.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_dmix.c +@@ -45,6 +45,10 @@ + #include <sys/mman.h> + #include "pcm_direct.h" + ++#ifndef EBADFD ++#define EBADFD EBADF ++#endif ++ + #ifndef PIC + /* entry for static linking */ + const char *_snd_module_pcm_dmix = ""; diff --git a/audio/alsa-lib/patches/patch-am b/audio/alsa-lib/patches/patch-am new file mode 100644 index 00000000000..c10e10874fc --- /dev/null +++ b/audio/alsa-lib/patches/patch-am @@ -0,0 +1,14 @@ +$NetBSD: patch-am,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_dmix_generic.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_dmix_generic.c +@@ -125,7 +125,9 @@ static void mix_select_callbacks(snd_pcm + (1ULL << SND_PCM_FORMAT_S24_3LE) | \ + (1ULL << SND_PCM_FORMAT_U8)) + ++#ifndef __NetBSD__ + #include <byteswap.h> ++#endif + + static void generic_mix_areas_16_native(unsigned int size, + volatile signed short *dst, diff --git a/audio/alsa-lib/patches/patch-an b/audio/alsa-lib/patches/patch-an new file mode 100644 index 00000000000..8417f2dcb02 --- /dev/null +++ b/audio/alsa-lib/patches/patch-an @@ -0,0 +1,15 @@ +$NetBSD: patch-an,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_dshare.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_dshare.c +@@ -45,6 +45,10 @@ + #include <sys/mman.h> + #include "pcm_direct.h" + ++#ifndef EBADFD ++#define EBADFD EBADF ++#endif ++ + #ifndef PIC + /* entry for static linking */ + const char *_snd_module_pcm_dshare = ""; diff --git a/audio/alsa-lib/patches/patch-ao b/audio/alsa-lib/patches/patch-ao new file mode 100644 index 00000000000..b39488f709b --- /dev/null +++ b/audio/alsa-lib/patches/patch-ao @@ -0,0 +1,15 @@ +$NetBSD: patch-ao,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_dsnoop.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_dsnoop.c +@@ -45,6 +45,10 @@ + #include <sys/mman.h> + #include "pcm_direct.h" + ++#ifndef EBADFD ++#define EBADFD EBADF ++#endif ++ + #ifndef PIC + /* entry for static linking */ + const char *_snd_module_pcm_dsnoop = ""; diff --git a/audio/alsa-lib/patches/patch-ap b/audio/alsa-lib/patches/patch-ap new file mode 100644 index 00000000000..3f8eab99e79 --- /dev/null +++ b/audio/alsa-lib/patches/patch-ap @@ -0,0 +1,15 @@ +$NetBSD: patch-ap,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_file.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_file.c +@@ -26,8 +26,10 @@ + * + */ + ++#ifndef __NetBSD__ + #include <endian.h> + #include <byteswap.h> ++#endif + #include <ctype.h> + #include "pcm_local.h" + #include "pcm_plugin.h" diff --git a/audio/alsa-lib/patches/patch-aq b/audio/alsa-lib/patches/patch-aq new file mode 100644 index 00000000000..be7813ab69b --- /dev/null +++ b/audio/alsa-lib/patches/patch-aq @@ -0,0 +1,15 @@ +$NetBSD: patch-aq,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_hw.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_hw.c +@@ -41,6 +41,10 @@ + #include "../control/control_local.h" + #include "../timer/timer_local.h" + ++#ifndef EBADFD ++#define EBADFD EBADF ++#endif ++ + //#define DEBUG_RW /* use to debug readi/writei/readn/writen */ + //#define DEBUG_MMAP /* debug mmap_commit */ + diff --git a/audio/alsa-lib/patches/patch-ar b/audio/alsa-lib/patches/patch-ar new file mode 100644 index 00000000000..09932387b7e --- /dev/null +++ b/audio/alsa-lib/patches/patch-ar @@ -0,0 +1,14 @@ +$NetBSD: patch-ar,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_iec958.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_iec958.c +@@ -26,7 +26,9 @@ + * + */ + ++#ifndef __NetBSD__ + #include <byteswap.h> ++#endif + #include "pcm_local.h" + #include "pcm_plugin.h" + diff --git a/audio/alsa-lib/patches/patch-as b/audio/alsa-lib/patches/patch-as new file mode 100644 index 00000000000..b1e45473d6d --- /dev/null +++ b/audio/alsa-lib/patches/patch-as @@ -0,0 +1,15 @@ +$NetBSD: patch-as,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_ioplug.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_ioplug.c +@@ -31,6 +31,10 @@ + #include "pcm_ext_parm.h" + #include "pcm_generic.h" + ++#ifndef EBADFD ++#define EBADFD EBADF ++#endif ++ + #ifndef PIC + /* entry for static linking */ + const char *_snd_module_pcm_ioplug = ""; diff --git a/audio/alsa-lib/patches/patch-at b/audio/alsa-lib/patches/patch-at new file mode 100644 index 00000000000..a30de8bc92f --- /dev/null +++ b/audio/alsa-lib/patches/patch-at @@ -0,0 +1,14 @@ +$NetBSD: patch-at,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_lfloat.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_lfloat.c +@@ -26,7 +26,9 @@ + * + */ + ++#ifndef __NetBSD__ + #include <byteswap.h> ++#endif + #include "pcm_local.h" + #include "pcm_plugin.h" + diff --git a/audio/alsa-lib/patches/patch-au b/audio/alsa-lib/patches/patch-au new file mode 100644 index 00000000000..01371339ed0 --- /dev/null +++ b/audio/alsa-lib/patches/patch-au @@ -0,0 +1,14 @@ +$NetBSD: patch-au,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_linear.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_linear.c +@@ -26,7 +26,9 @@ + * + */ + ++#ifndef __NetBSD__ + #include <byteswap.h> ++#endif + #include "pcm_local.h" + #include "pcm_plugin.h" + diff --git a/audio/alsa-lib/patches/patch-av b/audio/alsa-lib/patches/patch-av new file mode 100644 index 00000000000..a14a7fc92a1 --- /dev/null +++ b/audio/alsa-lib/patches/patch-av @@ -0,0 +1,15 @@ +$NetBSD: patch-av,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_local.h.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_local.h +@@ -393,6 +393,10 @@ int _snd_pcm_poll_descriptor(snd_pcm_t * + #define _snd_pcm_link_descriptor _snd_pcm_poll_descriptor /* FIXME */ + #define _snd_pcm_async_descriptor _snd_pcm_poll_descriptor /* FIXME */ + ++#ifndef ESTRPIPE ++#define ESTRPIPE EPIPE ++#endif ++ + /* handle special error cases */ + static inline int snd_pcm_check_error(snd_pcm_t *pcm, int err) + { diff --git a/audio/alsa-lib/patches/patch-aw b/audio/alsa-lib/patches/patch-aw new file mode 100644 index 00000000000..70809e9d14c --- /dev/null +++ b/audio/alsa-lib/patches/patch-aw @@ -0,0 +1,16 @@ +$NetBSD: patch-aw,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_misc.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_misc.c +@@ -23,7 +23,11 @@ + #include <stdlib.h> + #include <unistd.h> + #include <string.h> ++#ifdef __NetBSD__ ++#include <sys/bswap.h> ++#else + #include <byteswap.h> ++#endif + #include "pcm_local.h" + + diff --git a/audio/alsa-lib/patches/patch-ax b/audio/alsa-lib/patches/patch-ax new file mode 100644 index 00000000000..037a4283e06 --- /dev/null +++ b/audio/alsa-lib/patches/patch-ax @@ -0,0 +1,14 @@ +$NetBSD: patch-ax,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_mulaw.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_mulaw.c +@@ -26,7 +26,9 @@ + * + */ + ++#ifndef __NetBSD__ + #include <byteswap.h> ++#endif + #include "pcm_local.h" + #include "pcm_plugin.h" + diff --git a/audio/alsa-lib/patches/patch-ay b/audio/alsa-lib/patches/patch-ay new file mode 100644 index 00000000000..5453490bf4f --- /dev/null +++ b/audio/alsa-lib/patches/patch-ay @@ -0,0 +1,23 @@ +$NetBSD: patch-ay,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_null.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_null.c +@@ -26,12 +26,18 @@ + * + */ + ++#ifndef __NetBSD__ + #include <byteswap.h> ++#endif + #include <limits.h> + #include <sys/shm.h> + #include "pcm_local.h" + #include "pcm_plugin.h" + ++#ifndef EBADFD ++#define EBADFD EBADF ++#endif ++ + #ifndef PIC + /* entry for static linking */ + const char *_snd_module_pcm_null = ""; diff --git a/audio/alsa-lib/patches/patch-az b/audio/alsa-lib/patches/patch-az new file mode 100644 index 00000000000..0629f362cc1 --- /dev/null +++ b/audio/alsa-lib/patches/patch-az @@ -0,0 +1,25 @@ +$NetBSD: patch-az,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_rate.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_rate.c +@@ -28,7 +28,9 @@ + * + */ + #include <inttypes.h> ++#ifndef __NetBSD__ + #include <byteswap.h> ++#endif + #include "pcm_local.h" + #include "pcm_plugin.h" + #include "pcm_rate.h" +@@ -36,6 +38,10 @@ + + #include "plugin_ops.h" + ++#ifndef EBADFD ++#define EBADFD EBADF ++#endif ++ + #if 0 + #define DEBUG_REFINE + #endif diff --git a/audio/alsa-lib/patches/patch-ba b/audio/alsa-lib/patches/patch-ba new file mode 100644 index 00000000000..7dec17d72b9 --- /dev/null +++ b/audio/alsa-lib/patches/patch-ba @@ -0,0 +1,14 @@ +$NetBSD: patch-ba,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_rate_linear.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_rate_linear.c +@@ -21,7 +21,9 @@ + */ + + #include <inttypes.h> ++#ifndef __NetBSD__ + #include <byteswap.h> ++#endif + #include "pcm_local.h" + #include "pcm_plugin.h" + #include "pcm_rate.h" diff --git a/audio/alsa-lib/patches/patch-bb b/audio/alsa-lib/patches/patch-bb new file mode 100644 index 00000000000..f67c3619dbd --- /dev/null +++ b/audio/alsa-lib/patches/patch-bb @@ -0,0 +1,14 @@ +$NetBSD: patch-bb,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_route.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_route.c +@@ -26,7 +26,9 @@ + * + */ + ++#ifndef __NetBSD__ + #include <byteswap.h> ++#endif + #include <math.h> + #include "pcm_local.h" + #include "pcm_plugin.h" diff --git a/audio/alsa-lib/patches/patch-bc b/audio/alsa-lib/patches/patch-bc new file mode 100644 index 00000000000..0d7454eb0c5 --- /dev/null +++ b/audio/alsa-lib/patches/patch-bc @@ -0,0 +1,15 @@ +$NetBSD: patch-bc,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_share.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_share.c +@@ -39,6 +39,10 @@ + #include <pthread.h> + #include "pcm_local.h" + ++#ifndef EBADFD ++#define EBADFD EBADF ++#endif ++ + #ifndef PIC + /* entry for static linking */ + const char *_snd_module_pcm_share = ""; diff --git a/audio/alsa-lib/patches/patch-bd b/audio/alsa-lib/patches/patch-bd new file mode 100644 index 00000000000..556186dde25 --- /dev/null +++ b/audio/alsa-lib/patches/patch-bd @@ -0,0 +1,15 @@ +$NetBSD: patch-bd,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_shm.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_shm.c +@@ -45,6 +45,10 @@ + #include <netdb.h> + #include "aserver.h" + ++#ifndef EBADFD ++#define EBADFD EBADF ++#endif ++ + #ifndef PIC + /* entry for static linking */ + const char *_snd_module_pcm_shm = ""; diff --git a/audio/alsa-lib/patches/patch-be b/audio/alsa-lib/patches/patch-be new file mode 100644 index 00000000000..15126a3a913 --- /dev/null +++ b/audio/alsa-lib/patches/patch-be @@ -0,0 +1,15 @@ +$NetBSD: patch-be,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_simple.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_simple.c +@@ -25,6 +25,10 @@ + + #include "pcm_local.h" + ++#ifndef EBADFD ++#define EBADFD EBADF ++#endif ++ + static int set_buffer_time(snd_spcm_latency_t latency, + unsigned int *buffer_time) + { diff --git a/audio/alsa-lib/patches/patch-bf b/audio/alsa-lib/patches/patch-bf new file mode 100644 index 00000000000..5c15b9ea446 --- /dev/null +++ b/audio/alsa-lib/patches/patch-bf @@ -0,0 +1,14 @@ +$NetBSD: patch-bf,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/pcm/pcm_softvol.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/pcm/pcm_softvol.c +@@ -26,7 +26,9 @@ + * + */ + ++#ifndef __NetBSD__ + #include <byteswap.h> ++#endif + #include <math.h> + #include "pcm_local.h" + #include "pcm_plugin.h" diff --git a/audio/alsa-lib/patches/patch-bg b/audio/alsa-lib/patches/patch-bg new file mode 100644 index 00000000000..4218e1ab10f --- /dev/null +++ b/audio/alsa-lib/patches/patch-bg @@ -0,0 +1,22 @@ +$NetBSD: patch-bg,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ + +--- src/timer/timer_hw.c.orig 2008-10-29 08:42:10.000000000 -0400 ++++ src/timer/timer_hw.c +@@ -92,10 +92,17 @@ static int snd_timer_hw_async(snd_timer_ + } + if (sig < 0) + return 0; ++#ifdef F_SETSIG + if (fcntl(fd, F_SETSIG, (long)sig) < 0) { + SYSERR("F_SETSIG failed"); + return -errno; + } ++#else ++ if (fcntl(fd, F_SETFL, O_ASYNC) < 0) { ++ SYSERR("F_SETFL failed"); ++ return -errno; ++ } ++#endif + if (fcntl(fd, F_SETOWN, (long)pid) < 0) { + SYSERR("F_SETOWN failed"); + return -errno; |