summary refs log tree commit diff
path: root/pkgs/development/libraries/SDL/setup-hook.sh
blob: 3696e743a07a104c33222fffc851ded761ffacef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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