homebrew-core/Formula/partio.rb

44 lines
1.7 KiB
Ruby

class Partio < Formula
desc "Particle library for 3D graphics"
homepage "https://github.com/wdas/partio"
url "https://github.com/wdas/partio/archive/v1.14.6.tar.gz"
sha256 "53a5754d6b2fc3e184953d985c233118ef0ab87169f34e3aec4a7e6d20cd9bd4"
license "BSD-3-Clause"
bottle do
sha256 cellar: :any_skip_relocation, arm64_monterey: "3ec005cfbaab7733356f7cc6f6682ee9f1cfb44b03a242e6a63c0678c7498345"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "b5c63a7b137952e0e8e30941a6e493a30c08cacfe7a464573fe37b7f67a319cf"
sha256 cellar: :any_skip_relocation, monterey: "60c0b26a8c07ab1471d4fcd871432d8dfff1c74e96fb812046319aca23f02e15"
sha256 cellar: :any_skip_relocation, big_sur: "c5edd20c87a7b31af0632e12bb7c69ebe51e08530d33a292892cb5757b503b5e"
sha256 cellar: :any_skip_relocation, catalina: "513c77edf0748cfdd80dd8806add9b0166e2fc947de7fc89dc0a86e68505aece"
sha256 cellar: :any_skip_relocation, mojave: "8450fd8658881dbf6b9459bfa272339c99ed0b54d7e165b8f0ee6b85a68b95eb"
sha256 cellar: :any_skip_relocation, x86_64_linux: "cf85e64f726c22497d6129abf4030ed7b75b490f4e826103f87f085db51e1aac"
end
depends_on "cmake" => :build
depends_on "doxygen" => :build
on_linux do
depends_on "freeglut"
depends_on "mesa"
depends_on "mesa-glu"
end
def install
args = std_cmake_args
args << "-DPARTIO_USE_GLVND=OFF" unless OS.mac?
mkdir "build" do
system "cmake", "..", *args
system "make"
system "make", "doc"
system "make", "install"
end
pkgshare.install "src/data"
end
test do
assert_match "Number of particles: 25", shell_output("#{bin}/partinfo #{pkgshare}/data/scatter.bgeo")
end
end