Logo
Explore Help
Sign In
public/nixpkgs
1
0
Fork 0
You've already forked nixpkgs
Code Issues Pull Requests Packages Projects Releases Wiki Activity
nixpkgs/pkgs/development/libraries/SDL/setup-hook.sh

9 lines
192 B
Bash
Raw Normal View History

SDL: cleanup and add patch to discover extensions
2016-08-22 06:24:00 +03:00
addSDLPath () {
if [ -e "$1/include/SDL" ]; then
export SDL_PATH="$SDL_PATH $1/include/SDL"
SDL: Add library paths of all SDL sub-packages to sdl-config Because of how nixpkgs works, all the SDL-umbrella libraries are in different folders. On a usual system, when using `sdl-config --libs`, this means that SDL_gfx would also be on the linker path. Some packages seem to depend on this being the case.
2019-10-23 11:46:47 +00:00
export SDL_LIB_PATH="$SDL_LIB_PATH -L$1/lib"
SDL: cleanup and add patch to discover extensions
2016-08-22 06:24:00 +03:00
fi
}
treewide: Don't use envHook anymore This commits needs a MAJOR audit as I oftentimes just guessed which of `$hostOffset`, `$targetOffset`, or a fixed offset should be used.
2017-08-10 18:22:07 -04:00
addEnvHooks "$hostOffset" addSDLPath
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 3795ms Template: 13ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API