aboutsummaryrefslogtreecommitdiff
path: root/ports.mk
diff options
context:
space:
mode:
authorThierry Crozat2016-09-03 23:30:32 +0100
committerThierry Crozat2016-09-03 23:31:42 +0100
commita47a9bf5c36742a6948adb489eb4b437c2baa414 (patch)
treedc4b49cdf59be1102b9df495a65abc2cad880dee /ports.mk
parent972e7d65f4cebb07e1724b96543f6b0d25f78360 (diff)
downloadscummvm-rg350-a47a9bf5c36742a6948adb489eb4b437c2baa414.tar.gz
scummvm-rg350-a47a9bf5c36742a6948adb489eb4b437c2baa414.tar.bz2
scummvm-rg350-a47a9bf5c36742a6948adb489eb4b437c2baa414.zip
BUILD: Fix creation of MacOS X application bundle when using SDL_net and curl
Diffstat (limited to 'ports.mk')
-rw-r--r--ports.mk11
1 files changed, 11 insertions, 0 deletions
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