summaryrefslogtreecommitdiff
path: root/audio/alsa-utils
diff options
context:
space:
mode:
authorjmcneill <jmcneill>2008-12-19 03:33:45 +0000
committerjmcneill <jmcneill>2008-12-19 03:33:45 +0000
commit15025138cf18259f8fe7f0dcb47ffb3f79e57a02 (patch)
treee3c085ce53b590b703455daec0bdb06b887866b4 /audio/alsa-utils
parent8dd8b324ca20fed1b9dd644856057f91d8ae6d1c (diff)
downloadpkgsrc-15025138cf18259f8fe7f0dcb47ffb3f79e57a02.tar.gz
Import alsa-utils 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 utilities for configuring and using ALSA.
Diffstat (limited to 'audio/alsa-utils')
-rw-r--r--audio/alsa-utils/DESCR14
-rw-r--r--audio/alsa-utils/Makefile20
-rw-r--r--audio/alsa-utils/PLIST50
-rw-r--r--audio/alsa-utils/distinfo9
-rw-r--r--audio/alsa-utils/patches/patch-aa22
-rw-r--r--audio/alsa-utils/patches/patch-ab34
-rw-r--r--audio/alsa-utils/patches/patch-ac20
-rw-r--r--audio/alsa-utils/patches/patch-ad17
8 files changed, 186 insertions, 0 deletions
diff --git a/audio/alsa-utils/DESCR b/audio/alsa-utils/DESCR
new file mode 100644
index 00000000000..4fea94817a5
--- /dev/null
+++ b/audio/alsa-utils/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 utilities for configuring and using ALSA.
diff --git a/audio/alsa-utils/Makefile b/audio/alsa-utils/Makefile
new file mode 100644
index 00000000000..5824e93d34c
--- /dev/null
+++ b/audio/alsa-utils/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/12/19 03:33:45 jmcneill Exp $
+#
+
+DISTNAME= alsa-utils-1.0.18
+CATEGORIES= audio
+MASTER_SITES= ftp://ftp.alsa-project.org/pub/utils/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= ftp://ftp.alsa-project.org/pub/utils/
+COMMENT= Advanced Linux Sound Architecture (ALSA) utilities
+
+GNU_CONFIGURE= yes
+USE_TOOLS= pkg-config gmake
+USE_PKGLOCALEDIR= yes
+USE_NCURSES= yes
+
+.include "../../audio/alsa-lib/buildlink3.mk"
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/alsa-utils/PLIST b/audio/alsa-utils/PLIST
new file mode 100644
index 00000000000..1c25a858c64
--- /dev/null
+++ b/audio/alsa-utils/PLIST
@@ -0,0 +1,50 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/12/19 03:33:45 jmcneill Exp $
+bin/aconnect
+bin/alsamixer
+bin/amidi
+bin/amixer
+bin/aplay
+bin/aplaymidi
+bin/arecord
+bin/arecordmidi
+bin/aseqdump
+bin/aseqnet
+bin/iecset
+bin/speaker-test
+man/fr/man8/alsaconf.8
+man/man1/aconnect.1
+man/man1/alsactl.1
+man/man1/alsamixer.1
+man/man1/amidi.1
+man/man1/amixer.1
+man/man1/aplay.1
+man/man1/aplaymidi.1
+man/man1/arecord.1
+man/man1/arecordmidi.1
+man/man1/aseqdump.1
+man/man1/aseqnet.1
+man/man1/iecset.1
+man/man1/speaker-test.1
+man/man7/alsactl_init.7
+man/man8/alsaconf.8
+sbin/alsaconf
+sbin/alsactl
+share/alsa/init/00main
+share/alsa/init/default
+share/alsa/init/hda
+share/alsa/init/help
+share/alsa/init/info
+share/alsa/init/test
+share/alsa/speaker-test/sample_map.csv
+share/sounds/alsa/Front_Center.wav
+share/sounds/alsa/Front_Left.wav
+share/sounds/alsa/Front_Right.wav
+share/sounds/alsa/Noise.wav
+share/sounds/alsa/Rear_Center.wav
+share/sounds/alsa/Rear_Left.wav
+share/sounds/alsa/Rear_Right.wav
+share/sounds/alsa/Side_Left.wav
+share/sounds/alsa/Side_Right.wav
+@dirrm share/sounds/alsa
+@dirrm share/alsa/speaker-test
+@dirrm share/alsa/init
diff --git a/audio/alsa-utils/distinfo b/audio/alsa-utils/distinfo
new file mode 100644
index 00000000000..3b0c5f71989
--- /dev/null
+++ b/audio/alsa-utils/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/12/19 03:33:45 jmcneill Exp $
+
+SHA1 (alsa-utils-1.0.18.tar.bz2) = 22ca9c26774550742d77504274b7f3e83fcce0e1
+RMD160 (alsa-utils-1.0.18.tar.bz2) = 19725f866477abd5d97c8a18b736d2f4c62773e9
+Size (alsa-utils-1.0.18.tar.bz2) = 1039779 bytes
+SHA1 (patch-aa) = b3dcc338045b95fd5e531428af4253d356f59944
+SHA1 (patch-ab) = 559275eea8697e085e5969eaa8b639089f6cc285
+SHA1 (patch-ac) = 3d31802758d286e8d5ec3424456a035d96876d00
+SHA1 (patch-ad) = d963e23e5287bdfc1647b1f6514bb43a5f1f92f1
diff --git a/audio/alsa-utils/patches/patch-aa b/audio/alsa-utils/patches/patch-aa
new file mode 100644
index 00000000000..7abaca21dc1
--- /dev/null
+++ b/audio/alsa-utils/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/12/19 03:33:45 jmcneill Exp $
+
+--- configure.orig 2008-10-29 08:48:06.000000000 -0400
++++ configure
+@@ -6430,7 +6430,7 @@ if test "$alsa_prefix" != "" ; then
+ LDFLAGS="$LDFLAGS $ALSA_LIBS"
+ fi
+
+-ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
++ALSA_LIBS="$(pkg-config --libs alsa)"
+ LIBS="$ALSA_LIBS $LIBS"
+ { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
+ echo "${ECHO_T}$ALSA_LIBS" >&6; }
+@@ -9042,6 +9042,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-utils/patches/patch-ab b/audio/alsa-utils/patches/patch-ab
new file mode 100644
index 00000000000..f4e6289555a
--- /dev/null
+++ b/audio/alsa-utils/patches/patch-ab
@@ -0,0 +1,34 @@
+$NetBSD: patch-ab,v 1.1.1.1 2008/12/19 03:33:45 jmcneill Exp $
+
+--- aplay/aplay.c.orig 2008-12-18 22:21:06.000000000 -0500
++++ aplay/aplay.c
+@@ -45,7 +45,11 @@
+ #include <sys/uio.h>
+ #include <sys/time.h>
+ #include <sys/signal.h>
++#ifdef __NetBSD__
++#include <sys/endian.h>
++#else
+ #include <asm/byteorder.h>
++#endif
+ #include "aconfig.h"
+ #include "gettext.h"
+ #include "formats.h"
+@@ -55,6 +59,17 @@
+ #define LLONG_MAX 9223372036854775807LL
+ #endif
+
++#ifdef __NetBSD__
++#define open64 open
++#define lseek64 lseek
++#define off64_t off_t
++#define ESTRPIPE EPIPE
++#define __le16_to_cpu le16toh
++#define __le32_to_cpu le32toh
++#define __be16_to_cpu be16toh
++#define __be32_to_cpu be32toh
++#endif
++
+ #define DEFAULT_FORMAT SND_PCM_FORMAT_U8
+ #define DEFAULT_SPEED 8000
+
diff --git a/audio/alsa-utils/patches/patch-ac b/audio/alsa-utils/patches/patch-ac
new file mode 100644
index 00000000000..3dc36caf44d
--- /dev/null
+++ b/audio/alsa-utils/patches/patch-ac
@@ -0,0 +1,20 @@
+$NetBSD: patch-ac,v 1.1.1.1 2008/12/19 03:33:45 jmcneill Exp $
+
+--- aplay/formats.h.orig 2008-12-18 22:21:49.000000000 -0500
++++ aplay/formats.h
+@@ -1,8 +1,15 @@
+ #ifndef FORMATS_H
+ #define FORMATS_H 1
+
++#ifdef __NetBSD__
++#include <sys/endian.h>
++#define bswap_16 bswap16
++#define bswap_32 bswap32
++#define bswap_64 bswap64
++#else
+ #include <endian.h>
+ #include <byteswap.h>
++#endif
+
+ /* Definitions for .VOC files */
+
diff --git a/audio/alsa-utils/patches/patch-ad b/audio/alsa-utils/patches/patch-ad
new file mode 100644
index 00000000000..da9cb4d2bbf
--- /dev/null
+++ b/audio/alsa-utils/patches/patch-ad
@@ -0,0 +1,17 @@
+$NetBSD: patch-ad,v 1.1.1.1 2008/12/19 03:33:45 jmcneill Exp $
+
+--- speaker-test/speaker-test.c.orig 2008-12-18 22:24:52.000000000 -0500
++++ speaker-test/speaker-test.c
+@@ -47,7 +47,12 @@
+ #ifdef ENABLE_NLS
+ #include <locale.h>
+ #endif
++#ifdef __NetBSD__
++#include <sys/endian.h>
++#define ESTRPIPE EPIPE
++#else
+ #include <byteswap.h>
++#endif
+
+ #define ALSA_PCM_NEW_HW_PARAMS_API
+ #define ALSA_PCM_NEW_SW_PARAMS_API