blob: 032ac7ff3d22e2aca082adee77e669226b9049a7 (
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 -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
|