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 (c) 2021 Klaus Ziegler
16 USE_DEFAULT_TEST_TRANSFORMS
= yes
17 include ..
/..
/..
/make-rules
/shared-macros.mk
19 COMPONENT_NAME
= libzip
20 COMPONENT_VERSION
= 1.11.2
21 COMPONENT_SUMMARY
= A C library for reading
, creating
, and modifying zip archives
22 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
23 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
24 COMPONENT_PROJECT_URL
= https
://libzip.org
/
25 COMPONENT_ARCHIVE_HASH
= sha256
:5d471308cef4c4752bbcf973d9cd37ba4cb53739116c30349d4764ba1410dfc1
26 COMPONENT_ARCHIVE_URL
= $(COMPONENT_PROJECT_URL
)/download
/$(COMPONENT_ARCHIVE
)
27 COMPONENT_CLASSIFICATION
=System
/Libraries
28 COMPONENT_FMRI
= library
/libzip
29 COMPONENT_LICENSE
= BSD
3-clause
30 COMPONENT_LICENSE_FILE
= LICENSE
32 # We are lacking nihtest (INSTALL.md mentions the test prerequisites):
33 TEST_TARGET
= $(NO_TESTS
)
34 include $(WS_MAKE_RULES
)/common.mk
36 CMAKE_OPTIONS
+= -DCMAKE_BUILD_TYPE
=Release
38 COMPONENT_POST_INSTALL_ACTION
+= \
39 $(MKDIR
) $(PROTOUSRLIBDIR
)/cmake
/libzip
; \
40 $(CP
) files
/* $(PROTOUSRLIBDIR
)/cmake
/libzip
; \
41 sed
-e
"s@MACH64_1@$(MACH64_1)@g" $(PROTOUSRLIBDIR
)/cmake
/libzip
/libzip-targets-noconfig.cmake
> /tmp
/libzip.
$$ ; \
42 $(MV
) /tmp
/libzip.
$$ $(PROTOUSRLIBDIR
)/cmake
/libzip
/libzip-targets-noconfig.cmake
44 # Auto-generated dependencies
45 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)
46 REQUIRED_PACKAGES
+= compress
/bzip2
47 REQUIRED_PACKAGES
+= compress
/xz
48 REQUIRED_PACKAGES
+= compress
/zstd
49 REQUIRED_PACKAGES
+= library
/zlib
50 REQUIRED_PACKAGES
+= system
/library