mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-26 06:44:18 +08:00
Add pkg-config
This commit is contained in:
parent
ea9b2eef65
commit
8b9ec344da
43
recipes/pkg-config/recipe.sh
Executable file
43
recipes/pkg-config/recipe.sh
Executable 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
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user