Skip to content

Commit

Permalink
fflas-ffpack 2.4.3 (new formula)
Browse files Browse the repository at this point in the history
Closes #8.

Signed-off-by: Mahrud Sayrafi <3147718+mahrud@users.noreply.github.com>
  • Loading branch information
mahrud committed Jan 5, 2021
1 parent 233cb9c commit e996104
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions Formula/fflas-ffpack.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
class FflasFfpack < Formula
desc "Finite Field Linear Algebra Routines"
homepage "https://linbox-team.github.io/fflas-ffpack/"
url "https://github.com/Macaulay2/fflas-ffpack.git", using: :git, branch: "master"
version "2.4.3"
license "LGPL-2.1-or-later"

head do
url "https://github.com/linbox-team/fflas-ffpack.git", using: :git
end

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build

depends_on "givaro"
depends_on "gmp"
depends_on "libomp" if OS.mac?
depends_on "openblas" unless OS.mac?

def install
cblas_libs = OS.mac? ? "-framework Accelerate" : "-lopenblas"
system "./autogen.sh",
"--enable-openmp",
"--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"LIBS=#{cblas_libs}",
"CBLAS_LIBS=#{cblas_libs}"
system "make", "install"
end

test do
system "true"
end
end

0 comments on commit e996104

Please sign in to comment.