| git.druid.rocks | index | druid520 | ports | ports/ | build-tools/ | u-config/ | add.sh |
ports/build-tools/u-config/add.sh
set -e
git clone --depth 1 https://github.com/skeeto/u-config.git
cd u-config
# NOTE TO DISTRIBUTION PACKAGE MAINTAINERS (u-config's own README,
# "Build"): invoke the compiler directly on the appropriate main_*.c,
# not the Makefile (development/testing only, its own top comment says
# so directly). PKG_CONFIG_PREFIX (its own default is a hardcoded
# "/usr") set to $MP_PREFIX instead, so the compiled-in default search
# path (<prefix>/lib/pkgconfig, <prefix>/share/pkgconfig) is correct
# for wherever this actually installs, a sysroot build included.
cc $CFLAGS $LDFLAGS -DPKG_CONFIG_PREFIX="\"$MP_PREFIX\"" -o pkg-config main_posix.c
mkdir -p $MP_PREFIX/bin $MP_PREFIX/share/man/man1
install -m755 pkg-config $MP_PREFIX/bin/pkg-config
install -m644 u-config.1 $MP_PREFIX/share/man/man1/pkg-config.1