Enable libSDL2-ttf with Mac OS X again.
Tested with Mac OS X 10.9.5
This commit is contained in:
parent
4dfd12c346
commit
8a3e5da6a1
@ -198,6 +198,8 @@ ifeq ($(API),sdl2)
|
||||
SDLCOPT = $(shell sdl2-config --cflags)
|
||||
SDLLOPT = $(shell sdl2-config --libs) $(shell pkg-config --libs SDL2_image)
|
||||
SDLLOPT += -Wl,-framework,Cocoa
|
||||
#TTFCOPT = $(shell pkg-config --cflags SDL2_ttf)
|
||||
TTFLOPT = $(shell pkg-config --libs SDL2_ttf)
|
||||
endif
|
||||
|
||||
# these are for use with macports
|
||||
@ -224,6 +226,7 @@ ifdef MACOSX_LION
|
||||
LOPT = $(SDLLOPT) $(LUALOPT) -framework libpng14 -lz
|
||||
else
|
||||
LOPT = $(SDLLOPT) $(LUALOPT)
|
||||
LOPT += $(TTFLOPT)
|
||||
LIBPNGCONFIG := $(shell libpng-config)
|
||||
ifneq ($(LIBPNGCONFIG), )
|
||||
COPT += $(shell libpng-config --cflags)
|
||||
@ -246,7 +249,7 @@ ifeq ($(API),sdl)
|
||||
endif
|
||||
FCLOPT =
|
||||
MACAPPEXE = Grafx2.app/Contents/MacOS/Grafx2
|
||||
NOTTF = 1
|
||||
#NOTTF = 1
|
||||
else
|
||||
ifeq ($(PLATFORM),AROS) # 3
|
||||
#AROS specific
|
||||
|
||||
@ -32,11 +32,7 @@
|
||||
|
||||
// TrueType
|
||||
#ifndef NOTTF
|
||||
#if defined(__macosx__)
|
||||
#include <SDL_ttf/SDL_ttf.h>
|
||||
#else
|
||||
#include <SDL_ttf.h>
|
||||
#endif
|
||||
#include <SDL_ttf.h>
|
||||
|
||||
#if defined(__CAANOO__) || defined(__WIZ__) || defined(__GP2X__)
|
||||
// No fontconfig
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user