summaryrefslogtreecommitdiffstats
path: root/config/pkg.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-04-25 12:01:40 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-04-25 12:07:57 -0400
commit339c20aea74d5b4c6b8b178b478cc5530bc9af79 (patch)
treee0e856ca7dbf97ea1bfe95e0adc605acb5fc127c /config/pkg.sh
parent19189e3f6f18b13e4f9c947c99062e658e98827d (diff)
downloadbfs-339c20aea74d5b4c6b8b178b478cc5530bc9af79.tar.xz
config: Add BFS_USE_LIB* to config.h instead of CPPFLAGS
Diffstat (limited to 'config/pkg.sh')
-rwxr-xr-xconfig/pkg.sh26
1 files changed, 0 insertions, 26 deletions
diff --git a/config/pkg.sh b/config/pkg.sh
deleted file mode 100755
index 4ebea64..0000000
--- a/config/pkg.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-
-# Copyright © Tavian Barnes <tavianator@tavianator.com>
-# SPDX-License-Identifier: 0BSD
-
-# pkg-config wrapper that outputs a makefile fragment
-
-set -eu
-
-NAME=$(printf '%s' "$1" | tr 'a-z' 'A-Z')
-eval "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