#!/bin/bash

package=pkgconf
version=-2.5.1

progname=$0

source ../cascade-make/lib/cascade-lib.bash GEXT_PKGCONF ../.. $*

prefix=$GEXT_PKGCONF_INSTALLED

opt_run_untar     $force_untar  $auto_untar  $package $version
opt_run_configure $force_config $auto_config $package $version $prefix --disable-shared --enable-static

opt_run_make $compile   $package $version

opt_run_make $install   $package $version "install"
if [ $install = "1" ] ; then
    # Post-process install: change 'pkgconf' binary to 'pkg-conf'
    /bin/mv $GEXT_PKGCONF_INSTALLED/bin/pkgconf $GEXT_PKGCONF_INSTALLED/bin/pkg-config
fi

opt_run_make $clean     $package $version "clean"
opt_run_make $distclean $package $version "distclean"

opt_run_tarclean $tarclean $package $version




