aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authordaichi <daichi@FreeBSD.org>2003-08-19 13:55:07 +0800
committerdaichi <daichi@FreeBSD.org>2003-08-19 13:55:07 +0800
commitcead8d224ae6f91385fbd1fd5d54169fb9368e51 (patch)
treed1d8bf46c6134da2eebdb052914abb24206d0dd7 /graphics
parent81ec59a28424fcc31f5f15cfba1ac0224b1a23f6 (diff)
downloadfreebsd-ports-gnome-cead8d224ae6f91385fbd1fd5d54169fb9368e51.tar.gz
freebsd-ports-gnome-cead8d224ae6f91385fbd1fd5d54169fb9368e51.tar.zst
freebsd-ports-gnome-cead8d224ae6f91385fbd1fd5d54169fb9368e51.zip
update graphics/sdl_gfx: add WITH_MMX knob
PR: 55687 Submitted by: KATO Tsuguru <tkato@prontomail.com>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/sdl_gfx/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/graphics/sdl_gfx/Makefile b/graphics/sdl_gfx/Makefile
index b65bd9999897..3648a748c014 100644
--- a/graphics/sdl_gfx/Makefile
+++ b/graphics/sdl_gfx/Makefile
@@ -20,10 +20,17 @@ USE_SDL= yes
USE_REINPLACE= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
+CONFIGURE_ARGS= --disable-mmx
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
AUTOHEADER="${TRUE}"
INSTALLS_SHLIB= yes
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_MMX) && (${ARCH} == "i386")
+CFLAGS+= -DUSE_MMX
+.endif
+
post-patch:
@${REINPLACE_CMD} 's|^libSDL_gfxincludedir.*|&/SDL11|' \
${WRKSRC}/Makefile.in
@@ -31,4 +38,4 @@ post-patch:
@${REINPLACE_CMD} 's|<SDL/SDL|<SDL|g' ${WRKSRC}/${file}
.endfor
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>