-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba0b37e
commit a247426
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
class Fmm3d < Formula | ||
desc "Fast multipole methods in three dimensions" | ||
homepage "https://fmm3d.readthedocs.io" | ||
url "https://github.com/flatironinstitute/FMM3D/archive/refs/tags/v1.0.2.tar.gz" | ||
sha256 "e29a1ebe485d2431d4e330334b2853bc91b957afde6e24c2991099b28bd2b97c" | ||
license "Apache-2.0" | ||
head "https://github.com/flatironinstitute/FMM3D.git", branch: "master" | ||
|
||
depends_on "gcc" | ||
|
||
def install | ||
Check failure on line 11 in Formula/fmm3d.rb
|
||
ln_s "make.inc.macosx.gnu", "make.inc" if OS.mac? | ||
|
||
# Don't use -march=native when building a bottle | ||
inreplace "makefile", "-march=native", "-march=#{Hardware.oldest_cpu}" if build.bottle? | ||
|
||
# Build libraries | ||
system "make", "lib" | ||
|
||
# Install libraries | ||
lib.install "lib/libfmm3d.so" | ||
lib.install "lib-static/libfmm3d.a" | ||
end | ||
|
||
test do | ||
system "true" | ||
end | ||
end |