APP=lame
VERSION=3.100
BUILD=1sml
HOMEPAGE='https://lame.sourceforge.io/'
DOWNLOAD='https://sourceforge.net/projects/lame/files/lame/3.100/lame-3.100.tar.gz'
DESC="MP3 compression and creation library"
REQUIRES="netbsd-curses nasm"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  LIBS="-lcurses -lterminfo" \
  ./configure \
    --prefix="" \
    --enable-shared \
    --enable-nasm \
    --disable-static

  make
  make install DESTDIR=$PKG

  cp COPYING LICENSE $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
ebb3357d5366da40a4dc076ddc3ce9fa355be7f6ea7d505536d20a6049a4fc798c7952666fd2b79b2989486acd48c91e553eddb29fa21ab5542e16e1b01c2287  lame-3.100.tar.lz
"
