From f5aa5faf9446c99bcb652353bfcc74a3582a7dc2 Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Fri, 20 Jan 2012 16:32:06 +0000 Subject: - 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) --- x11/pixman/Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'x11') 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 .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: -- cgit v1.2.3