diff options
author | Sergey Vinokurov <serg.foo@gmail.com> | 2023-11-22 21:43:21 +0000 |
---|---|---|
committer | Sergey Vinokurov <serg.foo@gmail.com> | 2024-03-14 23:24:23 +0000 |
commit | 8b2816a1b0110b6f7187a99ef961d7a97b110197 (patch) | |
tree | 649cbaf042cf43475b155a5ef9a09bb6c1b84f92 /pkgs/development/libraries/SDL | |
parent | cff0adfc1b36fb099cb4ae1d382ece0f6b335e31 (diff) |
SDL: note that sdl hook won’t work with split dev packages
Diffstat (limited to 'pkgs/development/libraries/SDL')
-rw-r--r-- | pkgs/development/libraries/SDL/setup-hook.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/libraries/SDL/setup-hook.sh b/pkgs/development/libraries/SDL/setup-hook.sh index 095053a495285..df5ef1bc7e977 100644 --- a/pkgs/development/libraries/SDL/setup-hook.sh +++ b/pkgs/development/libraries/SDL/setup-hook.sh @@ -1,6 +1,12 @@ addSDLPath () { if [ -e "$1/include/SDL" ]; then export SDL_PATH="${SDL_PATH-}${SDL_PATH:+ }$1/include/SDL" + # NB this doesn’t work with split dev packages because different packages + # will contain "include/SDL/" and "lib/" directories. + # + # However the SDL_LIB_PATH is consumed by SDL itself and serves to locate + # libraries like SDL2_mixer, SDL2_image, etc which are not split-package + # so the check above will only trigger on them. if [ -e "$1/lib" ]; then export SDL_LIB_PATH="${SDL_LIB_PATH-}${SDL_LIB_PATH:+ }-L$1/lib" fi |