summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Martin <s.martin49@gmail.com>2012-07-16 21:37:28 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-07-17 07:54:57 (GMT)
commit4c044a2d3830d20d26efcd53407a76a050a04d93 (patch)
tree627db13599df60eb4de5dd917f5bdaf1a75a2cc6
parent8d74cc7b88761bbfdfe88becebc27be95bde41a2 (diff)
downloadbuildroot-4c044a2d3830d20d26efcd53407a76a050a04d93.tar.gz
buildroot-4c044a2d3830d20d26efcd53407a76a050a04d93.tar.bz2
sdl_gfx: refactor *_CONF_OPT assignment with cpu-feature options
Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/sdl_gfx/sdl_gfx.mk10
1 files changed, 2 insertions, 8 deletions
diff --git a/package/sdl_gfx/sdl_gfx.mk b/package/sdl_gfx/sdl_gfx.mk
index 5503bbd..343c7a1 100644
--- a/package/sdl_gfx/sdl_gfx.mk
+++ b/package/sdl_gfx/sdl_gfx.mk
@@ -11,13 +11,7 @@ SDL_GFX_DEPENDENCIES = sdl
SDL_GFX_CONF_OPT = \
--with-sdl-prefix=$(STAGING_DIR)/usr \
--disable-sdltest \
- --enable-static
-
-# enable mmx for newer x86's
-ifeq ($(BR2_i386)$(BR2_x86_i386)$(BR2_x86_i486)$(BR2_x86_i586)$(BR2_x86_pentiumpro)$(BR2_x86_geode),y)
-SDL_GFX_CONF_OPT += --enable-mmx
-else
-SDL_GFX_CONF_OPT += --disable-mmx
-endif
+ --enable-static \
+ $(if $(BR2_X86_CPU_HAS_MMX),--enable-mmx,--disable-mmx)
$(eval $(call AUTOTARGETS))