# $Id: Portfile 55300 2009-08-08 15:55:47Z ram@macports.org $

PortSystem        1.0

name              lame
version           3.98.2
revision          1
categories        audio
platforms         darwin freebsd
maintainers       nomaintainer

description       Lame Ain't an MP3 Encoder
long_description  LAME is an educational tool to be used for learning \
  about MP3 encoding. The goal of the LAME project is to use the open \
  source model to improve the psycho acoustics, noise shaping and speed \
  of MP3. LAME is not for everyone - it is distributed as source code \
  only and requires the ability to use a C compiler.

homepage          http://lame.sourceforge.net/
master_sites      sourceforge:lame
distname          ${name}-398-2

depends_lib       port:ncurses

checksums         md5 719dae0ee675d0c16e0e89952930ed35 \
                  sha1 b2db41dbc9c0824caa102e8c932b820c79ccd5ec \
                  rmd160 767dd94271eef221170469535db2bf388149715a

configure.args    --mandir=${prefix}/share/man
configure.cppflags-append -I${prefix}/include/ncurses

post-configure {
    system "ed - ${worksrcpath}/config.h < ${filespath}/config.h.ed"
}
