siril 0.9.10

Closes #36173.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Suho Lee 2019-01-19 22:49:03 +09:00 committed by FX Coudert
parent 63076ce5b3
commit 3b6e353918

View file

@ -1,10 +1,9 @@
class Siril < Formula
desc "Astronomical image processing tool"
homepage "https://free-astro.org/index.php/Siril"
url "https://free-astro.org/download/siril-0.9.9.tar.bz2"
sha256 "7958985393eca33b2db173090af78a46e42a7daefe7f6eaa7efa4ba261fa46f3"
revision 4
head "http://free-astro.org/svn/siril/", :using => :svn
homepage "https://www.siril.org"
url "https://free-astro.org/download/siril-0.9.10.tar.bz2"
sha256 "caf9800a442bbe3991e820ffc66f41b453c6866f510e2934d236788c78f5be29"
head "https://gitlab.com/free-astro/siril.git"
bottle do
sha256 "3540ee3f5a7b6d2b4df41c31ad540c853e987bfd66ee93904fa5eff706d5115a" => :mojave
@ -26,6 +25,7 @@ class Siril < Formula
depends_on "gtk-mac-integration"
depends_on "jpeg"
depends_on "libconfig"
depends_on "libomp"
depends_on "libraw"
depends_on "librsvg"
depends_on "libsvg"
@ -33,19 +33,10 @@ class Siril < Formula
depends_on "opencv"
depends_on "openjpeg"
# Upstream fix for compilation with OpenCV 4
# Remove in next version
patch do
url "https://gitlab.com/free-astro/siril/commit/c23c2cc829b2ad9444ccefeb865f7e1b3d49c282.diff"
sha256 "22e179e832c7f6a28d5f2bfb3953be477b15450df41ceeb353b77376bec7e048"
end
def install
ENV.cxx11
# siril uses pkg-config but it has wrong include paths for several
# headers. Work around that by letting it find all includes.
ENV.append_to_cflags "-I#{HOMEBREW_PREFIX}/include"
ENV.append_to_cflags "-I#{HOMEBREW_PREFIX}/include -Xpreprocessor -fopenmp -lomp"
system "./autogen.sh", "--prefix=#{prefix}"
system "make", "install"