name=libgd
version=2.1.0
release=1
license=libgd
download=https://bitbucket.org/libgd/gd-libgd/downloads

configure_opt="
  --disable-static
  --enable-shared
  --without-x
"

#src_prep()
#{
#  autoreconf -ivf
#}

# Compatibility with existing binary package
src_install()
{
  do_install
  
  case "$host" in
    *mingw*) ln -f $resultdir/lib/libgd.dll.a $resultdir/lib/bgd.lib ;;
  esac
  
  mkdir -p $local_tooldir
  cp $tooldir/tool.template $local_tooldir/gdlib-config
}

