aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2005-10-01 07:22:01 +0800
committerahze <ahze@FreeBSD.org>2005-10-01 07:22:01 +0800
commit56dfa6fe90e5f875109ee85020432f9e8cf97fba (patch)
tree1b176e58e3a49c439433a842ba39b4bb86fe78fb /math
parente8b7710386e7c57ad7db6404efd681aeb02c5731 (diff)
downloadfreebsd-ports-gnome-56dfa6fe90e5f875109ee85020432f9e8cf97fba.tar.gz
freebsd-ports-gnome-56dfa6fe90e5f875109ee85020432f9e8cf97fba.tar.zst
freebsd-ports-gnome-56dfa6fe90e5f875109ee85020432f9e8cf97fba.zip
- Fix build of fftw3-long on 5.x, 6.x, 7.x when CPUTYPE is not defined
by using math/ldouble. Also, CPUTYPE=[i386|i486|i586|i686] and proabably some others won't work. Reported by: PointyHat
Diffstat (limited to 'math')
-rw-r--r--math/fftw3/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/math/fftw3/Makefile b/math/fftw3/Makefile
index 2b70bea455d5..56b92d29f47d 100644
--- a/math/fftw3/Makefile
+++ b/math/fftw3/Makefile
@@ -61,6 +61,9 @@ USE_GCC= 3.4
.endif
.endif
.endif
+.if ${FFTW3_FLAVOR}=="long" && !defined(CPUTYPE)
+USE_LDOUBLE= yes
+.endif
.if ${MACHINE_CPU:M3dnow}
CONFIGURE_ARGS+=--enable-k7
CFLAGS_3DNOW= ${CFLAGS:N-O:N-O*} -O3 -fomit-frame-pointer -fno-schedule-insns \
@@ -86,7 +89,7 @@ FFTW3_PKGNAMESUFFIX= -float
CONFIGURE_ARGS+=--enable-float
.else
.if ${FFTW3_FLAVOR}=="long"
-.if ${OSVERSION} < 504000
+.if ${OSVERSION} < 504000 || defined(USE_LDOUBLE)
LIB_DEPENDS+= ml.0:${PORTSDIR}/math/ldouble
.endif
FFTW3_SUFX= l
@@ -121,7 +124,7 @@ post-patch:
${WRKSRC}/tools/Makefile.in
.if ${FFTW3_FLAVOR}=="long"
@${REINPLACE_CMD} -e 's|cosl sinl tanl||' ${WRKSRC}/configure
-.if ${OSVERSION} < 504000
+.if ${OSVERSION} < 504000 || defined(USE_LDOUBLE)
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -E -e \
's|@LIBS@|-lml @LIBS@|'
.endif