#!/bin/sh

. config/options $1

cd $PKG_BUILD
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --sysconfdir=/etc \
            --disable-static \
            --enable-shared \
            --disable-rpath \
            --enable-cxx \
            --disable-cpp-progs \
            --enable-joliet \
            --enable-rock \
            --disable-cddb \
            --disable-vcd-info \
            --with-cd-drive \
            --with-cd-info \
            --with-cd-paranoia \
            --with-cdda_player \
            --with-cd-read \
            --with-iso-info \
            --with-iso-read \
            --without-versioned-libs \

make -C lib
make -C include

$MAKEINSTALL -C lib
$MAKEINSTALL -C include

mkdir -p $SYSROOT_PREFIX/usr/lib/pkgconfig
  cp *.pc $SYSROOT_PREFIX/usr/lib/pkgconfig
