# $Id: Portfile 68149 2010-05-27 21:40:49Z ryandesign@macports.org $

PortSystem                  1.0

name                        vorbisgain
version                     0.34
categories                  audio
platforms                   darwin
maintainers                 ryandesign openmaintainer
license                     LGPL-2.1
homepage                    http://sjeng.org/vorbisgain.html
master_sites                http://sjeng.org/ftp/vorbis/
use_zip                     yes

description                 corrects the volume of an Ogg Vorbis file to a \
                            predefined standardized loudness

long_description            VorbisGain ${description} by calculating the file's \
                            percieved sound level using the ReplayGain \
                            algorithm. VorbisGain then stores in the comments \
                            (tags) in the file a suggestion on how the volume \
                            should be changed during playback to get a uniform \
                            sound level. You then need to use an audio player \
                            that knows about and acts on that suggestion.

checksums                   md5     ee62352b74c610bb3eeddda038819fc8 \
                            sha1    7e758e5daade6803ccbccdb524a16797ad9e53ca \
                            rmd160  37c2a8ffefc3ad002a835ac668073dd3c284a36c

depends_lib                 port:libvorbis

post-extract {
    file attributes ${worksrcpath}/configure -permissions a+x
}

configure.args              --mandir=${prefix}/share/man

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 ${worksrcpath}/README ${docdir}
}
