summaryrefslogtreecommitdiff
path: root/x11/pixman
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2012-01-20 16:32:06 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2012-01-20 16:32:06 +0000
commitf5aa5faf9446c99bcb652353bfcc74a3582a7dc2 (patch)
tree16ab2df1fa8528b700b24dabdb7754a50db87448 /x11/pixman
parent- Updated to 0.4.0 (diff)
- Check for supported CPU features per MACHINE_CPU variable; it is both more
clear, in line with what most other ports do, and more generic (no need to account for amd64 which always has MMX and SSE2) - Rephrase OPTION line a bit to fit in 80-char terminal while I am here Approved by: x11 (eadler)
Notes
Notes: svn path=/head/; revision=289532
Diffstat (limited to 'x11/pixman')
-rw-r--r--x11/pixman/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/x11/pixman/Makefile b/x11/pixman/Makefile
index 9cd6c9f82e8d..ea5530f224bf 100644
--- a/x11/pixman/Makefile
+++ b/x11/pixman/Makefile
@@ -17,17 +17,18 @@ USE_AUTOTOOLS= libtool
USE_PERL5_BUILD=yes
USE_GNOME= ltverhack:9
-OPTIONS= SIMD "Enable autodetection of SIMD features (MMX, SSE2, VMX)" off
+OPTIONS= SIMD "Enable SIMD features autodetection (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
-
+. if ! ${MACHINE_CPU:Mmmx}
+CONFIGURE_ARGS+= --disable-mmx
+. endif
+. if ! ${MACHINE_CPU:Msse2}
+CONFIGURE_ARGS+= --disable-sse2
+. endif
.endif
post-patch: