mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-16 11:48:05 +00:00
SDL, SDL2: SDL{,2}_PATH may be undefined
This commit is contained in:
parent
beda0365a6
commit
12a85a7046
pkgs/development/libraries
@ -1,6 +1,6 @@
|
||||
addSDLPath () {
|
||||
if [ -e "$1/include/SDL" ]; then
|
||||
export SDL_PATH="$SDL_PATH $1/include/SDL"
|
||||
export SDL_PATH="${SDL_PATH-}${SDL_PATH:+ }$1/include/SDL"
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
addSDL2Path () {
|
||||
if [ -e "$1/include/SDL2" ]; then
|
||||
export SDL2_PATH="$SDL2_PATH $1/include/SDL2"
|
||||
export SDL2_PATH="${SDL2_PATH-}${SDL2_PATH:+ }$1/include/SDL2"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user