diff options
author | danfe <danfe@FreeBSD.org> | 2012-01-21 00:32:06 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2012-01-21 00:32:06 +0800 |
commit | 680e9490a2fbea098bfbe0ed0bbc08f3fe74f79c (patch) | |
tree | 0024336616c891f414e2af30f3db05d9cabae863 /x11/pixman | |
parent | ddde779e2bad475f64a505a4365ac5d376ca5ba5 (diff) | |
download | freebsd-ports-gnome-680e9490a2fbea098bfbe0ed0bbc08f3fe74f79c.tar.gz freebsd-ports-gnome-680e9490a2fbea098bfbe0ed0bbc08f3fe74f79c.tar.zst freebsd-ports-gnome-680e9490a2fbea098bfbe0ed0bbc08f3fe74f79c.zip |
- 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)
Diffstat (limited to 'x11/pixman')
-rw-r--r-- | x11/pixman/Makefile | 13 |
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: |