1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 23:52:33 +00:00
nixpkgs/pkgs/development/libraries/SDL/setup-hook.sh
Jan Tojnar 44083d9999
SDL: fix setup hook
SDL_LIB_PATH needs to contain -L
2019-11-20 03:44:14 +01:00

11 lines
260 B
Bash

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