3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/SDL/setup-hook.sh

12 lines
201 B
Bash
Raw Normal View History

addSDLPath () {
if [ -e "$1/include/SDL" ]; then
export SDL_PATH="$SDL_PATH $1/include/SDL"
fi
}
if test -n "$crossConfig"; then
crossEnvHooks+=(addSDLPath)
else
envHooks+=(addSDLPath)
fi