APP=libcdio
VERSION=2.1.0
BUILD=1sml
HOMEPAGE='https://www.gnu.org/software/libcdio/'
DOWNLOAD='http://git.savannah.gnu.org/cgit/libcdio.git/snapshot/libcdio-release-2.1.0.tar.gz'
DESC="CD-ROM library to access data from various CD-ROM image formats"
REQUIRES="gcc-libs netbsd-curses libcddb"

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

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

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --disable-vcd-info \
    --disable-static \
    --enable-cpp-progs

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
eb939751e6f2066dd83ee353f247aeb73bb04328de1e322e73534b764f541213f8bb20c2d66da6d244ed4cd4240955881e4d86f19e8576cbe875f0a8d537a788  libcdio-2.1.0.tar.lz
"
