Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
`madplay' is a command-line MPEG audio decoder and player based on the MAD
library (libmad).
After decoding, `madplay' sends the output to an audio output module. The
following audio output modules are provided:
- an Open Sound System interface module (for Linux, et al.)
- a Sun audio interface module (for Solaris, NetBSD, et al.)
- a Mac OS Carbon audio interface module (for Mac OS X)
- a Win32 audio interface module (for Windows 95/98/NT/2000, et al.)
- an ALSA audio interface module
- a QNX audio interface module
- an EsounD interface module
- a CD audio output module (*.cdr, *.cda)
- an Audio IFF output module (*.aif, *.aiff)
- a Microsoft RIFF/WAVE file output module (*.wav)
- a Sun/NeXT audio file output module (*.au, *.snd)
- a raw PCM output module
- a hex output module (for debugging and compliance testing)
- a null module (for timing the decoder)
`madplay' will also read and display ID3 tag information, and further
supports the relative volume adjustment information (RVA2) in such tags,
as written by tools like `normalize'.
+25
View File
@@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.37 2012/10/02 23:47:56 asau Exp $
#
DISTNAME= madplay-0.15.2b
PKGREVISION= 5
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mad/}
MAINTAINER= simonb@NetBSD.org
HOMEPAGE= http://sourceforge.net/projects/mad/
COMMENT= High-quality MPEG audio decoder
USE_PKGLOCALEDIR= YES
GNU_CONFIGURE= YES
USE_LIBTOOL= YES
USE_TOOLS+= msgfmt
.include "options.mk"
.include "../../audio/libid3tag/buildlink3.mk"
.include "../../audio/libmad/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+10
View File
@@ -0,0 +1,10 @@
@comment $NetBSD: PLIST,v 1.2 2006/04/17 07:07:12 jlam Exp $
bin/abxtest
bin/madplay
man/man1/abxtest.1
man/man1/madplay.1
share/locale/en/LC_MESSAGES/madplay.mo
share/locale/es/LC_MESSAGES/madplay.mo
share/locale/fr/LC_MESSAGES/madplay.mo
share/locale/hr/LC_MESSAGES/madplay.mo
share/locale/no/LC_MESSAGES/madplay.mo
+8
View File
@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.8 2007/10/09 20:13:40 hubertf Exp $
SHA1 (madplay-0.15.2b.tar.gz) = 29105eb27c1416aa33c8d1ab3404a8e5f0aecd3f
RMD160 (madplay-0.15.2b.tar.gz) = 0d3dc164891be5e4f37ce83364f6a40e8049dd3e
Size (madplay-0.15.2b.tar.gz) = 590929 bytes
SHA1 (patch-aa) = 0dd6ee05f9b0d58a88fe9b61f52bf847227c51a6
SHA1 (patch-ab) = 7af616781aa695e6be2c4a4cae23dafc5d056c4f
SHA1 (patch-ac) = 520be2c3b72c9962b4fe6f2d3618fc3fdc109899
+16
View File
@@ -0,0 +1,16 @@
# $NetBSD: options.mk,v 1.3 2007/02/22 19:26:06 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.madplay
PKG_SUPPORTED_OPTIONS= esound oss
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mesound)
.include "../../audio/esound/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-esd
.endif
.if !empty(PKG_OPTIONS:Moss)
.include "../../mk/oss.buildlink3.mk"
.endif
+38
View File
@@ -0,0 +1,38 @@
$NetBSD: patch-aa,v 1.6 2004/03/01 15:56:58 adam Exp $
--- configure.orig 2004-02-23 21:36:21.000000000 +0000
+++ configure
@@ -19037,33 +19037,6 @@ fi
while test $# -gt 0
do
case "$1" in
- -Wall)
- if test "$GCC" = yes
- then
- :
- else
- CFLAGS="$CFLAGS $1"
- fi
- shift
- ;;
- -g)
- debug="-g"
- shift
- ;;
- -mno-cygwin)
- shift
- ;;
- -m*)
- arch="$arch $1"
- shift
- ;;
- -fomit-frame-pointer)
- shift
- ;;
- -O*|-f*)
- optimize="$1"
- shift
- ;;
*)
CFLAGS="$CFLAGS $1"
shift
+22
View File
@@ -0,0 +1,22 @@
$NetBSD: patch-ab,v 1.6 2004/06/12 01:37:39 grant Exp $
--- audio.c.orig 2004-01-23 20:41:31.000000000 +1100
+++ audio.c
@@ -959,7 +959,7 @@ unsigned int audio_pcm_s32be(unsigned ch
}
}
-static
+static inline
unsigned char linear2mulaw(mad_fixed_t sample)
{
unsigned int sign, mulaw;
@@ -1000,7 +1000,7 @@ unsigned char linear2mulaw(mad_fixed_t s
return mulaw;
}
-static
+static inline
mad_fixed_t mulaw2linear(unsigned char mulaw)
{
int sign, segment, mantissa, value;
+22
View File
@@ -0,0 +1,22 @@
$NetBSD: patch-ac,v 1.4 2007/10/09 20:13:40 hubertf Exp $
--- audio_carbon.c.orig 2004-01-23 10:41:31.000000000 +0100
+++ audio_carbon.c
@@ -94,7 +94,7 @@ void callback(SndChannelPtr channel, Snd
}
static
-int wait(struct buffer *buffer)
+int madplay_wait(struct buffer *buffer)
{
if (MPWaitOnSemaphore(buffer->semaphore, kDurationForever) != noErr) {
audio_error = _("MPWaitOnSemaphore() failed");
@@ -263,7 +263,7 @@ int play(struct audio_play *play)
/* wait for block to finish playing */
if (buffer->pcm_nsamples == 0) {
- if (wait(buffer) == -1)
+ if (madplay_wait(buffer) == -1)
return -1;
buffer->pcm_length = 0;