1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- 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
This commit is contained in:
Michael Johnson 2004-12-15 09:04:36 +00:00
parent 5cb98ebea0
commit 42e50f4530
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=124086

View File

@ -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"
.if ${FFTW3_FLAVOR}=="default" && ${MACHINE_CPU:Msse}
# !!Detect SSE and not SSE2!!
CONFIGURE_ARGS+=--enable-sse2
.if ${OSVERSION} < 500000
USE_GCC= 3.4
.endif
.else
.if ${FFTW3_FLAVOR}=="float" && ${MACHINE_CPU:Msse}
CONFIGURE_ARGS+=--enable-sse
.if ${OSVERSION} < 500000
USE_GCC= 3.4
.endif
.endif
.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 ${OSVERSION} < 500000
USE_GCC= 3.4
.endif
.if ${FFTW3_FLAVOR}=="default"
CONFIGURE_ARGS+=--enable-sse2
.else
.if ${FFTW3_FLAVOR}=="float"
CONFIGURE_ARGS+=--enable-sse
.endif
.endif
CONFIGURE_ENV+= CFLAGS="${CFLAGS:N-O:N-O*} -O2"
.endif
.endif #end i386 only options
.endif # end WITH_OPTIMIZED_CFLAGS
.if defined(WITH_SMP_THREADS)
CONFIGURE_ARGS+=--enable-threads