aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorCamillo Lugaresi2011-02-18 03:03:37 +0100
committerAdam Vandenberg2011-03-12 13:30:22 -0800
commit3b347f26e7bc63689ca196c88538be1723d8f8b0 (patch)
tree81edab87cd8061566a9c5efa276a25f9fa881c51 /Library/Formula
parent36737a5f684e34b37be64483678124610782485f (diff)
downloadhomebrew-3b347f26e7bc63689ca196c88538be1723d8f8b0.tar.bz2
new formula: dotwrp
This library resolves an incompatibility between gfortran and Accelerate.framework by providing gfortran-compatible entry points for a few BLAS functions that still use the f77 calling conventions. When using this library, make sure the linker sees it before Accelerate.framework, eg by using "-ldotwrp -framework Accelerate". Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/dotwrp.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/dotwrp.rb b/Library/Formula/dotwrp.rb
new file mode 100644
index 000000000..845985b3c
--- /dev/null
+++ b/Library/Formula/dotwrp.rb
@@ -0,0 +1,18 @@
+require 'formula'
+
+class Dotwrp <Formula
+ url 'https://github.com/tenomoto/dotwrp.git', :using => :git
+ homepage 'https://github.com/tenomoto/dotwrp'
+ version '1.0'
+
+ def install
+ ENV.fortran
+
+ # note: fno-underscoring is vital to override the symbols in Accelerate
+ system "#{ENV["FC"]} #{ENV["FFLAGS"]} -fno-underscoring -c dotwrp.f90"
+ system "/usr/bin/ar -cru libdotwrp.a dotwrp.o"
+ system "/usr/bin/ranlib libdotwrp.a"
+
+ lib.install 'libdotwrp.a'
+ end
+end