summary refs log tree commit diff
path: root/pkgs/development/libraries/SDL/setup-hook.sh
blob: 553e8553a77f427632232203fa2e54345c5bafff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
addSDLPath () {
  if [ -e "$1/include/SDL" ]; then
    export SDL_PATH="${SDL_PATH-}${SDL_PATH:+ }$1/include/SDL"
  fi
  if [ -e "$1/lib" ]; then
    export SDL_LIB_PATH="${SDL_LIB_PATH-}${SDL_LIB_PATH:+ }-L$1/lib"
  fi
}

addEnvHooks "$hostOffset" addSDLPath