diff options
author | ahze <ahze@FreeBSD.org> | 2004-12-15 17:04:36 +0800 |
---|---|---|
committer | ahze <ahze@FreeBSD.org> | 2004-12-15 17:04:36 +0800 |
commit | f2e18228fa97ca8947060795ce6dfdee6e980cba (patch) | |
tree | fb2079039ba222c972bce4faa324e0db4160df6e /math | |
parent | 1f0e4544635245fa6b4452c6374b35dbef70dfe3 (diff) | |
download | freebsd-ports-graphics-f2e18228fa97ca8947060795ce6dfdee6e980cba.tar.gz freebsd-ports-graphics-f2e18228fa97ca8947060795ce6dfdee6e980cba.tar.zst freebsd-ports-graphics-f2e18228fa97ca8947060795ce6dfdee6e980cba.zip |
- Remove i386 Restriction of 3dnow/sse since amd64 has sse and 3dnow
- Remove WITH_SSE Option and auto-detect it under WITH_OPTIMIZED_CFLAGS
- Move auto-detect of 3dnow under WITH_OPTIMIZED_CFLAGS
Diffstat (limited to 'math')
-rw-r--r-- | math/fftw3/Makefile | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/math/fftw3/Makefile b/math/fftw3/Makefile index dd7b2510c05..8b9167ff378 100644 --- a/math/fftw3/Makefile +++ b/math/fftw3/Makefile @@ -43,37 +43,33 @@ INSTALL_TARGET= install-pkgconfigDATA install-libLTLIBRARIES install-exec .endif OPTIONS= OPTIMIZED_CFLAGS "Enable optimized CFLAGS" off \ - SMP_THREADS "Enable FFTW SMP threads library" off \ - SSE "Enable SSE optimized routines" off + SMP_THREADS "Enable FFTW SMP threads library" off .include <bsd.port.pre.mk> .if defined(WITH_OPTIMIZED_CFLAGS) CONFIGURE_ENV+= CFLAGS="${CFLAGS:N-O:N-O*} -O2 -ffast-math -fomit-frame-pointer" -.endif - -.if ${ARCH}=="i386" -.if ${MACHINE_CPU:M3dnow} -CONFIGURE_ARGS+=--enable-k7 -CONFIGURE_ENV+= CFLAGS="${CFLAGS:N-O:N-O*} -O3 -fomit-frame-pointer -fno-schedule-insns \ - -malign-double -fstrict-aliasing -mpreferred-stack-boundary=4 \ - -ffast-math" -.endif - -.if defined(WITH_SSE) +.if ${FFTW3_FLAVOR}=="default" && ${MACHINE_CPU:Msse} +# !!Detect SSE and not SSE2!! +CONFIGURE_ARGS+=--enable-sse2 .if ${OSVERSION} < 500000 USE_GCC= 3.4 .endif -.if ${FFTW3_FLAVOR}=="default" -CONFIGURE_ARGS+=--enable-sse2 .else -.if ${FFTW3_FLAVOR}=="float" +.if ${FFTW3_FLAVOR}=="float" && ${MACHINE_CPU:Msse} CONFIGURE_ARGS+=--enable-sse +.if ${OSVERSION} < 500000 +USE_GCC= 3.4 +.endif .endif .endif -CONFIGURE_ENV+= CFLAGS="${CFLAGS:N-O:N-O*} -O2" +.if ${MACHINE_CPU:M3dnow} +CONFIGURE_ARGS+=--enable-k7 +CONFIGURE_ENV+= CFLAGS="${CFLAGS:N-O:N-O*} -O3 -fomit-frame-pointer -fno-schedule-insns \ + -malign-double -fstrict-aliasing -mpreferred-stack-boundary=4 \ + -ffast-math" .endif -.endif #end i386 only options +.endif # end WITH_OPTIMIZED_CFLAGS .if defined(WITH_SMP_THREADS) CONFIGURE_ARGS+=--enable-threads |