mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
graphics/tesseract: update to 5.0.1
This is a bug fix release of Tesseract 5.0. * Add SPDX-License-Identifier to public include files. * Support redirections when running OCR on a URL. * Lots of fixes and improvements for cmake builds. * Distributions should use the autoconf build. * Fix broken msys2 build with gcc 11. * Fix parameter certainty_scale (was duplicated). * Fix some compiler warnings and clean code. * Correctly detect amd64 and i386 on FreeBSD. * Add libarchive and libcurl in continuous integration actions. * Update submodule googletest to release v1.11.0.
This commit is contained in:
parent
7cdfb588b4
commit
bef8c787cf
@ -1,8 +1,7 @@
|
||||
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
||||
|
||||
PORTNAME= tesseract
|
||||
PORTVERSION= 5.0.0
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 5.0.1
|
||||
CATEGORIES= graphics
|
||||
|
||||
MAINTAINER= pkubaj@FreeBSD.org
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1638329691
|
||||
SHA256 (tesseract-ocr-tesseract-5.0.0_GH0.tar.gz) = 72467b7876dc0c39ef7fbcb0f793f73aee1c78d9fabab3ab19cbac1eb42e9fed
|
||||
SIZE (tesseract-ocr-tesseract-5.0.0_GH0.tar.gz) = 1919742
|
||||
TIMESTAMP = 1641560845
|
||||
SHA256 (tesseract-ocr-tesseract-5.0.1_GH0.tar.gz) = b5b0e561650ed67feb1e9de38d4746121d302ae4c876c95b99b8b6f9f89d5c58
|
||||
SIZE (tesseract-ocr-tesseract-5.0.1_GH0.tar.gz) = 1913596
|
||||
|
@ -1,35 +0,0 @@
|
||||
--- CMakeLists.txt.orig 2021-12-02 15:06:37 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -149,7 +149,7 @@ endif()
|
||||
|
||||
message("CMAKE_SYSTEM_PROCESSOR=<${CMAKE_SYSTEM_PROCESSOR}>")
|
||||
|
||||
-if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86|AMD64")
|
||||
+if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86|AMD64|amd64|i386")
|
||||
|
||||
set(HAVE_NEON FALSE)
|
||||
|
||||
@@ -220,7 +220,7 @@ set(HAVE_SSE4_1 FALSE)
|
||||
add_definitions("-DHAVE_NEON")
|
||||
set(HAVE_NEON TRUE)
|
||||
|
||||
-else()
|
||||
+elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "arm.*")
|
||||
|
||||
set(HAVE_AVX FALSE)
|
||||
set(HAVE_AVX2 FALSE)
|
||||
@@ -232,6 +232,14 @@ if(HAVE_NEON)
|
||||
set(NEON_COMPILE_FLAGS "-mfpu=neon")
|
||||
add_definitions("-DHAVE_NEON")
|
||||
endif()
|
||||
+
|
||||
+else()
|
||||
+
|
||||
+set(HAVE_AVX FALSE)
|
||||
+set(HAVE_AVX2 FALSE)
|
||||
+set(HAVE_FMA FALSE)
|
||||
+set(HAVE_NEON FALSE)
|
||||
+set(HAVE_SSE4_1 FALSE)
|
||||
|
||||
endif(CMAKE_SYSTEM_PROCESSOR MATCHES "x86|AMD64")
|
||||
|
Loading…
Reference in New Issue
Block a user