diff options
author | wiz <wiz> | 2002-05-12 00:54:02 +0000 |
---|---|---|
committer | wiz <wiz> | 2002-05-12 00:54:02 +0000 |
commit | 6ffa2a13aa1fccdc8eeb1346d470463dc46d5dd2 (patch) | |
tree | 406c00025a9ff2c04c9b044a88e52a26766facaa /audio/mpegaudio | |
parent | 83a62cd79e40dd93a6124fe04165e1deb939e85a (diff) | |
download | pkgsrc-6ffa2a13aa1fccdc8eeb1346d470463dc46d5dd2.tar.gz |
Initial import of mpegaudio, based on a package by Veego, which seems based
on the FreeBSD port:
mpegaudio is an MPEG/audio Layer 1 and Layer 2 software package.
Diffstat (limited to 'audio/mpegaudio')
-rw-r--r-- | audio/mpegaudio/DESCR | 1 | ||||
-rw-r--r-- | audio/mpegaudio/Makefile | 16 | ||||
-rw-r--r-- | audio/mpegaudio/PLIST | 28 | ||||
-rw-r--r-- | audio/mpegaudio/distinfo | 8 | ||||
-rw-r--r-- | audio/mpegaudio/files/mpeg_musicin.1 | 122 | ||||
-rw-r--r-- | audio/mpegaudio/files/mpeg_musicout.1 | 94 | ||||
-rw-r--r-- | audio/mpegaudio/patches/patch-aa | 30 | ||||
-rw-r--r-- | audio/mpegaudio/patches/patch-ab | 13 | ||||
-rw-r--r-- | audio/mpegaudio/patches/patch-ac | 13 | ||||
-rw-r--r-- | audio/mpegaudio/patches/patch-ad | 13 |
10 files changed, 338 insertions, 0 deletions
diff --git a/audio/mpegaudio/DESCR b/audio/mpegaudio/DESCR new file mode 100644 index 00000000000..63783832e10 --- /dev/null +++ b/audio/mpegaudio/DESCR @@ -0,0 +1 @@ +mpegaudio is an MPEG/audio Layer 1 and Layer 2 software package. diff --git a/audio/mpegaudio/Makefile b/audio/mpegaudio/Makefile new file mode 100644 index 00000000000..185d15bb2d1 --- /dev/null +++ b/audio/mpegaudio/Makefile @@ -0,0 +1,16 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/05/12 00:54:02 wiz Exp $ + +DISTNAME= mpegaudio +PKGNAME= mpegaudio-3.9 +CATEGORIES= audio +MASTER_SITES= ftp://ftp.ise.fhg.de/pub/graphics/mpeg/ +EXTRACT_SUFX= .tar.Z + +MAINTAINER= packages@netbsd.org +COMMENT= MPEG/audio Layer 1 and Layer 2 encoder/decoder package + +post-install: + ${INSTALL_MAN} ${FILESDIR}/mpeg_musicin.1 ${PREFIX}/man/man1 + ${INSTALL_MAN} ${FILESDIR}/mpeg_musicout.1 ${PREFIX}/man/man1 + +.include "../../mk/bsd.pkg.mk" diff --git a/audio/mpegaudio/PLIST b/audio/mpegaudio/PLIST new file mode 100644 index 00000000000..cd25f37815f --- /dev/null +++ b/audio/mpegaudio/PLIST @@ -0,0 +1,28 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/05/12 00:54:02 wiz Exp $ +bin/mpeg_musicin +bin/mpeg_musicout +lib/mpegaudio/tables/1cb0 +lib/mpegaudio/tables/1cb1 +lib/mpegaudio/tables/1cb2 +lib/mpegaudio/tables/1th0 +lib/mpegaudio/tables/1th1 +lib/mpegaudio/tables/1th2 +lib/mpegaudio/tables/2cb0 +lib/mpegaudio/tables/2cb1 +lib/mpegaudio/tables/2cb2 +lib/mpegaudio/tables/2th0 +lib/mpegaudio/tables/2th1 +lib/mpegaudio/tables/2th2 +lib/mpegaudio/tables/absthr_0 +lib/mpegaudio/tables/absthr_1 +lib/mpegaudio/tables/absthr_2 +lib/mpegaudio/tables/alloc_0 +lib/mpegaudio/tables/alloc_1 +lib/mpegaudio/tables/alloc_2 +lib/mpegaudio/tables/alloc_3 +lib/mpegaudio/tables/dewindow +lib/mpegaudio/tables/enwindow +man/man1/mpeg_musicin.1 +man/man1/mpeg_musicout.1 +@dirrm lib/mpegaudio/tables +@dirrm lib/mpegaudio diff --git a/audio/mpegaudio/distinfo b/audio/mpegaudio/distinfo new file mode 100644 index 00000000000..0ae06b36ab2 --- /dev/null +++ b/audio/mpegaudio/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/05/12 00:54:03 wiz Exp $ + +SHA1 (mpegaudio.tar.Z) = 75a801c4aff290b4e0c7cdb2b07991c630955fbf +Size (mpegaudio.tar.Z) = 144707 bytes +SHA1 (patch-aa) = 7b61fd9effe57086d2d2f669fd5b5235a8854e03 +SHA1 (patch-ab) = 67758b144d384aea66509e508e79112a052b8369 +SHA1 (patch-ac) = f6d43ceaf9640289c6cdf0ff8db6f2ca9bc02ca1 +SHA1 (patch-ad) = 1fb96e8132ae322f377184f119a0e519dee9f21d diff --git a/audio/mpegaudio/files/mpeg_musicin.1 b/audio/mpegaudio/files/mpeg_musicin.1 new file mode 100644 index 00000000000..70e00d405ad --- /dev/null +++ b/audio/mpegaudio/files/mpeg_musicin.1 @@ -0,0 +1,122 @@ +.\" Copyright (c) 1997 Andreas Klemm <andreas@FreeBSD.org>. Neuss. +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" $FreeBSD: ports/audio/mpegaudio/files/mpeg_musicin.1,v 1.2 1999/08/29 10:56:51 peter Exp $ +.Dd August 17, 1997 +.Dt MPEG_MUSICIN 1 +.Os +.Sh NAME +.Nm mpeg_musicin +.Nd MPEG/audio Layer 1 and Layer 2 decoder +.Sh SYNOPSIS +.Nm mpeg_musicin +queries for all arguments, or +.br +.Nm mpeg_musicin +.Op Fl l Ar lay +.br +.Op Fl m Ar mode +.br +.Op Fl p Ar psy +.br +.Op Fl s Ar sfrq +.br +.Op Fl b Ar br +.br +.Op Fl d Ar emp +.br +.Op Fl c +.br +.Op Fl o +.br +.Op Fl e +.br +inputCM +.br +.Op Ar outBS +.br +.Sh DESCRIPTION +The encoder and decoder software are configured to output +the coded audio bitstreams as a string of hexadecimal ascii +characters. For greater compression efficiency, compile flag, +BS_FORMAT, in common.h can be switched to configure the bitstream +reading and writing routines to process raw binary bitstreams. +.br +The decoder program has a very crude implementation of bitstream +synchword detection. It may not be able to correctly decode valid +bitstreams which have false synchword patterns in the ancillary data +portion of the bitstream. +.Sh RESTRICTIONS +The software implements levels I and II and psychophysical auditory +models I and II as described in the ISO 3-11171 rev 1 standard. +There are future plans to implement level III. +.br +The input/output audio data may either be headerless raw 16 bit data +or alternatively an AIFF formatted file (Audio Interchange File Format) +with certain limitations. +.br +For more information on the AIFF format see the postscript file +/sgi/aiff-c.9.26.91.ps at the anonymous ftp site FTP.SGI.COM +(192.48.153.1). +.br +The AIFF formatted file is a convenient way for storing sampling rate +of the audio file. +.br +The encoder and decoder software are configured to output the coded +audio bitstreams as a string of hexadecimal ascii characters. +For greater compression efficiency, compile flag, BS_FORMAT, +in common.h can be switched to configure the bitstream reading +and writing routines to process raw binary bitstreams. +.br +This software has been run and verified on a large variety of +computers and operating systems. In particular UNIX, MS_DOS (with +MicroSoft C version 6), Macintosh, AIX Platform (RS6000) and Convex. +.Sh OPTIONS +.Bl -tag -width Ds +.It Sy -l lay +use layer <lay> coding (default: 2) +.It Sy -m mode +channel mode : s/d/j/m (default: s) +.It Sy -p psy +psychoacoustic model 1/2 (default: 2) +.It Sy -s sfrq +input smpl rate in kHz (default: 44.1) +.It Sy -b br +total bitrate in kbps (default: 384) +.It Sy -d emp +de-emphasis n/5/c (default: n) +.It Sy -c +mark as copyright +.It Sy -o +mark as original +.It Sy -e +add error protection +.It Sy inputPCM +input PCM sound file (standard or AIFF) +.It Sy outBS +output bit stream of encoded audio (dflt inName+.mpg) +.Sh SEE ALSO +.Xr mpeg_musicout 1 +.Sh HISTORY +Written by Andreas Klemm, August 17, 1997 diff --git a/audio/mpegaudio/files/mpeg_musicout.1 b/audio/mpegaudio/files/mpeg_musicout.1 new file mode 100644 index 00000000000..cba817497e6 --- /dev/null +++ b/audio/mpegaudio/files/mpeg_musicout.1 @@ -0,0 +1,94 @@ +.\" Copyright (c) 1997 Andreas Klemm <andreas@FreeBSD.org>. Neuss. +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" $FreeBSD: ports/audio/mpegaudio/files/mpeg_musicout.1,v 1.2 1999/08/29 10:56:51 peter Exp $ +.Dd August 17, 1997 +.Dt MPEG_MUSICOUT 1 +.Os +.Sh NAME +.Nm mpeg_musicout +.Nd MPEG/audio Layer 1 and Layer 2 encoder +.Sh SYNOPSIS +.Nm mpeg_musicout +queries for all arguments, or +.br +.Nm mpeg_musicout +.Op Fl A +.br +.Op Fl s Ar sb +.br +inputBS +.br +.Op Ar outPCM +.br +.Sh DESCRIPTION +The encoder and decoder software are configured to output +the coded audio bitstreams as a string of hexadecimal ascii +characters. For greater compression efficiency, compile flag, +BS_FORMAT, in common.h can be switched to configure the bitstream +reading and writing routines to process raw binary bitstreams. +.br +The decoder program has a very crude implementation of bitstream +synchword detection. It may not be able to correctly decode valid +bitstreams which have false synchword patterns in the ancillary data +portion of the bitstream. +.Sh RESTRICTIONS +The software implements levels I and II and psychophysical auditory +models I and II as described in the ISO 3-11171 rev 1 standard. +There are future plans to implement level III. +.br +The input/output audio data may either be headerless raw 16 bit data +or alternatively an AIFF formatted file (Audio Interchange File Format) +with certain limitations. +.br +For more information on the AIFF format see the postscript file +/sgi/aiff-c.9.26.91.ps at the anonymous ftp site FTP.SGI.COM +(192.48.153.1). +.br +The AIFF formatted file is a convenient way for storing sampling rate +of the audio file. +.br +The encoder and decoder software are configured to output the coded +audio bitstreams as a string of hexadecimal ascii characters. +For greater compression efficiency, compile flag, BS_FORMAT, +in common.h can be switched to configure the bitstream reading +and writing routines to process raw binary bitstreams. +.br +This software has been run and verified on a large variety of +computers and operating systems. In particular UNIX, MS_DOS (with +MicroSoft C version 6), Macintosh, AIX Platform (RS6000) and Convex. +.Sh OPTIONS +.Bl -tag -width Ds +.It Sy -A +write an AIFF output PCM sound file +.It Sy -s sb +resynth only up to this sb (debugging only) +.It Sy inputBS +input bit stream of encoded audio +.It Sy outPCM +output PCM sound file (dflt inName+.dec) +.Sh SEE ALSO +.Xr mpeg_musicin 1 +.Sh HISTORY +Written by Andreas Klemm, August 17, 1997 diff --git a/audio/mpegaudio/patches/patch-aa b/audio/mpegaudio/patches/patch-aa new file mode 100644 index 00000000000..042c62eb71d --- /dev/null +++ b/audio/mpegaudio/patches/patch-aa @@ -0,0 +1,30 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/05/12 00:54:04 wiz Exp $ + +--- Makefile.orig Wed Jan 5 02:47:50 1994 ++++ Makefile +@@ -1,10 +1,21 @@ + ALL : musicin musicout + +-CFLAGS = -O2 +-LDFLAGS= ++CFLAGS += -DPREFIX=\"${PREFIX}\" ++ ++all: musicin musicout + + musicin: musicin.o common.o encode.o subs.o psy.o tonal.o +- cc $(LDFLAGS) -o musicin musicin.o common.o encode.o subs.o psy.o tonal.o -lm ++ ${CC} -o musicin musicin.o common.o encode.o subs.o psy.o tonal.o -lm + + musicout: musicout.o common.o decode.o subs.o +- cc $(LDFLAGS) musicout.o common.o decode.o subs.o -o musicout -lm ++ ${CC} musicout.o common.o decode.o subs.o -o musicout -lm ++ ++clean: ++ rm -f *.core *.o musicin musicout ++ ++install: ++ ${BSD_INSTALL_PROGRAM} musicin ${PREFIX}/bin/mpeg_musicin ++ ${BSD_INSTALL_PROGRAM} musicout ${PREFIX}/bin/mpeg_musicout ++ ${BSD_INSTALL_DATA_DIR} ${PREFIX}/lib/mpegaudio/tables ++ ${BSD_INSTALL_DATA} tables/* ${PREFIX}/lib/mpegaudio/tables/ ++ diff --git a/audio/mpegaudio/patches/patch-ab b/audio/mpegaudio/patches/patch-ab new file mode 100644 index 00000000000..353648b2b64 --- /dev/null +++ b/audio/mpegaudio/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/05/12 00:54:04 wiz Exp $ + +--- common.h.orig Wed Jan 5 02:42:00 1994 ++++ common.h +@@ -73,7 +73,7 @@ + #endif + + #ifdef UNIX +-#define TABLES_PATH "tables" /* to find data files */ ++#define TABLES_PATH PREFIX "/lib/mpegaudio/tables" /* to find data files */ + /* name of environment variable holding path of table files */ + #define MPEGTABENV "MPEGTABLES" + #define PATH_SEPARATOR "/" /* how to build paths */ diff --git a/audio/mpegaudio/patches/patch-ac b/audio/mpegaudio/patches/patch-ac new file mode 100644 index 00000000000..47c96cb5f32 --- /dev/null +++ b/audio/mpegaudio/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1.1.1 2002/05/12 00:54:04 wiz Exp $ + +--- musicin.c.orig Wed Jan 5 02:13:44 1994 ++++ musicin.c +@@ -101,6 +101,8 @@ + #include "common.h" + #include "encoder.h" + ++#include <stdlib.h> ++ + /* Global variable definitions for "musicin.c" */ + + FILE *musicin; diff --git a/audio/mpegaudio/patches/patch-ad b/audio/mpegaudio/patches/patch-ad new file mode 100644 index 00000000000..06caa7a3fd9 --- /dev/null +++ b/audio/mpegaudio/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1.1.1 2002/05/12 00:54:04 wiz Exp $ + +--- musicout.c.orig Wed Jan 5 05:39:27 1994 ++++ musicout.c +@@ -58,6 +58,8 @@ + #include "common.h" + #include "decoder.h" + ++#include <stdlib.h> ++ + /******************************************************************** + /* + /* This part contains the MPEG I decoder for Layers I & II. |