Skip to content

Commit

Permalink
Leptonica pkg-config now gives the parent dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Oct 3, 2024
1 parent 01a159f commit c98f8b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ if [ "$INCLUDE_DIR" ] || [ "$LIB_DIR" ]; then
PKG_LIBS="-L$LIB_DIR $PKG_LIBS"
elif [ "$PKGCONFIG_CFLAGS" ] || [ "$PKGCONFIG_LIBS" ]; then
echo "Found pkg-config cflags and libs!"
PKG_CFLAGS=${PKGCONFIG_CFLAGS}
PKG_CFLAGS=$(echo "$PKGCONFIG_CFLAGS" | sed "s|/leptonica$||")
PKG_LIBS=${PKGCONFIG_LIBS}
elif [ `uname` = "Darwin" ]; then
test ! "$CI" && brew --version 2>/dev/null
if [ $? -eq 0 ]; then
BREWDIR=`brew --prefix`
PKG_CFLAGS="-I$BREWDIR/include/tesseract -I$BREWDIR/include/leptonica"
PKG_CFLAGS="-I$BREWDIR/include/tesseract -I$BREWDIR/include"
PKG_LIBS="-L$BREWDIR/lib $PKG_LIBS"
else
curl -sfL "https://autobrew.github.io/scripts/tesseract" > autobrew
Expand Down

0 comments on commit c98f8b1

Please sign in to comment.