Skip to content

Commit a33351c

Browse files
committed
leptonica: adjust for tesseract expectations
Adjust include path and cmake file path so that tesseract, the only user of the library, finds the items in place. Should unbreak the tesseract build. Signed-off-by: Hannu Nyman <[email protected]>
1 parent 6629fc9 commit a33351c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libs/leptonica/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
99

1010
PKG_NAME:=leptonica
1111
PKG_VERSION:=1.86.0
12-
PKG_RELEASE:=1
12+
PKG_RELEASE:=2
1313

1414
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
1515
PKG_SOURCE_URL:=http://www.leptonica.org/source/
@@ -41,12 +41,12 @@ CMAKE_OPTIONS += \
4141
TARGET_CFLAGS:=$(filter-out -O%,$(TARGET_CFLAGS)) -O3
4242

4343
define Build/InstallDev
44-
$(INSTALL_DIR) $(1)/usr/include/leptonica
45-
$(CP) $(PKG_INSTALL_DIR)/usr/include/leptonica/*.h $(1)/usr/include/leptonica/
44+
$(INSTALL_DIR) $(1)/usr/include
45+
$(CP) $(PKG_INSTALL_DIR)/usr/include/leptonica/*.h $(1)/usr/include/
4646
$(INSTALL_DIR) $(1)/usr/lib
4747
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libleptonica.so* $(1)/usr/lib/
48-
$(INSTALL_DIR) $(1)/usr/lib/cmake
49-
$(CP) $(PKG_INSTALL_DIR)/usr/lib/cmake/leptonica/*.cmake $(1)/usr/lib/cmake/
48+
$(INSTALL_DIR) $(1)/usr/lib/cmake/leptonica
49+
$(CP) $(PKG_INSTALL_DIR)/usr/lib/cmake/leptonica/*.cmake $(1)/usr/lib/cmake/leptonica
5050
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
5151
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/lept.pc $(1)/usr/lib/pkgconfig/lept.pc
5252
endef

0 commit comments

Comments
 (0)