Switch to building with Ninja for faster compilation.
Refreshed patches.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
include $(TOPDIR)/rules.mk
PKG_NAME:=libgd
-PKG_VERSION:=2.3.1
+PKG_VERSION:=2.3.2
PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/$(PKG_NAME)/$(PKG_NAME)/releases/download/gd-$(PKG_VERSION)/
-PKG_HASH:=9767917d9f818faec4ddd763fe4a4ad9f6322c3d25da290ab2ea3e2ce4b52a7b
+PKG_HASH:=478a047084e0d89b83616e4c2cf3c9438175fb0cc55d8c8967f06e0427f7d7fb
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=COPYING
PKG_CPE_ID:=cpe:/a:libgd:libgd
-PKG_BUILD_PARALLEL:=1
-
include $(INCLUDE_DIR)/package.mk
-include $(INCLUDE_DIR)/cmake.mk
+include ../../devel/ninja/ninja-cmake.mk
define Package/libgd/default
SECTION:=libs
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
-@@ -116,7 +116,7 @@ else (USE_EXT_GD)
+@@ -118,7 +118,7 @@ else (USE_EXT_GD)
endif (ENABLE_ICONV)
IF (ENABLE_WEBP)
+ FIND_PACKAGE(WebP REQUIRED)
ENDIF (ENABLE_WEBP)
- IF (ENABLE_LIQ)
-@@ -166,10 +166,10 @@ else (USE_EXT_GD)
+ IF (ENABLE_HEIF)
+@@ -179,10 +179,10 @@ else (USE_EXT_GD)
LIST(APPEND PKG_REQUIRES_PRIVATES zlib)
ENDIF(ZLIB_FOUND)
- ENDIF(WEBP_FOUND)
+ ENDIF(WebP_FOUND)
- IF(PNG_FOUND)
- INCLUDE_DIRECTORIES(${PNG_INCLUDE_DIR})
+ IF(HEIF_FOUND)
+ INCLUDE_DIRECTORIES(${HEIF_INCLUDE_DIR})
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
-@@ -22,8 +22,6 @@ SET (LIBGD_SRC_FILES
+@@ -24,8 +24,6 @@ SET (LIBGD_SRC_FILES
gd_io_dp.c
gd_io_file.c
gd_io_ss.c
gd_jpeg.c
gd_matrix.c
gd_nnquant.c
-@@ -59,8 +57,6 @@ SET (LIBGD_SRC_FILES
+@@ -61,8 +59,6 @@ SET (LIBGD_SRC_FILES
gdhelpers.c
gdhelpers.h
gdkanji.c
gdtables.c
gdxpm.c
jisx0208.h
-@@ -204,7 +200,6 @@ install(FILES
+@@ -203,7 +199,6 @@ install(FILES
gdfonts.h
gdfontt.h
gdfx.h