buildroot/package/zziplib/zziplib.mk
Bernd Kuhls 30424ec74b package/zziplib: bump version to 0.13.72
Changelog: https://github.com/gdraheim/zziplib/blob/master/ChangeLog

Upstream switched the project to cmake and deprecated automake:
5116d90fef

Removed dependency to host-python3 as it is needed only for tests:
https://github.com/gdraheim/zziplib/blob/master/test/CMakeLists.txt#L21

Remove GNUmakefile to fix build error as the real makefile is Makefile.
GNUnamefile includes files which do not exist after configure and fails
to include Makefile:
https://github.com/gdraheim/zziplib/blob/master/GNUmakefile#L60

Added optional dependency to SDL2.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2021-01-16 22:05:25 +01:00

30 lines
797 B
Makefile

################################################################################
#
# zziplib
#
################################################################################
ZZIPLIB_VERSION = 0.13.72
ZZIPLIB_SITE = $(call github,gdraheim,zziplib,v$(ZZIPLIB_VERSION))
ZZIPLIB_LICENSE = LGPL-2.0+ or MPL-1.1
ZZIPLIB_LICENSE_FILES = docs/COPYING.LIB docs/COPYING.MPL docs/copying.htm
ZZIPLIB_INSTALL_STAGING = YES
ZZIPLIB_CONF_OPTS += \
-DZZIPDOCS=OFF \
-DZZIPTEST=OFF
ZZIPLIB_DEPENDENCIES = host-pkgconf zlib
define ZZIPLIB_POST_EXTRACT_FIXUP
rm $(@D)/GNUmakefile
endef
ZZIPLIB_POST_EXTRACT_HOOKS += ZZIPLIB_POST_EXTRACT_FIXUP
ifeq ($(BR2_PACKAGE_SDL2),y)
ZZIPLIB_CONF_OPTS += -DZZIPSDL=ON
ZZIPLIB_DEPENDENCIES += sdl2
else
ZZIPLIB_CONF_OPTS += -DZZIPSDL=OFF
endif
$(eval $(cmake-package))