1 SDLINCLUDE="`pkg-config --cflags sdl 2>/dev/null`"
2 SDLLIBS="`pkg-config --libs-only-L sdl 2>/dev/null` `pkg-config --libs-only-l sdl 2>/dev/null`"
6 if echo '#include <SDL_mixer.h>'|(cpp ${SDLINCLUDE}) >/dev/null 2>&1; then
9 for flag in ${SDLINCLUDE}; do
10 if echo "${flag}" | grep '^-I' >/dev/null 2>&1; then
11 sdlpath="$(echo "${flag}"| sed -e 's/^-I//')"
12 if [ -f "${sdlpath}/SDL_mixer.h" ]; then
20 if [ "${found}" = "1" ]; then
21 SDLINCLUDE="${SDLINCLUDE} -DWITH_SDL_MIXER"
22 SDLLIBS="${SDLLIBS} -lSDL_mixer"
26 for sdlpath in /usr /usr/local /opt/local /opt/csw /sw; do
27 if [ -f "${sdlpath}/include/SDL/SDL_mixer.h" ]; then
28 SDLINCLUDE="${SDLINCLUDE} -I${sdlpath}/include/SDL -DWITH_SDL_MIXER"
29 SDLLIBS="${SDLLIBS} -L${sdlpath}/lib -lSDL -lSDL_mixer"
36 if [ "${found}" = "0" ]; then
42 if [ "${1}" = "cflags" ]; then
44 elif [ "${1}" = "libs" ]; then