name=pcb
version=1.99z
release=1
license=gpl2

#pkg_builddir=$(cd $bindir/.. && pwd)
#echo "pkg_builddir = $pkg_builddir"

configure_opt="--with-included-gettext --disable-update-desktop-database --disable-update-mime-database --disable-dbus --disable-gl --disable-doc --disable-m4lib-png"

# configure-time test fails because of stdcall signature
ac_cv_func_gdImageGif=yes
export ac_cv_func_gdImageGif=yes

ac_cv_func_gdImageJpeg=yes
export ac_cv_func_gdImageJpeg=yes

ac_cv_func_gdImagePng=yes
export ac_cv_func_gdImagePng=yes

get_source()
{
  echo "Skipping source download for $name because it is local"
}

src_configure()
{
  if [ ! -f configure ]; then
    ./autogen.sh || return 1
  fi
  do_configure
}
