diff --git a/utils/tesseract/Makefile b/utils/tesseract/Makefile index bd99117c6..b17443314 100644 --- a/utils/tesseract/Makefile +++ b/utils/tesseract/Makefile @@ -33,6 +33,11 @@ CONFIGURE_ARGS += \ TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib +define Build/Prepare + $(call Build/Prepare/Default) + $(SED) '1s/^\xEF\xBB\xBF//' $(PKG_BUILD_DIR)/ccutil/strngs.h +endef + define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/tesseract $(1)/usr/include/