1 ifeq ($(TARGET
),ANDROID
)
2 # Android must use OpenGL
4 # UNIX/Linux defaults to OpenGL, but can use SDL_gfx instead
5 else ifeq ($(HAVE_WIN32
),y
)
6 # Windows defaults to GDI
9 # everything else defaults to SDL
13 ifeq ($(ENABLE_SDL
),y
)
29 $(eval
$(call pkg-config-library
,SDL
,$(SDL_PKG
)))
31 SDL_CPPFLAGS
+= -DENABLE_SDL
33 ifeq ($(TARGET_IS_DARWIN
),y
)
34 # the pkg-config file on MacPorts is broken, we must convert all -l
35 # flags to link static libraries instead
36 SDL_LDADD
:= $(patsubst -l
%,/opt
/local
/lib
/lib
%.a
,$(filter -l
%,$(SDL_LDLIBS
)))
37 SDL_LDLIBS
:= $(filter-out -l
% -R
% -L
%,$(SDL_LDLIBS
))
39 SDL_LDADD
+= /opt
/local
/lib
/libbz2.a
/opt
/local
/lib
/libz.a
40 SDL_LDADD
+= /opt
/local
/lib
/libfreetype.a
41 SDL_LDADD
+= /opt
/local
/lib
/libxcb.a
/opt
/local
/lib
/libXau.a
/opt
/local
/lib
/libXdmcp.a