From 975ba08aa3721c65fa7185f301d6f96bbda98ecd Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Wed, 12 Jun 2024 13:41:14 +0200 Subject: [PATCH 1/2] Add libcurl to required packages (partially fixes issue #63) Signed-off-by: Stefan Weil --- recipe/meta.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index aa69019..685a345 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -15,7 +15,7 @@ source: build: - number: 0 + number: 1 skip: true # [win and vc<14] run_exports: - {{ pin_subpackage(name, max_pin='x.x.x') }} @@ -35,6 +35,7 @@ requirements: host: - giflib # [not win] - libarchive + - libcurl - libjpeg-turbo - leptonica - libpng From b72bbc6abd5939c7a0fe6ddba1047f9aa799486a Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 14 Jun 2024 07:44:45 +0200 Subject: [PATCH 2/2] Add options and flags to configure (as suggested by Shaun Walbridge in review) This adds libarchive for macOS, too. Signed-off-by: Stefan Weil --- recipe/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipe/build.sh b/recipe/build.sh index 4197ea7..eab9dec 100644 --- a/recipe/build.sh +++ b/recipe/build.sh @@ -5,7 +5,9 @@ pushd tesseract autoreconf -vi ./autogen.sh mkdir build && cd build -../configure --prefix="${PREFIX}" +libarchive_CFLAGS="-I${PREFIX}/include" \ +libarchive_LIBS="-I${PREFIX}/lib" \ +../configure --with-archive --with-curl --prefix="${PREFIX}" make -j $CPU_COUNT make install popd