Add pkg-config

This commit is contained in:
Jeremy Soller 2019-07-23 19:50:04 -06:00
parent ea9b2eef65
commit 8b9ec344da
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

43
recipes/pkg-config/recipe.sh Executable file
View File

@ -0,0 +1,43 @@
VERSION="0.29.2"
TAR="https://pkg-config.freedesktop.org/releases/pkg-config-${VERSION}.tar.gz"
BUILD_DEPENDS=(gettext glib libiconv pcre)
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build {
wget -O config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
export LDFLAGS="--static"
./configure \
--build="${BUILD}" \
--host="${HOST}" \
--prefix="" \
--disable-shared \
--enable-static
make -j"$(nproc)"
skip=1
}
function recipe_test {
echo "skipping test"
skip=1
}
function recipe_clean {
make clean
skip=1
}
function recipe_stage {
export DESTDIR="$(realpath $1)"
make install
rm -f "${DESTDIR}/lib/"*.la
skip=1
}