xref: /OK3568_Linux_fs/buildroot/package/sdl_gfx/sdl_gfx.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# sdl_gfx
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunSDL_GFX_VERSION_MAJOR = 2.0
8*4882a593SmuzhiyunSDL_GFX_VERSION = $(SDL_GFX_VERSION_MAJOR).23
9*4882a593SmuzhiyunSDL_GFX_SOURCE = SDL_gfx-$(SDL_GFX_VERSION).tar.gz
10*4882a593SmuzhiyunSDL_GFX_SITE = http://www.ferzkopp.net/Software/SDL_gfx-$(SDL_GFX_VERSION_MAJOR)
11*4882a593SmuzhiyunSDL_GFX_LICENSE = Zlib
12*4882a593SmuzhiyunSDL_GFX_LICENSE_FILES = COPYING LICENSE
13*4882a593SmuzhiyunSDL_GFX_INSTALL_STAGING = YES
14*4882a593SmuzhiyunSDL_GFX_DEPENDENCIES = sdl
15*4882a593SmuzhiyunSDL_GFX_CONF_OPTS = \
16*4882a593Smuzhiyun	--with-sdl-prefix=$(STAGING_DIR)/usr \
17*4882a593Smuzhiyun	--disable-sdltest \
18*4882a593Smuzhiyun	--enable-static
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun# Even though x86_64 processors support MMX, the MMX-specific assembly
21*4882a593Smuzhiyun# code in sdl_gfx is IA32 specific, and does not build for x86_64.
22*4882a593Smuzhiyunifeq ($(BR2_i386)$(BR2_X86_CPU_HAS_MMX),yy)
23*4882a593SmuzhiyunSDL_GFX_CONF_OPTS += --enable-mmx
24*4882a593Smuzhiyunelse
25*4882a593SmuzhiyunSDL_GFX_CONF_OPTS += --disable-mmx
26*4882a593Smuzhiyunendif
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun$(eval $(autotools-package))
29