# packages/libgd/auxbuild
#

# download and unpack tarball
TARVERSION="2.0.36RC1"
TARDIR="gd-${TARVERSION}"
TARBALL="${TARDIR}.tar.bz2"
build_download "http://www.libgd.org/releases/${TARBALL}"
build_unpack "${TARBALL}"
PKGDIR="${TARDIR}"

# apply patches matching pattern (repository, patch prefix)
build_patch "${PKGDIR}" "${BUILD_PACKAGE}-ALL-"
build_patch "${PKGDIR}" "${BUILD_PACKAGE}-${TARVERSION}-"

# invoke configure (directory, prefix, extra arguments)
build_autoconf "${PKGDIR}" "/usr" "--without-x"

# run make, make install (directory, extra arguments)
build_make "${PKGDIR}"
build_make "${PKGDIR}" "install"

strip_files

true
# vim: ts=4:sw=4:expandtab:syntax=sh
