xref: /OK3568_Linux_fs/buildroot/package/sdl2_ttf/sdl2_ttf.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# sdl2_ttf
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunSDL2_TTF_VERSION = 2.0.18
8*4882a593SmuzhiyunSDL2_TTF_SOURCE = SDL2_ttf-$(SDL2_TTF_VERSION).tar.gz
9*4882a593SmuzhiyunSDL2_TTF_SITE = http://www.libsdl.org/projects/SDL_ttf/release
10*4882a593SmuzhiyunSDL2_TTF_LICENSE = Zlib
11*4882a593SmuzhiyunSDL2_TTF_LICENSE_FILES = COPYING.txt
12*4882a593SmuzhiyunSDL2_TTF_INSTALL_STAGING = YES
13*4882a593SmuzhiyunSDL2_TTF_DEPENDENCIES = sdl2 freetype host-pkgconf
14*4882a593SmuzhiyunSDL2_TTF_CONF_OPTS = --disable-freetype-builtin --disable-harfbuzz-builtin
15*4882a593Smuzhiyun
16*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_HARFBUZZ),y)
17*4882a593SmuzhiyunSDL2_TTF_DEPENDENCIES += harfbuzz
18*4882a593SmuzhiyunSDL2_TTF_CONF_OPTS += --enable-harfbuzz
19*4882a593Smuzhiyunelse
20*4882a593SmuzhiyunSDL2_TTF_CONF_OPTS += --disable-harfbuzz
21*4882a593Smuzhiyunendif
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun# x-includes and x-libraries must be set for cross-compiling
24*4882a593Smuzhiyun# By default x_includes and x_libraries contains unsafe paths.
25*4882a593Smuzhiyun# (/usr/include and /usr/lib)
26*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_SDL2_X11),y)
27*4882a593SmuzhiyunSDL2_TTF_CONF_OPTS += \
28*4882a593Smuzhiyun	--with-x \
29*4882a593Smuzhiyun	--x-includes=$(STAGING_DIR)/usr/include \
30*4882a593Smuzhiyun	--x-libraries=$(STAGING_DIR)/usr/lib
31*4882a593Smuzhiyunelse
32*4882a593SmuzhiyunSDL2_TTF_CONF_OPTS += \
33*4882a593Smuzhiyun	--without-x
34*4882a593Smuzhiyunendif
35*4882a593Smuzhiyun
36*4882a593Smuzhiyun$(eval $(autotools-package))
37