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
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 2014-2017 Aurelien Larcher. All rights reserved.
14 # Copyright 2020, Michal Nowak
18 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_VERSION
= 0.15.2
22 COMPONENT_FMRI
= developer
/check
23 COMPONENT_SUMMARY
= Unit Testing Framework for C
24 COMPONENT_PROJECT_URL
= https
://libcheck.github.io
/check
25 COMPONENT_CLASSIFICATION
=Development
/C
26 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
27 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
28 COMPONENT_ARCHIVE_HASH
= sha256
:a8de4e0bacfb4d76dd1c618ded263523b53b85d92a146d8835eb1a52932fa20a
29 COMPONENT_ARCHIVE_URL
= https
://github.com
/libcheck
/check/releases
/download
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
30 COMPONENT_LICENSE
= LGPLv2
32 include $(WS_MAKE_RULES
)/common.mk
36 CONFIGURE_OPTIONS
+= --includedir=$(CONFIGURE_PREFIX
)/include/check
37 CONFIGURE_OPTIONS
+= --enable-shared
38 CONFIGURE_OPTIONS
+= --disable-static
39 CONFIGURE_OPTIONS
+= --disable-gcov
40 CONFIGURE_OPTIONS
+= --enable-timeout-tests
41 # Needed to get all the tests to pass (problems with "inf/nan" vs "Inf/Nan").
42 CONFIGURE_OPTIONS
+= --enable-snprintf-replacement
47 COMPONENT_TEST_MASTER
= $(COMPONENT_TEST_RESULTS_DIR
)/results-all.master
49 COMPONENT_TEST_TRANSFORMS
+= \
57 # Auto-generated dependencies
58 REQUIRED_PACKAGES
+= system
/library
59 REQUIRED_PACKAGES
+= system
/library
/math
60 REQUIRED_PACKAGES
+= text
/gawk