From a47a9bf5c36742a6948adb489eb4b437c2baa414 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Sat, 3 Sep 2016 23:30:32 +0100 Subject: BUILD: Fix creation of MacOS X application bundle when using SDL_net and curl --- ports.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ports.mk') diff --git a/ports.mk b/ports.mk index 286c48837e..4b5fa6bca0 100644 --- a/ports.mk +++ b/ports.mk @@ -273,11 +273,22 @@ ifneq ($(BACKEND), iphone) ifneq ($(BACKEND), ios7) # Static libaries, used for the scummvm-static and iphone targets OSX_STATIC_LIBS := `$(SDLCONFIG) --static-libs` +ifdef USE_SDL_NET +ifdef USE_SDL2 +OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libSDL2_net.a +else +OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libSDL_net.a +endif +endif # With sdl2-config we don't always get the OpenGL framework OSX_STATIC_LIBS += -framework OpenGL endif endif +ifdef USE_LIBCURL +OSX_STATIC_LIBS += -lcurl +endif + ifdef USE_FREETYPE2 OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libfreetype.a $(STATICLIBPATH)/lib/libbz2.a endif -- cgit v1.2.3