]>
git.zerfleddert.de Git - micropolis/blob - src/sim/sdl_helper
3 SDLINCLUDE
="`pkg-config --cflags sdl 2>/dev/null`"
4 SDLLIBS
="`pkg-config --libs sdl 2>/dev/null`"
8 if echo '#include <SDL_mixer.h>'|
(cpp
${SDLINCLUDE}) >/dev
/null
2>&1; then
11 for flag
in ${SDLINCLUDE}; do
12 if echo "${flag}" |
grep '^-I' >/dev
/null
2>&1; then
13 sdlpath
="$(echo "${flag}"| sed -e 's/^-I//')"
14 if [ -f "${sdlpath}/SDL_mixer.h" ]; then
22 if [ "${found}" = "1" ]; then
23 SDLINCLUDE
="${SDLINCLUDE} -DWITH_SDL_MIXER"
24 SDLLIBS
="${SDLLIBS} -lSDL_mixer"
28 for sdlpath
in /usr
/usr
/local /opt
/local /opt
/csw
/sw
; do
29 if [ -f "${sdlpath}/include/SDL/SDL_mixer.h" ]; then
30 SDLINCLUDE
="${SDLINCLUDE} -I${sdlpath}/include/SDL -DWITH_SDL_MIXER"
31 SDLLIBS
="${SDLLIBS} -L${sdlpath}/lib -lSDL -lSDL_mixer"
38 if [ "${found}" = "0" ]; then
44 if [ "${1}" = "cflags" ]; then
46 elif [ "${1}" = "libs" ]; then