Fri Dec 19 03:33:45 2008 UTC ()
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.
Status:
Vendor Tag: TNF
Release Tags: pkgsrc-base
(jmcneill)
diff -r0 -r1.1.1.1 pkgsrc/audio/alsa-utils/Makefile
diff -r0 -r1.1.1.1 pkgsrc/audio/alsa-utils/PLIST
diff -r0 -r1.1.1.1 pkgsrc/audio/alsa-utils/distinfo
diff -r0 -r1.1.1.1 pkgsrc/audio/alsa-utils/DESCR
diff -r0 -r1.1.1.1 pkgsrc/audio/alsa-utils/patches/patch-aa
diff -r0 -r1.1.1.1 pkgsrc/audio/alsa-utils/patches/patch-ab
diff -r0 -r1.1.1.1 pkgsrc/audio/alsa-utils/patches/patch-ac
diff -r0 -r1.1.1.1 pkgsrc/audio/alsa-utils/patches/patch-ad
# $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"
@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
$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
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.
$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 ;;
$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
$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 */
$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