aboutsummaryrefslogtreecommitdiff
path: root/bin/fake-pkg-config
blob: 69e30d1cedb4c7b58900a9c6268e151e274565c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

exists () {
  test -d "${OUTPUT}/build-build/opt/ncurses/include/$1"
}

cflags () {
  echo "-I${OUTPUT}/build-build/opt/ncurses/include/${1} -DKBUILD_NO_NLS"
}

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