ports/133175: [patch] x11/pixman: enable SSE2 support
autodetection
Anonymous
swell.k at gmail.com
Sun Mar 29 02:30:04 PDT 2009
The following reply was made to PR ports/133175; it has been noted by GNATS.
From: Anonymous <swell.k at gmail.com>
To: bf <bf2006a at yahoo.com>
Cc: bug-followup at FreeBSD.org
Subject: Re: ports/133175: [patch] x11/pixman: enable SSE2 support autodetection
Date: Sun, 29 Mar 2009 13:28:50 +0400
bf <bf2006a at yahoo.com> writes:
> Changes of this kind could break binary packages built,
> for example, by the FreeBSD package-building cluster, when used
> on older machines.
Oops, forgot about packages. How about this patch
--- pixman-add-simd-option.diff begins here ---
Index: x11/pixman/Makefile
===================================================================
RCS file: /home/csup/ports/x11/pixman/Makefile,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile
--- x11/pixman/Makefile 13 Feb 2009 06:39:40 -0000 1.9
+++ x11/pixman/Makefile 29 Mar 2009 09:08:38 -0000
@@ -17,8 +17,21 @@ USE_AUTOTOOLS= libtool:15
USE_PERL5_BUILD=yes
USE_GNOME= ltverhack:9
+OPTIONS= SIMD "Enable autodection of SIMD features (MMX, SSE2, VMX)" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITHOUT_SIMD)
+CONFIGURE_ARGS= --disable-vmx --disable-arm-simd
+
+.if ${ARCH:Namd64}
+CONFIGURE_ARGS+= --disable-mmx --disable-sse2
+.endif
+
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|gtk+-2\.0|disable-gtk|g' \
- -e 's|-msse||' ${WRKSRC}/configure
+ ${WRKSRC}/configure
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- pixman-add-simd-option.diff ends here ---
More information about the freebsd-x11
mailing list