#!/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