diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/fake-pkg-config | 19 |
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 |