summaryrefslogtreecommitdiff
path: root/bin/fake-pkg-config
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-01-29 13:35:59 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-01-29 13:35:59 +0000
commitc028a4bdc353dfa6700524e8d161e3a334369af1 (patch)
tree665d0bb8c4b60c2cc654aa716d5634357b78bf1d /bin/fake-pkg-config
parentf0fef89ba83ee80a2ec34132985de3a0d16ae2f8 (diff)
downloadlh-bootstrap-c028a4bdc353dfa6700524e8d161e3a334369af1.tar.xz
Add fake-pkg-config, because !@#$%^ kernel hardcoding
Diffstat (limited to 'bin/fake-pkg-config')
-rwxr-xr-xbin/fake-pkg-config19
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/fake-pkg-config b/bin/fake-pkg-config
new file mode 100755
index 0000000..780407b
--- /dev/null
+++ b/bin/fake-pkg-config
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+exists () {
+ test -d "${OUTPUT}/build-build/opt/ncurses/include/$1"
+}
+
+cflags () {
+ echo "-I${OUTPUT}/build-build/opt/ncurses/include -DKBUILD_NO_NLS -DCURSES_LOC=\"<${1}/ncurses.h>\""
+}
+
+libs () {
+ echo "-static -L${OUTPUT}/build-build/opt/ncurses/lib -l$1"
+}
+
+case "$1" in
+ --exists) exists "$2" ;;
+ --cflags) cflags "$2" ;;
+ --libs) libs "$2" ;;
+esac