svn commit: r368271 - head/graphics/sdl_gfx
Sean Bruno
sbruno at FreeBSD.org
Mon Sep 15 15:39:04 UTC 2014
Author: sbruno
Date: Mon Sep 15 15:39:03 2014
New Revision: 368271
URL: http://svnweb.freebsd.org/changeset/ports/368271
QAT: https://qat.redports.org/buildarchive/r368271/
Log:
Disable MMX instructions on non-x86 architectures and properly enable the
option on amd64 builds.
Yet another armv6 build fix.
Phabric: https://reviews.freebsd.org/D761
Submitted by: mva
Reviewed by: bdrewery (mentor)
Modified:
head/graphics/sdl_gfx/Makefile
Modified: head/graphics/sdl_gfx/Makefile
==============================================================================
--- head/graphics/sdl_gfx/Makefile Mon Sep 15 15:35:18 2014 (r368270)
+++ head/graphics/sdl_gfx/Makefile Mon Sep 15 15:39:03 2014 (r368271)
@@ -24,8 +24,17 @@ CONFIGURE_ARGS= --includedir=${PREFIX}/i
USE_LDCONFIG= yes
OPTIONS_DEFINE_i386= MMX
+OPTIONS_DEFINE_amd64= MMX
MMX_CONFIGURE_ENABLE= mmx
MMX_CFLAGS= -DUSE_MMX
+.include <bsd.port.options.mk>
+
+.if !${PORT_OPTIONS:MMMX}
+# Every platform not supporting the MMX knob must disable
+# MMX support explicitly
+CONFIGURE_ARGS+= --disable-mmx
+.endif
+
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list