docker-compose: Update to version 2.28.1
[feed/packages.git] / libs / check / Makefile
1 #
2 # Copyright (C) 2008-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=check
11 PKG_VERSION:=0.15.2
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://github.com/libcheck/check/releases/download/$(PKG_VERSION)
16 PKG_HASH:=a8de4e0bacfb4d76dd1c618ded263523b53b85d92a146d8835eb1a52932fa20a
17
18 PKG_MAINTAINER:=Eduardo Abinader <eduardoabinader@gmail.com>
19 PKG_LICENSE:=LGPL-2.1-or-later
20 PKG_LICENSE_FILES:=COPYING.LESSER
21
22 CMAKE_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/cmake.mk
26
27 define Package/check
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=Unit testing framework for C
31 URL:=https://libcheck.github.io/check/
32 DEPENDS:= +libpthread +librt
33 endef
34
35 define Package/check/description
36 Check features a simple interface for defining unit tests, putting little in
37 the way of the developer. Tests are run in a separate address space, so Check
38 can catch both assertion failures and code errors that cause segmentation
39 faults or other signals. The output from unit tests can be used within source
40 code editors and IDEs.
41 endef
42
43 CMAKE_OPTIONS += \
44 -DBUILD_TESTING=OFF \
45 -DCMAKE_POSITION_INDEPENDENT_CODE=ON
46
47 define Package/check/install
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcheck.so.* $(1)/usr/lib/
50 endef
51
52 $(eval $(call BuildPackage,check))