xref: /OK3568_Linux_fs/buildroot/package/sdl2_gfx/sdl2_gfx.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# sdl2_gfx
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunSDL2_GFX_VERSION = 1.0.4
8*4882a593SmuzhiyunSDL2_GFX_SOURCE = SDL2_gfx-$(SDL2_GFX_VERSION).tar.gz
9*4882a593SmuzhiyunSDL2_GFX_SITE = http://www.ferzkopp.net/Software/SDL2_gfx
10*4882a593SmuzhiyunSDL2_GFX_LICENSE = Zlib
11*4882a593SmuzhiyunSDL2_GFX_LICENSE_FILES = COPYING SDL2_framerate.h
12*4882a593SmuzhiyunSDL2_GFX_INSTALL_STAGING = YES
13*4882a593SmuzhiyunSDL2_GFX_DEPENDENCIES = sdl2 host-pkgconf
14*4882a593SmuzhiyunSDL2_GFX_CONF_OPTS = --disable-sdltest
15*4882a593Smuzhiyun# configure/Makefile.in not up-to-date, causing aclocal to be used at
16*4882a593Smuzhiyun# build time if we don't autoreconf.
17*4882a593SmuzhiyunSDL2_GFX_AUTORECONF = YES
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun# Even though x86_64 processors support MMX, the MMX-specific assembly
20*4882a593Smuzhiyun# code in sdl2_gfx is IA32 specific, and does not build for x86_64.
21*4882a593Smuzhiyunifeq ($(BR2_i386)$(BR2_X86_CPU_HAS_MMX),yy)
22*4882a593SmuzhiyunSDL2_GFX_CONF_OPTS += --enable-mmx
23*4882a593Smuzhiyunelse
24*4882a593SmuzhiyunSDL2_GFX_CONF_OPTS += --disable-mmx
25*4882a593Smuzhiyunendif
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun$(eval $(autotools-package))
28