PortSystem 1.0

name		normalize
version		0.7.7
revision        4
categories	audio
license		GPL-2+
maintainers	nomaintainer
description	A tool to normalize WAV and MP3 audio
long_description	\
	Normalize is an overly complicated tool for adjusting the volume of \
	wave files to a standard volume level.  This is useful for things \
	like creating mp3 mixes, where different recording levels on \
	different albums can cause the volume to vary greatly from song to \
	song.
homepage	http://${name}.nongnu.org/
master_sites    https://savannah.nongnu.org/download/${name}/
checksums	md5 db5b18bf661a5317fbc507b020b8c643

depends_run \
	port:flac \
	port:vorbis-tools \
	port:lame

depends_lib \
	port:expat \
	port:gettext \
	port:audiofile \
	port:libiconv

configure.args	            --without-mad --disable-xmms --mandir=${prefix}/share/man

post-destroot {
	ln -s normalize ${destroot}${prefix}/bin/normalize-audio
}

variant mad description {Link against libmad for mp3 audio decoding} {
	depends_lib-append	port:libmad
	configure.args-delete	--without-mad
	configure.args-append	--with-mad
}

# conflicts with num-utils on ${prefix}/bin/normalize
conflicts-append    num-utils

livecheck.type	regex
livecheck.regex	${name}-(\[0-9.\]+)\\.tar
