fltk: patch for Mojave

Closes #35881.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Christopher Moore 2019-01-10 11:00:17 -05:00 committed by FX Coudert
parent 30b155ef9c
commit aeead43f7d

View file

@ -5,6 +5,7 @@ class Fltk < Formula
mirror "https://dl.bintray.com/homebrew/mirror/fltk-1.3.4-2.tar.gz"
version "1.3.4-2"
sha256 "25d349c18c99508737d48f225a2eb26a43338f9247551cab72a317fa42cda910"
revision 1
bottle do
sha256 "fbf193393bb8d95b303e3e9bdda7b7808c8211b06ec76017ef386f3dac3ca8aa" => :mojave
@ -16,6 +17,14 @@ class Fltk < Formula
depends_on "jpeg"
depends_on "libpng"
# Fix for Mojave issue https://github.com/Homebrew/homebrew-core/issues/33342
# Modified version of upstream commit https://github.com/fltk/fltk/commit/f76d2a2bf8c35c0c313f05bbd6deda49dd344efc
# Remove after next release
patch :p0 do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/a68bce/fltk/mojave.patch"
sha256 "9483adfc70c25bd560c4400972d8d12d288ee78c27b1c03c965aa59818e59152"
end
def install
system "./configure", "--prefix=#{prefix}",
"--enable-threads",