aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Janssen2010-04-11 16:08:07 +0200
committerAdam Vandenberg2010-04-14 09:17:08 -0700
commit111a4e18e77af32c6854dfdbddfa84091012bf64 (patch)
tree081aef1812795a63aa5b3e87a6304a83eb5ec307
parenta768dc30ce5002e98a6b117f0997ae489b5a9f04 (diff)
downloadhomebrew-111a4e18e77af32c6854dfdbddfa84091012bf64.tar.bz2
Update fftw
* add double precision library * add long-double precision The fftw formula now installs single, double and long-double precision libraries with SIMD optimization enabled for single and double precision. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/fftw.rb34
1 files changed, 33 insertions, 1 deletions
diff --git a/Library/Formula/fftw.rb b/Library/Formula/fftw.rb
index 9eba58686..ce9df6bed 100644
--- a/Library/Formula/fftw.rb
+++ b/Library/Formula/fftw.rb
@@ -6,6 +6,8 @@ class Fftw <Formula
@md5='b616e5c91218cc778b5aa735fefb61ae'
def install
+ # single precision
+ # enable-sse only works with single
system "./configure", "--enable-shared",
"--disable-debug",
"--prefix=#{prefix}",
@@ -16,7 +18,37 @@ class Fftw <Formula
"--disable-fortran"
system "make install"
+ # clean up so we can compile the double precision variant
+ system "make clean"
+
+ # double precision
+ # enable-sse2 only works with double precision (default)
+ system "./configure", "--enable-shared",
+ "--disable-debug",
+ "--prefix=#{prefix}",
+ "--enable-threads",
+ "--enable-sse2",
+ "--disable-dependency-tracking",
+ "--disable-fortran"
+
+ system "make install"
+
+ # clean up so we can compile the long-double precision variant
+ system "make clean"
+
+ # long-double precision
+ # no SIMD optimization available
+ system "./configure", "--enable-shared",
+ "--disable-debug",
+ "--prefix=#{prefix}",
+ "--enable-threads",
+ "--enable-long-double",
+ "--disable-dependency-tracking",
+ "--disable-fortran"
+
+ system "make install"
+
#wtf file?
(prefix+'share'+'info'+'dir').unlink
end
-end \ No newline at end of file
+end