leptonica: update to 1.80.0
authorRosen Penev <rosenp@gmail.com>
Mon, 15 Mar 2021 02:05:34 +0000 (19:05 -0700)
committerRosen Penev <rosenp@gmail.com>
Thu, 25 Mar 2021 23:49:00 +0000 (16:49 -0700)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/leptonica/Makefile
libs/leptonica/patches/010-webp.patch [new file with mode: 0644]

index 3fcad2d59c92cafefe3d2186418614e21c796b66..b0155ca5707d24102ba828393ff425c3dea6d869 100644 (file)
@@ -8,22 +8,21 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=leptonica
-PKG_VERSION:=1.78.0
-PKG_RELEASE:=3
+PKG_VERSION:=1.80.0
+PKG_RELEASE:=$(AUTORELEASE)
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.leptonica.org/source/
-PKG_HASH:=e2ed2e81e7a22ddf45d2c05f0bc8b9ae7450545d995bfe28517ba408d14a5a88
+PKG_HASH:=ec9c46c2aefbb960fb6a6b7f800fe39de48343437b6ce08e30a8d9688ed14ba4
 
 PKG_MAINTAINER:=Valentín Kivachuk <vk18496@gmail.com>
 PKG_LICENSE:=BSD-2-Clause
 PKG_LICENSE_FILES:=leptonica-license.txt
 
-PKG_BUILD_PARALLEL:=1
 CMAKE_BINARY_SUBDIR:=openwrt-build
 
 include $(INCLUDE_DIR)/package.mk
-include $(INCLUDE_DIR)/cmake.mk
+include ../../devel/ninja/ninja-cmake.mk
 
 define Package/libleptonica
   SECTION:=libs
@@ -33,6 +32,10 @@ define Package/libleptonica
   DEPENDS:=+giflib +libjpeg +libpng +libtiff +libwebp +zlib
 endef
 
+CMAKE_OPTIONS += \
+       -DBUILD_SHARED_LIBS=ON \
+       -DWEBPMUX_INCLUDE_DIR=$(STAGING_DIR)/usr/include
+
 TARGET_CFLAGS:=$(filter-out -O%,$(TARGET_CFLAGS)) -O3
 
 define Build/InstallDev
diff --git a/libs/leptonica/patches/010-webp.patch b/libs/leptonica/patches/010-webp.patch
new file mode 100644 (file)
index 0000000..bd62bf6
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/cmake/Configure.cmake
++++ b/cmake/Configure.cmake
+@@ -113,7 +113,6 @@ endif()
+ if (WEBP_FOUND)
+     set(HAVE_LIBWEBP 1)
+-    set(HAVE_LIBWEBP_ANIM 1)
+ endif()
+ if (ZLIB_FOUND)