vim: update to 9.1.0984
[oi-userland.git] / components / library / czmq / Makefile
blob490ae1f3eb0b78bff1fe7ff92f5c069b1eaeec41
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2016 Jim Klimov
14 # Copyright 2020 Alexander Pyhalov
15 # Copyright 2024 Klaus Ziegler
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= czmq
21 COMPONENT_VERSION= 4.2.1
22 COMPONENT_REVISION= 1
23 COMPONENT_SUMMARY= C bindings for 0MQ
24 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
25 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
26 COMPONENT_ARCHIVE_HASH= sha256:5d720a204c2a58645d6f7643af15d563a712dad98c9d32c1ed913377daa6ac39
27 COMPONENT_ARCHIVE_URL= https://github.com/zeromq/czmq/releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
28 COMPONENT_PROJECT_URL= http://zeromq.org/
29 COMPONENT_FMRI= library/c++/czmq
30 # Two licenses in tarball, LGPLv3+ is referenced in their spec-file
31 COMPONENT_LICENSE_FILE= LICENSE
32 COMPONENT_LICENSE= MPLv2
33 COMPONENT_CLASSIFICATION= System/Libraries
35 include $(WS_MAKE_RULES)/common.mk
37 COMPONENT_PREP_ACTION = \
38 ( cd $(@D) && \
39 libtoolize --copy --force && \
40 aclocal -I m4 && \
41 autoheader && \
42 automake -c -f -a && \
43 autoconf )
45 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
47 CXXFLAGS += -D_POSIX_PTHREAD_SEMANTICS
48 CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
50 CONFIGURE_OPTIONS += --enable-static=no
52 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
54 COMPONENT_TEST_TRANSFORMS += \
55 '-n ' \
56 '-e "/TOTAL:/p" ' \
57 '-e "/SKIP:/p" ' \
58 '-e "/PASS:/p" ' \
59 '-e "/FAIL:/p" ' \
60 '-e "/ERROR:/p" ' \
61 '-e "/Running czmq selftests/,\$$p" '
63 # Auto-generated dependencies
64 REQUIRED_PACKAGES += library/c++/zeromq
65 REQUIRED_PACKAGES += library/libmicrohttpd
66 REQUIRED_PACKAGES += library/lz4
67 REQUIRED_PACKAGES += system/library
68 REQUIRED_PACKAGES += web/curl