You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.4 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=check
  9. PKG_VERSION:=0.14.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/libcheck/check/releases/download/$(PKG_VERSION)
  13. PKG_HASH:=bd0f0ca1be65b70238b32f8e9fe5d36dc2fbf7a759b7edf28e75323a7d74f30b
  14. PKG_MAINTAINER:=Eduardo Abinader <eduardoabinader@gmail.com>
  15. PKG_LICENSE:=LGPL-2.1-or-later
  16. PKG_LICENSE_FILES:=COPYING.LESSER
  17. CMAKE_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/check
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=Unit testing framework for C
  25. URL:=https://libcheck.github.io/check/
  26. DEPENDS:= +libpthread +librt
  27. endef
  28. define Package/check/description
  29. Check features a simple interface for defining unit tests, putting little in
  30. the way of the developer. Tests are run in a separate address space, so Check
  31. can catch both assertion failures and code errors that cause segmentation
  32. faults or other signals. The output from unit tests can be used within source
  33. code editors and IDEs.
  34. endef
  35. CMAKE_OPTIONS += \
  36. -DBUILD_TESTING=OFF \
  37. -DCMAKE_POSITION_INDEPENDENT_CODE=ON
  38. define Package/check/install
  39. $(INSTALL_DIR) $(1)/usr/lib
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcheck.so.* $(1)/usr/lib/
  41. endef
  42. $(eval $(call BuildPackage,check))