package/libdeflate: bump version to 1.15

Release notes:
https://github.com/ebiggers/libdeflate/blob/master/NEWS.md

Switch to cmake.

Added CFLAGS to fix uClibc build:

/home/bernd/buildroot/output/build/libdeflate-1.15/programs/gzip.c:367:10:
 error: 'const struct stat' has no member named 'st_atim'; did you mean 'st_atime'?

/home/bernd/buildroot/output/build/libdeflate-1.15/programs/gzip.c:367:26:
 error: 'const struct stat' has no member named 'st_mtim'; did you mean 'st_mtime'?

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit c31087182f)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2022.11.x
Bernd Kuhls 2022-12-12 21:56:10 +01:00 committed by Peter Korsgaard
parent ddd47436d6
commit 99a9b22377
2 changed files with 5 additions and 24 deletions

View File

@ -1,3 +1,3 @@
# Locally computed
sha256 ba89fb167a5ab6bbdfa6ee3b1a71636e8140fa8471cce8a311697584948e4d06 libdeflate-1.12.tar.gz
sha256 58b95040df7383dc0413defb700d9893c194732474283cc4c8f144b00a68154b libdeflate-1.15.tar.gz
sha256 5d246dd2537307b80fed9ba5fdddf5d0fe7a8f023393a071182b9daed56b40fe COPYING

View File

@ -4,31 +4,12 @@
#
################################################################################
LIBDEFLATE_VERSION = 1.12
LIBDEFLATE_VERSION = 1.15
LIBDEFLATE_SITE = $(call github,ebiggers,libdeflate,v$(LIBDEFLATE_VERSION))
LIBDEFLATE_LICENSE = MIT
LIBDEFLATE_LICENSE_FILES = COPYING
LIBDEFLATE_INSTALL_STAGING = YES
LIBDEFLATE_CONF_OPTS = \
-DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -D_DEFAULT_SOURCE"
ifeq ($(BR2_STATIC_LIBS),y)
LIBDEFLATE_MAKE_OPTS += DISABLE_SHARED=yes
endif
define LIBDEFLATE_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
$(LIBDEFLATE_MAKE_OPTS)
endef
define LIBDEFLATE_INSTALL_STAGING_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
$(LIBDEFLATE_MAKE_OPTS) \
DESTDIR="$(STAGING_DIR)" PREFIX=/usr install
endef
define LIBDEFLATE_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
$(LIBDEFLATE_MAKE_OPTS) \
DESTDIR="$(TARGET_DIR)" PREFIX=/usr install
endef
$(eval $(generic-package))
$(eval $(cmake-package))