tesseract: depend on libtiff, fix building --with-opencl
Resolves #10380 Closes #10596. Signed-off-by: JCount <JCount42@gmail.com>
This commit is contained in:
parent
cce5db4055
commit
b93cc1f324
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue