aboutsummaryrefslogtreecommitdiff
path: root/graphics/xzgv/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/xzgv/Makefile')
-rw-r--r--graphics/xzgv/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/graphics/xzgv/Makefile b/graphics/xzgv/Makefile
index c15796858f48..df8e571388b1 100644
--- a/graphics/xzgv/Makefile
+++ b/graphics/xzgv/Makefile
@@ -17,13 +17,20 @@ COMMENT= An image viewer with thumbnail-based file selector for X
USE_X_PREFIX= yes
USE_GNOME= imlib
+USE_REINPLACE= yes
USE_GMAKE= yes
MAN1= xzgv.1
post-patch:
- @${PERL} -pi -e 's|^CC|#CC|g ; \
+ @${REINPLACE_CMD} -e 's|^CC|#CC|g ; \
s|^CFLAGS|#CFLAGS|g ; \
s|^PREFIX|#PREFIX|g' ${WRKSRC}/config.mk
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_MMX) && (${ARCH} == "i386")
+CFLAGS+= -DINTERP_MMX
+.endif
+
+.include <bsd.port.post.mk>