diff options
Diffstat (limited to 'config/pkg.sh')
-rwxr-xr-x | config/pkg.sh | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/config/pkg.sh b/config/pkg.sh deleted file mode 100755 index 2ca533e..0000000 --- a/config/pkg.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# Copyright © Tavian Barnes <tavianator@tavianator.com> -# SPDX-License-Identifier: 0BSD - -# pkg-config wrapper that outputs a makefile fragment - -set -eu - -NAME="${1^^}" -declare -n XUSE="USE_$NAME" - -if [ "${XUSE:-}" ]; then - USE="$XUSE" -elif config/pkgconf.sh "$1"; then - USE=y -else - USE=n -fi - -if [ "$USE" = y ]; then - printf 'PKGS += %s\n' "$1" - printf 'CPPFLAGS += -DBFS_USE_%s=1\n' "$NAME" -else - printf 'CPPFLAGS += -DBFS_USE_%s=0\n' "$NAME" -fi |