Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2002 13:26:50 +0200 (CEST)
From:      "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/42440: new port: audio/mp3gain (A tool to normalize the gain of mp3 files)
Message-ID:  <200209051126.g85BQo94035563@terrorfish.uni.stoert.net>

next in thread | raw e-mail | index | archive | help

>Number:         42440
>Category:       ports
>Synopsis:       new port: audio/mp3gain (A tool to normalize the gain of mp3 files)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 05 04:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Simon 'corecode' Schubert
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD terrorfish.uni.stoert.net 5.0-CURRENT FreeBSD 5.0-CURRENT #28: Mon Sep 2 16:13:46 CEST 2002 corecode@terrorfish.uni.stoert.net:/usr/obj/k7/usr/src/sys/TERRORFISH i386


	
>Description:
Tired of reaching for your volume knob every time your mp3 player changes to a
new song?  MP3Gain analyzes and adjusts mp3 files so that they have the same
volume.

MP3Gain does not just do peak normalization, as many normalizers do. Instead,
it does some statistical analysis to determine how loud the file actually
sounds to the human ear.  Also, the changes MP3Gain makes are completely
lossless. There is no quality lost in the change because the program adjusts
the mp3 file directly, without decoding and re-encoding.

WWW: http://www.geocities.com/mp3gain/

- Simon 'corecode' Schubert
	
>How-To-Repeat:
	
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mp3gain
#	mp3gain/files
#	mp3gain/files/Makefile.main
#	mp3gain/files/Makefile.lib
#	mp3gain/Makefile
#	mp3gain/distinfo
#	mp3gain/pkg-comment
#	mp3gain/pkg-descr
#	mp3gain/pkg-plist
#
echo c - mp3gain
mkdir -p mp3gain > /dev/null 2>&1
echo c - mp3gain/files
mkdir -p mp3gain/files > /dev/null 2>&1
echo x - mp3gain/files/Makefile.main
sed 's/^X//' >mp3gain/files/Makefile.main << 'END-of-mp3gain/files/Makefile.main'
XSRCS=	gain_analysis.c mp3gain.c
XPROG=	mp3gain
X
XLDADD=	-LmpglibDBL -lm -lmpglibDBL
XDPADD=	mpglibDBL/libmpglibDBL.a
XOBJS=	libmpglibDBL.a
X
XPREFIX?=	/usr/local
XDESTDIR?=	${PREFIX}
XBINDIR=	/bin
X
XNOMAN=	yes
X
XlibmpglibDBL.a:
X	cd mpglibDBL && ${MAKE} ${.TARGET}
X	ln -s mpglibDBL/${.TARGET} ${.TARGET}
X
X.include <bsd.prog.mk>
END-of-mp3gain/files/Makefile.main
echo x - mp3gain/files/Makefile.lib
sed 's/^X//' >mp3gain/files/Makefile.lib << 'END-of-mp3gain/files/Makefile.lib'
XCFLAGS+=	-DNOANALYSIS
X
XSRCS=	common.c dct64_i386.c decode_i386.c interface.c layer1.c layer2.c\
X      	layer3.c tabinit.c
X
XLIB=	mpglibDBL
X
X.include <bsd.lib.mk>
END-of-mp3gain/files/Makefile.lib
echo x - mp3gain/Makefile
sed 's/^X//' >mp3gain/Makefile << 'END-of-mp3gain/Makefile'
X# New ports collection makefile for:	mp3gain
X# Date created:		5 September 2002
X# Whom:			Simon 'corecode' Schubert <corecode@corecode.ath.cx>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mp3gain
XPORTVERSION=	1.2.1
XCATEGORIES=	audio
XMASTER_SITES=	http://privatewww.essex.ac.uk/~djmrob/mp3gain/
XDISTNAME=	${PORTNAME}${PORTVERSION:C/\.//g}_src${EXTSUFFIX}
X
XMAINTAINER=	corecode@corecode.ath.cx
X
XUSE_REINPLACE=	yes
XUSE_ZIP=	yes
X
XNO_WRKSUBDIR=	yes
X
XMAKE_ENV=	PREFIX="${PREFIX}"
X
Xpre-patch:
X	@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e "s/`/usr/bin/printf '\r'`//"
X
Xpost-patch:
X	@${REINPLACE_CMD} -e '756s,/?,-h,;769,793s,/,-,g;791s,-?,-h,;858s,/,-,' ${WRKSRC}/mp3gain.c
X	@${REINPLACE_CMD} -e 's,\\,/,' ${WRKSRC}/mpglibDBL/interface.h
X	@${CP} ${FILESDIR}/Makefile.main ${WRKSRC}/Makefile
X	@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/mpglibDBL/Makefile
X
X.include <bsd.port.mk>
END-of-mp3gain/Makefile
echo x - mp3gain/distinfo
sed 's/^X//' >mp3gain/distinfo << 'END-of-mp3gain/distinfo'
XMD5 (mp3gain121_src.zip) = bf62579e03439b1edfe3115edf9cd434
END-of-mp3gain/distinfo
echo x - mp3gain/pkg-comment
sed 's/^X//' >mp3gain/pkg-comment << 'END-of-mp3gain/pkg-comment'
XA tool to normalize the gain of mp3 files
END-of-mp3gain/pkg-comment
echo x - mp3gain/pkg-descr
sed 's/^X//' >mp3gain/pkg-descr << 'END-of-mp3gain/pkg-descr'
XTired of reaching for your volume knob every time your mp3 player changes to a
Xnew song?  MP3Gain analyzes and adjusts mp3 files so that they have the same
Xvolume.
X
XMP3Gain does not just do peak normalization, as many normalizers do. Instead,
Xit does some statistical analysis to determine how loud the file actually
Xsounds to the human ear.  Also, the changes MP3Gain makes are completely
Xlossless. There is no quality lost in the change because the program adjusts
Xthe mp3 file directly, without decoding and re-encoding.
X
XWWW: http://www.geocities.com/mp3gain/
X
X- Simon 'corecode' Schubert
END-of-mp3gain/pkg-descr
echo x - mp3gain/pkg-plist
sed 's/^X//' >mp3gain/pkg-plist << 'END-of-mp3gain/pkg-plist'
Xbin/mp3gain
END-of-mp3gain/pkg-plist
exit

	


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209051126.g85BQo94035563>