2 # Copyright (C) 2008-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
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
18 PKG_MAINTAINER
:=Eduardo Abinader
<eduardoabinader@gmail.com
>
19 PKG_LICENSE
:=LGPL-2.1
-or-later
20 PKG_LICENSE_FILES
:=COPYING.LESSER
24 include $(INCLUDE_DIR
)/package.mk
25 include $(INCLUDE_DIR
)/cmake.mk
30 TITLE
:=Unit testing framework for C
31 URL
:=https
://libcheck.github.io
/check/
32 DEPENDS
:= +libpthread
+librt
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.
45 -DCMAKE_POSITION_INDEPENDENT_CODE
=ON
47 define Package
/check/install
48 $(INSTALL_DIR
) $(1)/usr
/lib
49 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libcheck.so.
* $(1)/usr
/lib
/
52 $(eval
$(call BuildPackage
,check))