tesseract: segfaults on 10.6 when compiled with llvm-gcc

master
David Höppner 2010-01-31 13:35:51 +01:00
parent 8acd4e7e7e
commit 790d0e2cfd
1 changed files with 3 additions and 1 deletions

View File

@ -14,11 +14,13 @@ class Tesseract <Formula
depends_on 'libtiff'
def install
# Executable 'tesseract' segfaults on 10.6 when compiled with llvm-gcc (LLVM build 2206)
ENV.gcc_4_2
# 'make install' expects the language data files in the build directory
d = Dir.getwd
TesseractEnglishData.new.brew { FileUtils.cp Dir["*"], "#{d}/tessdata/" }
ENV.O3
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
end