gnormalize decodes the MP3/MP4/MPC/OGG/APE/FLAC file to WAV,
then normalizes the WAV to a targeted volume level and re-encodes
it. Moreover, gnormalize can extract Audio CD track and output as
various popular audio formats (MP3, MP4, MPC, OGG, APE, FLAC, WAV)
with fast speed and high quality. gnormalize can also convert audio
format between MP3, MP4, MPC, OGG, APE and FLAC with high fidelity,
which meets your need to play and collect audio files. It can change
the encoding and Metadata (tag) properties of final normalized files.
WWW: http://gnormalize.sourceforge.net/
PR: ports/117544
Submitted by: Denise H. G. <darcsis at gmail.com>
2008-02-07 17:15:31 +00:00
|
|
|
# New ports collection makefile for: gnormalize
|
|
|
|
# Date created: 27 Oct 2007
|
|
|
|
# Whom: Denise H. G. <darcsis@gmail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gnormalize
|
2008-08-25 21:24:37 +00:00
|
|
|
PORTVERSION= 0.63
|
2010-08-11 21:04:44 +00:00
|
|
|
PORTREVISION= 6
|
gnormalize decodes the MP3/MP4/MPC/OGG/APE/FLAC file to WAV,
then normalizes the WAV to a targeted volume level and re-encodes
it. Moreover, gnormalize can extract Audio CD track and output as
various popular audio formats (MP3, MP4, MPC, OGG, APE, FLAC, WAV)
with fast speed and high quality. gnormalize can also convert audio
format between MP3, MP4, MPC, OGG, APE and FLAC with high fidelity,
which meets your need to play and collect audio files. It can change
the encoding and Metadata (tag) properties of final normalized files.
WWW: http://gnormalize.sourceforge.net/
PR: ports/117544
Submitted by: Denise H. G. <darcsis at gmail.com>
2008-02-07 17:15:31 +00:00
|
|
|
CATEGORIES= audio
|
2008-05-24 19:00:21 +00:00
|
|
|
MASTER_SITES= SF
|
gnormalize decodes the MP3/MP4/MPC/OGG/APE/FLAC file to WAV,
then normalizes the WAV to a targeted volume level and re-encodes
it. Moreover, gnormalize can extract Audio CD track and output as
various popular audio formats (MP3, MP4, MPC, OGG, APE, FLAC, WAV)
with fast speed and high quality. gnormalize can also convert audio
format between MP3, MP4, MPC, OGG, APE and FLAC with high fidelity,
which meets your need to play and collect audio files. It can change
the encoding and Metadata (tag) properties of final normalized files.
WWW: http://gnormalize.sourceforge.net/
PR: ports/117544
Submitted by: Denise H. G. <darcsis at gmail.com>
2008-02-07 17:15:31 +00:00
|
|
|
|
|
|
|
MAINTAINER= darcsis@gmail.com
|
|
|
|
COMMENT= An alternative for replaygain
|
|
|
|
|
2008-06-21 15:28:21 +00:00
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Gtk2.pm:${PORTSDIR}/x11-toolkits/p5-Gtk2 \
|
|
|
|
wavegain:${PORTSDIR}/audio/wavegain
|
gnormalize decodes the MP3/MP4/MPC/OGG/APE/FLAC file to WAV,
then normalizes the WAV to a targeted volume level and re-encodes
it. Moreover, gnormalize can extract Audio CD track and output as
various popular audio formats (MP3, MP4, MPC, OGG, APE, FLAC, WAV)
with fast speed and high quality. gnormalize can also convert audio
format between MP3, MP4, MPC, OGG, APE and FLAC with high fidelity,
which meets your need to play and collect audio files. It can change
the encoding and Metadata (tag) properties of final normalized files.
WWW: http://gnormalize.sourceforge.net/
PR: ports/117544
Submitted by: Denise H. G. <darcsis at gmail.com>
2008-02-07 17:15:31 +00:00
|
|
|
|
|
|
|
USE_PERL5_RUN= yes
|
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
MAN1= gnormalize.1
|
|
|
|
|
2008-05-24 19:00:21 +00:00
|
|
|
OPTIONS= \
|
|
|
|
GNORMALIZE_MP3 "WAV <-> MP3 Support" on \
|
|
|
|
GNORMALIZE_OGG "Ogg Encoding and Playback" on \
|
|
|
|
GNORMALIZE_MP4 "WAV <-> MP4 Support" on \
|
|
|
|
GNORMALIZE_CDRIP "CD Ripping" off \
|
|
|
|
GNORMALIZE_CDDB "CDDB Support" off \
|
|
|
|
GNORMALIZE_CDPLAY "CD Playback" off \
|
|
|
|
GNORMALIZE_FLAC "FLAC Encoding and Playback" off \
|
|
|
|
GNORMALIZE_MAC "Monkey's Audio Encoding and Playback" off \
|
2008-06-21 15:28:21 +00:00
|
|
|
GNORMALIZE_MPC "MPC (musepack) Audio" off
|
2008-05-24 19:00:21 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_GNORMALIZE_MP3)
|
|
|
|
RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame \
|
|
|
|
${SITE_PERL}/MP3/Info.pm:${PORTSDIR}/audio/p5-MP3-Info
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GNORMALIZE_OGG)
|
|
|
|
RUN_DEPENDS+= oggenc:${PORTSDIR}/audio/vorbis-tools
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GNORMALIZE_MP4)
|
|
|
|
RUN_DEPENDS+= faac:${PORTSDIR}/audio/faac \
|
|
|
|
faad:${PORTSDIR}/audio/faad
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GNORMALIZE_CDRIP)
|
|
|
|
.if defined(WITH_CDDA2WAV)
|
|
|
|
RUN_DEPENDS+= cdda2wav:${PORTSDIR}/sysutils/cdrtools
|
|
|
|
.else
|
|
|
|
RUN_DEPENDS+= cdparanoia:${PORTSDIR}/audio/cdparanoia
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GNORMALIZE_CDDB)
|
|
|
|
RUN_DEPENDS+= cddb.pl:${PORTSDIR}/audio/p5-CDDB_get
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GNORMALIZE_CDPLAY)
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Audio/CD.pm:${PORTSDIR}/audio/p5-Audio-CD
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GNORMALIZE_FLAC)
|
|
|
|
RUN_DEPENDS+= flac:${PORTSDIR}/audio/flac
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GNORMALIZE_MAC)
|
|
|
|
RUN_DEPENDS+= mac:${PORTSDIR}/audio/mac
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GNORMALIZE_MPC)
|
|
|
|
RUN_DEPENDS+= mppenc:${PORTSDIR}/audio/musepack
|
|
|
|
.endif
|
|
|
|
|
2010-05-21 16:23:46 +00:00
|
|
|
.if ${OSVERSION} < 800505 || (${OSVERSION} >= 900000 && ${OSVERSION} < 900012)
|
|
|
|
BUILD_DEPENDS+= lzma:${PORTSDIR}/archivers/xz
|
|
|
|
.endif
|
|
|
|
|
gnormalize decodes the MP3/MP4/MPC/OGG/APE/FLAC file to WAV,
then normalizes the WAV to a targeted volume level and re-encodes
it. Moreover, gnormalize can extract Audio CD track and output as
various popular audio formats (MP3, MP4, MPC, OGG, APE, FLAC, WAV)
with fast speed and high quality. gnormalize can also convert audio
format between MP3, MP4, MPC, OGG, APE and FLAC with high fidelity,
which meets your need to play and collect audio files. It can change
the encoding and Metadata (tag) properties of final normalized files.
WWW: http://gnormalize.sourceforge.net/
PR: ports/117544
Submitted by: Denise H. G. <darcsis at gmail.com>
2008-02-07 17:15:31 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,^PREFIX=.*,PREFIX=${PREFIX},; \
|
|
|
|
s,^MANDIR=.*,MANDIR=${MANPREFIX}/man,; \
|
|
|
|
s,^BASE=.*,BASE=${DATADIR},' \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's,/usr/share/gnormalize,${DATADIR},' \
|
|
|
|
${WRKSRC}/gnormalize
|
|
|
|
|
2008-05-24 19:00:21 +00:00
|
|
|
.include <bsd.port.post.mk>
|