Skip to content

Instantly share code, notes, and snippets.

@sfate
Last active August 26, 2021 15:31
Show Gist options
  • Save sfate/cc92b94657ed4fcf3b35b17849e4d65a to your computer and use it in GitHub Desktop.
Save sfate/cc92b94657ed4fcf3b35b17849e4d65a to your computer and use it in GitHub Desktop.
homebrew's formulae for sfcgal patched package (fixed build for macOS-arm64)
class Sfcgal < Formula
desc "C++ wrapper library around CGAL"
homepage "http://sfcgal.org/"
url "https://gitlab.com/sfate/SFCGAL/-/archive/v1.3.10/SFCGAL-v1.3.10.tar.gz"
sha256 "64a184ce4090508cbd3d947966ed295173632395452465856febc23e8641d5be"
license "LGPL-2.0-or-later"
bottle do
sha256 arm64_big_sur: "64a184ce4090508cbd3d947966ed295173632395452465856febc23e8641d5be"
sha256 big_sur: "d3db5932f5c16c7612a3491fe635aede4c3fdba1dcf4fb46641e13a42bb8242d"
sha256 catalina: "12100fd5f5f69e3a4c3f2bb02190805a8189c3a37d86cf5c915e82dddc7bc239"
sha256 mojave: "125b86231c3f94ab06cb9d300366934d4d168d314c46355399ae9c6711ba9d95"
end
depends_on "cmake" => :build
depends_on "boost"
depends_on "cgal"
depends_on "gmp"
depends_on "mpfr"
def install
system "cmake", ".", *std_cmake_args
system "make", "install"
end
test do
assert_equal prefix.to_s, shell_output("#{bin}/sfcgal-config --prefix").strip
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment