-
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.
Closes #1. Signed-off-by: Dan Fortunato <[email protected]>
- Loading branch information
1 parent
c156e56
commit ea3a33d
Showing
1 changed file
with
27 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,27 @@ | ||
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" | ||
|
||
depends_on "gcc" | ||
|
||
def install | ||
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 |