Skip to content

Commit 37f4837

Browse files
committed
Use Tesseract from Homebrew on macOS
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent cb5defa commit 37f4837

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

example/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ BASENAME=$(BOOK)_$(PAGE)
66
DEBIAN_PACKAGES = libxml2-utils tesseract-ocr tesseract-ocr-script-frak wget dwdiff
77
XMLLINT = xmllint --format
88
OCR_TRANSFORM = ../bin/ocr-transform.sh
9+
ifdef HOMEBREW_PREFIX
10+
TESSERACT = $(HOMEBREW_PREFIX)/bin/tesseract -l Fraktur
11+
else
912
TESSERACT = /usr/bin/tesseract -l Fraktur
13+
endif
1014
WGET = wget
1115
RM = rm -f
1216
DWDIFF = dwdiff -p -l -c

0 commit comments

Comments
 (0)