diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2000-12-19 15:39:12 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2000-12-19 15:39:12 +0000 |
commit | 8b5d6fc1d80ea01d1a4cc4be8c8729e548f7e624 (patch) | |
tree | d8fe6c71887fb7563babb31c5625f0274d7fd7b2 /audio/mad | |
parent | 66ccdf8cbcb7568628c38e26f0e2a268595166ec (diff) | |
download | ports-8b5d6fc1d80ea01d1a4cc4be8c8729e548f7e624.tar.gz ports-8b5d6fc1d80ea01d1a4cc4be8c8729e548f7e624.zip |
New port audio/mad, a High-quality MPEG audio decoder.
PR: 22950
Submitted by: Jason R. Mastaler <jason-freebsd@mastaler.com>
Notes
Notes:
svn path=/head/; revision=36127
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 000000000000..f2de6995a3de --- /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 000000000000..e85406fba19c --- /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 000000000000..3a7fab16424f --- /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 000000000000..4baa9602788c --- /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 000000000000..cc3534ade19c --- /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 000000000000..3bb6fa27f919 --- /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 000000000000..b476154f0401 --- /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 |