vim: update to 9.1.0984
[oi-userland.git] / components / library / minizip-ng / Makefile
blob4017d0beaee6655d75a0441df26b2628730e6958
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2023 Andreas Wacknitz
15 BUILD_STYLE= cmake
16 OPENSSL_VERSION= 3.1
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME= minizip-ng
20 COMPONENT_VERSION= 4.0.7
21 COMPONENT_SUMMARY= minizip-ng is a zip manipulation library written in C
22 COMPONENT_PROJECT_URL= https://github.com/zlib-ng/minizip-ng
23 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
24 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
25 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/archive/refs/tags/$(COMPONENT_VERSION).tar.gz
26 COMPONENT_ARCHIVE_HASH= sha256:a87f1f734f97095fe1ef0018217c149d53d0f78438bcb77af38adc21dff2dfbc
27 COMPONENT_FMRI= library/$(COMPONENT_NAME)
28 COMPONENT_CLASSIFICATION=System/Libraries
29 COMPONENT_LICENSE= BSD 3-Clause
30 COMPONENT_LICENSE_FILE= LICENSE
32 include $(WS_MAKE_RULES)/common.mk
34 PATH = $(PATH.gnu)
36 CMAKE_OPTIONS += -DBUILD_SHARED_LIBS=yes
37 CMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX=/usr
38 CMAKE_OPTIONS += -DCMAKE_INSTALL_LIBDIR=lib/amd64
39 CMAKE_OPTIONS += -DCMAKE_C_FLAGS="$(CFLAGS)"
40 CMAKE_OPTIONS += -DMZ_BUILD_TESTS=yes
41 CMAKE_OPTIONS += -DMZ_BUILD_UNIT_TESTS=yes
42 CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=Release
44 unexport SHELLOPTS
45 COMPONENT_TEST_TRANSFORMS += '-e "s/[0-9. ]*sec//g"'
47 # Auto-generated dependencies
48 REQUIRED_PACKAGES += $(OPENSSL_PKG)
49 REQUIRED_PACKAGES += compress/bzip2
50 REQUIRED_PACKAGES += compress/xz
51 REQUIRED_PACKAGES += compress/zstd
52 REQUIRED_PACKAGES += library/zlib
53 REQUIRED_PACKAGES += system/library