# # This file and its contents are supplied under the terms of the # Common Development and Distribution License ("CDDL)". You may # only use this file in accordance with the terms of the CDDL. # # A full copy of the text of the CDDL should have accompanied this # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # # Copyright 2023 Andreas Wacknitz # BUILD_STYLE= cmake USE_COMPONENT_TEST_TRANSFORMS= yes include ../../../make-rules/shared-macros.mk COMPONENT_NAME= minizip-ng COMPONENT_VERSION= 4.0.8 COMPONENT_SUMMARY= minizip-ng is a zip manipulation library written in C COMPONENT_PROJECT_URL= https://github.com/zlib-ng/minizip-ng COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/archive/refs/tags/$(COMPONENT_VERSION).tar.gz COMPONENT_ARCHIVE_HASH= sha256:c3e9ceab2bec26cb72eba1cf46d0e2c7cad5d2fe3adf5df77e17d6bbfea4ec8f COMPONENT_FMRI= library/$(COMPONENT_NAME) COMPONENT_CLASSIFICATION=System/Libraries COMPONENT_LICENSE= BSD 3-Clause COMPONENT_LICENSE_FILE= LICENSE include $(WS_MAKE_RULES)/common.mk PATH = $(PATH.gnu) CMAKE_OPTIONS += -DBUILD_SHARED_LIBS=yes CMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX=/usr CMAKE_OPTIONS += -DCMAKE_INSTALL_LIBDIR=lib/amd64 CMAKE_OPTIONS += -DCMAKE_C_FLAGS="$(CFLAGS)" CMAKE_OPTIONS += -DMZ_BUILD_TESTS=yes CMAKE_OPTIONS += -DMZ_BUILD_UNIT_TESTS=yes CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=Release COMPONENT_TEST_TRANSFORMS += '-e "s/[0-9. ]*sec//g"' # Auto-generated dependencies REQUIRED_PACKAGES += $(OPENSSL_PKG) REQUIRED_PACKAGES += compress/bzip2 REQUIRED_PACKAGES += compress/xz REQUIRED_PACKAGES += compress/zstd REQUIRED_PACKAGES += library/zlib REQUIRED_PACKAGES += system/library