Skip to content

Commit

Permalink
tesseract: depend on libtiff, fix building --with-opencl
Browse files Browse the repository at this point in the history
Resolves #10380

Closes #10596.

Signed-off-by: JCount <JCount42@gmail.com>
  • Loading branch information
Bryce Glover authored and JCount committed Apr 19, 2017
1 parent cce5db4 commit b93cc1f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Formula/tesseract.rb
Expand Up @@ -3,6 +3,7 @@ class Tesseract < Formula
homepage "https://github.com/tesseract-ocr/"
url "https://github.com/tesseract-ocr/tesseract/archive/3.05.00.tar.gz"
sha256 "3fe83e06d0f73b39f6e92ed9fc7ccba3ef734877b76aa5ddaaa778fac095d996"
revision 1

bottle do
sha256 "d2ec7a1ef8859c28dd0d1e2e5a4bf54224bf971e11863bef693687fb3f166180" => :sierra
Expand Down Expand Up @@ -31,7 +32,7 @@ class Tesseract < Formula
depends_on "pkg-config" => :build

depends_on "leptonica"
depends_on "libtiff" => :recommended
depends_on "libtiff"

if build.with? "training-tools"
depends_on "libtool" => :build
Expand Down Expand Up @@ -64,6 +65,14 @@ class Tesseract < Formula
sha256 "36f772980ff17c66a767f584a0d80bf2302a1afa585c01a226c1863afcea1392"
end

# remove on next release, > 3.05.00
# upstream fix for building with OpenCL enabled
# https://github.com/tesseract-ocr/tesseract/pull/814
patch do
url "https://github.com/tesseract-ocr/tesseract/commit/b18cad4.patch"
sha256 "10c59baa54c3406fcd03f36cd0f1e3cc2ba150f082d14f919274a541b3cff7b2"
end

def install
if build.head?
# ld: symbol(s) not found for _clSetKernelArg and other symbols
Expand Down

0 comments on commit b93cc1f

Please sign in to comment.