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 2013 Adam Stevko. All rights reserved.
13 # Copyright 2022 Niklas Poslovski
17 include ..
/..
/..
/make-rules
/shared-macros.mk
19 COMPONENT_NAME
= json-c
20 COMPONENT_VERSION
= 0.17
21 COMPONENT_SUMMARY
= A JSON implementation in C
22 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
23 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
24 COMPONENT_ARCHIVE_HASH
= sha256
:7550914d58fb63b2c3546f3ccfbe11f1c094147bd31a69dcd23714d7956159e6
25 COMPONENT_PROJECT_URL
= https
://github.com
/json-c
/json-c
26 COMPONENT_ARCHIVE_URL
= https
://s3.amazonaws.com
/json-c_releases
/releases
/$(COMPONENT_ARCHIVE
)
27 COMPONENT_FMRI
= library
/json-c
28 COMPONENT_CLASSIFICATION
= System
/Libraries
29 COMPONENT_LICENSE
= MIT
30 COMPONENT_LICENSE_FILE
= COPYING
32 include $(WS_MAKE_RULES
)/common.mk
34 CMAKE_OPTIONS
+= -DCMAKE_BUILD_TYPE
=Release
35 CMAKE_OPTIONS
+= -DBUILD_STATIC_LIBS
:BOOL
=OFF
37 # Note that tests might fail if valgrind is installed.
38 COMPONENT_TEST_TRANSFORMS
+= \
39 '-e "s/\s\s*[0-9][0-9]*\.[0-9][0-9]* sec//"' \
44 # Auto-generated dependencies
45 REQUIRED_PACKAGES
+= system
/library