homebrew-core/Formula/siril.rb
2019-01-04 21:50:42 +01:00

53 lines
1.4 KiB
Ruby

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 2
head "https://free-astro.org/svn/siril/", :using => :svn
bottle do
sha256 "13ab6b9ba68ed90b5d81a5f7a21d4ab046705b82e9ad77afe26d0b48f8bb76f1" => :mojave
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "intltool" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "adwaita-icon-theme"
depends_on "cfitsio"
depends_on "ffms2"
depends_on "fftw"
depends_on "gcc" # for OpenMP
depends_on "gnuplot"
depends_on "gsl"
depends_on "gtk-mac-integration"
depends_on "jpeg"
depends_on "libconfig"
depends_on "libraw"
depends_on "librsvg"
depends_on "libsvg"
depends_on "netpbm"
depends_on "opencv"
depends_on "openjpeg"
fails_with :clang # no OpenMP support
needs :cxx11
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"
system "./autogen.sh", "--prefix=#{prefix}", "--enable-openmp"
system "make", "install"
end
test do
system "#{bin}/siril", "-v"
end
end