makedepends=(libsndfile nasm mpg123)

packager="Great-OS Team"
maintainer="Great-OS Team"

description="MP3 encoder, an MP3 frame analyzer useful for creating, analyzing compressed audio files."
url="http://lame.sourceforge.net/index.php"

name=lame
version=4.0
release=1

source=(http://downloads.sourceforge.net/$name/$name-$version.tar.gz)

build() {

  cd lame-${version}

  export CFLAGS+=" -Wno-implicit-function-declaration -Wno-incompatible-pointer-types"

  ./configure --prefix=/usr \
              --enable-nasm \
              --enable-mp3rtp \
              --enable-shared

   make

}

package() {

  cd lame-${version}
  make DESTDIR="${PKG}" install
}
