diff options
author | lioux <lioux@FreeBSD.org> | 2000-12-19 15:39:12 +0000 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2000-12-19 15:39:12 +0000 |
commit | a9528ca8540adf4e44212ce60d597f0f698c755b (patch) | |
tree | 657e6c751f467acb94315554aa49c1951c4596d7 /audio/mad | |
parent | bdf48905112de559a79c061936aea416026c3550 (diff) | |
download | FreeBSD-ports-a9528ca8540adf4e44212ce60d597f0f698c755b.zip FreeBSD-ports-a9528ca8540adf4e44212ce60d597f0f698c755b.tar.gz |
New port audio/mad, a High-quality MPEG audio decoder.
PR: 22950
Submitted by: Jason R. Mastaler <jason-freebsd@mastaler.com>
Diffstat (limited to 'audio/mad')
-rw-r--r-- | audio/mad/Makefile | 29 | ||||
-rw-r--r-- | audio/mad/distinfo | 1 | ||||
-rw-r--r-- | audio/mad/files/patch-aa | 37 | ||||
-rw-r--r-- | audio/mad/files/patch-ab | 13 | ||||
-rw-r--r-- | audio/mad/pkg-comment | 1 | ||||
-rw-r--r-- | audio/mad/pkg-descr | 20 | ||||
-rw-r--r-- | audio/mad/pkg-plist | 10 |
7 files changed, 111 insertions, 0 deletions
diff --git a/audio/mad/Makefile b/audio/mad/Makefile new file mode 100644 index 0000000..f2de699 --- /dev/null +++ b/audio/mad/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: mad +# Date created: 18 November 2000 +# Whom: Jason R. Mastaler <jason-freebsd@mastaler.com> et al. +# +# $FreeBSD$ +# + +PORTNAME= mad +PORTVERSION= 0.12.1b +CATEGORIES= audio +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ + ftp://ftp.mars.org/pub/mpeg/ +MASTER_SITE_SUBDIR= mad + +MAINTAINER= jason-freebsd@mastaler.com + +GNU_CONFIGURE= yes +# This port is not CFLAGS SAFE, something like CFLAGS="-O -Os" +# breaks configure and configure likes to use -O2 instead of +# trusting the system. We'll have it use -O instead of -O* +# since this configure requires a standard and this has +# been the system standard +CONFIGURE_ENV= CFLAGS="-O -pipe" +USE_GMAKE= yes +USE_LIBTOOL= yes + +MAN1= abxtest.1 madplay.1 + +.include <bsd.port.mk> diff --git a/audio/mad/distinfo b/audio/mad/distinfo new file mode 100644 index 0000000..e85406f --- /dev/null +++ b/audio/mad/distinfo @@ -0,0 +1 @@ +MD5 (mad-0.12.1b.tar.gz) = 7562add886aee7b2dbdc3c22b32e70bd diff --git a/audio/mad/files/patch-aa b/audio/mad/files/patch-aa new file mode 100644 index 0000000..3a7fab1 --- /dev/null +++ b/audio/mad/files/patch-aa @@ -0,0 +1,37 @@ +This port is not CFLAGS safe. I will not try to make it on this +particular version. However, I will make it use -O instead of -O2 +since I am told that -O2 brakes the alpha ARCH. Partially provided +by lioux@freebsd.org + +--- configure.orig Fri Nov 17 04:20:18 2000 ++++ configure Sun Nov 26 22:56:39 2000 +@@ -3800,7 +3800,8 @@ + then + case "$host" in + i386-*) ARCH="" ;; +- i?86-*) ARCH="-m486" ;; ++ i486-*) ARCH="-m486" ;; ++ i586-*) ARCH="-mpentium" ;; + arm-empeg-*) ARCH="-march=armv4 -mtune=strongarm1100" ;; + armv4*-*) ARCH="-march=armv4 -mtune=strongarm" ;; + mips*-*) ARCH="" ;; +@@ -3813,7 +3814,7 @@ + esac + + case "$CFLAGS" in +- *-O*) OPTIMIZER="-O2" ;; ++ *-O*) OPTIMIZER="-O" ;; + esac + + CFLAGS=`echo ".$CFLAGS" | \ +@@ -5439,10 +5440,6 @@ + *) # Relative path. + ac_sub_cache_file="$ac_dots$cache_file" ;; + esac +- case "$ac_given_INSTALL" in +- [/$]*) INSTALL="$ac_given_INSTALL" ;; +- *) INSTALL="$ac_dots$ac_given_INSTALL" ;; +- esac + + echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" + # The eval makes quoting arguments work. diff --git a/audio/mad/files/patch-ab b/audio/mad/files/patch-ab new file mode 100644 index 0000000..4baa960 --- /dev/null +++ b/audio/mad/files/patch-ab @@ -0,0 +1,13 @@ +--- audio_oss.c.orig Thu Nov 16 03:51:04 2000 ++++ audio_oss.c Sat Nov 18 13:45:25 2000 +@@ -57,6 +57,10 @@ + # undef AUDIO_TRY32BITS + # endif + ++# if !defined(SNDCTL_DSP_CHANNELS) && defined(SOUND_PCM_WRITE_CHANNELS) ++# define SNDCTL_DSP_CHANNELS SOUND_PCM_WRITE_CHANNELS ++# endif ++ + # define AUDIO_DEVICE "/dev/dsp" + + static int sfd; diff --git a/audio/mad/pkg-comment b/audio/mad/pkg-comment new file mode 100644 index 0000000..cc3534a --- /dev/null +++ b/audio/mad/pkg-comment @@ -0,0 +1 @@ +High-quality MPEG audio decoder diff --git a/audio/mad/pkg-descr b/audio/mad/pkg-descr new file mode 100644 index 0000000..3bb6fa2 --- /dev/null +++ b/audio/mad/pkg-descr @@ -0,0 +1,20 @@ +MAD is a high-quality MPEG audio decoder. It currently supports MPEG-1 +as well as the MPEG-2 extension to Lower Sampling Frequencies. All +three audio layers (Layer I, Layer II, and Layer III a.k.a. MP3) are +fully implemented. + +MAD does not yet support MPEG-2 multichannel audio (although it should +be backward compatible with such streams) or AAC, nor does it support +the so-called MPEG 2.5 format. + +MAD has the following special features: + + - 24-bit PCM output + - 100% fixed-point (integer) computation + - completely new implementation based on the ISO/IEC standards + - distributed under the terms of the GNU General Public License (GPL) + +The software is distributed as a library (libmad) and command-line +front-end (madplay). + +WWW: http://mad.sourceforge.net/ diff --git a/audio/mad/pkg-plist b/audio/mad/pkg-plist new file mode 100644 index 0000000..b476154 --- /dev/null +++ b/audio/mad/pkg-plist @@ -0,0 +1,10 @@ +bin/abxtest +bin/madplay +include/mad.h +lib/libmad.a +lib/libmad.la +share/locale/en/LC_MESSAGES/mad.mo +share/locale/es/LC_MESSAGES/mad.mo +share/locale/fr/LC_MESSAGES/mad.mo +share/locale/hr/LC_MESSAGES/mad.mo +share/locale/no/LC_MESSAGES/mad.mo |