Skip to content

Commit

Permalink
added static gfan
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Mar 20, 2024
1 parent 54224e6 commit d8a5494
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Formula/gfan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Gfan < Formula
url "https://users-math.au.dk/~jensen/software/gfan/gfan0.6.2.tar.gz"
sha256 "a674d5e5dc43634397de0d55dd5da3c32bd358d05f72b73a50e62c1a1686f10a"
license "GPL-2.0-or-later"
revision 10
revision 11

bottle do
root_url "https://github.com/Macaulay2/homebrew-tap/releases/download/gfan-0.6.2_10"
Expand Down Expand Up @@ -37,11 +37,15 @@ class Gfan < Formula
patch :DATA

def install
linker_args = "#{ENV.cxx} -L#{Formula["cddlib"].lib} "
linker_args << "-static-libgcc -static-libstdc++ "
linker_args << "-ld_classic" if OS.mac? && DevelopmentTools.clang_build_version >= 1500

system "make", "cddnoprefix=yes",
"GMP_LINKOPTIONS=-L#{Formula["gmp"].lib} -lgmp",
"GMP_INCLUDEOPTIONS=-I#{Formula["gmp"].include}",
"OPTFLAGS=-O2 -DGMPRATIONAL -DNDEBUG -I#{Formula["cddlib"].include}/cddlib",
"CCLINKER=#{ENV.cxx} -L#{Formula["cddlib"].lib}"
"CCLINKER=#{linker_args}"
system "make", "PREFIX=#{prefix}", "install"
end

Expand Down

0 comments on commit d8a5494

Please sign in to comment.