From corecode@corecode.ath.cx  Thu Sep  5 04:27:57 2002
Return-Path: <corecode@corecode.ath.cx>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 04F0C37B400
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  5 Sep 2002 04:27:57 -0700 (PDT)
Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BB63F43E77
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  5 Sep 2002 04:27:55 -0700 (PDT)
	(envelope-from corecode@corecode.ath.cx)
Received: from fwd01.sul.t-online.de 
	by mailout03.sul.t-online.com with smtp 
	id 17munh-0000A0-0J; Thu, 05 Sep 2002 13:27:53 +0200
Received: from spirit.zuhause.stoert.net (320050403952-0001@[217.224.167.145]) by fmrl01.sul.t-online.com
	with esmtp id 17munY-07oWAqC; Thu, 5 Sep 2002 13:27:44 +0200
Received: from terrorfish.uni.stoert.net (terrorfish.uni.stoert.net [10.150.180.178])
	by spirit.zuhause.stoert.net (8.11.6/8.11.6) with ESMTP id g85BRgJ14837
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 5 Sep 2002 13:27:42 +0200 (CEST)
	(envelope-from corecode@corecode.ath.cx)
Received: from terrorfish.uni.stoert.net (localhost [127.0.0.1])
	by terrorfish.uni.stoert.net (8.12.6/8.12.5) with ESMTP id g85BQoMu035564
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 5 Sep 2002 13:26:50 +0200 (CEST)
	(envelope-from corecode@terrorfish.uni.stoert.net)
Received: (from corecode@localhost)
	by terrorfish.uni.stoert.net (8.12.6/8.12.5/Submit) id g85BQo94035563;
	Thu, 5 Sep 2002 13:26:50 +0200 (CEST)
	(envelope-from corecode)
Message-Id: <200209051126.g85BQo94035563@terrorfish.uni.stoert.net>
Date: Thu, 5 Sep 2002 13:26:50 +0200 (CEST)
From: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>
Reply-To: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: new port: audio/mp3gain (A tool to normalize the gain of mp3 files)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>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-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 05 04:30:01 PDT 2002
>Closed-Date:    Sun Jan 19 23:05:08 PST 2003
>Last-Modified:  Sun Jan 19 23:05:08 PST 2003
>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:
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Sun Jan 19 23:04:45 PST 2003 
State-Changed-Why:  
Superseeded by ports/46625. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42440 
>Unformatted:
