summaryrefslogtreecommitdiff
path: root/libs/check
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2015-02-07 11:21:39 +0100
committerNicolas Thill <nico@openwrt.org>2015-02-07 11:21:39 +0100
commit3b1bb08f974694ba72ebe2c93b9d445a48e33d01 (patch)
tree4997c9e470d2dbca0449ee7dd56f517d5ab520af /libs/check
parent8c482bdf95754a35ab923240d3175ad572d7c6cd (diff)
check: import from old packages feed
- update to latest version (v0.9.14) - add license info - add myself as maintainer Signed-off-by: Nicolas Thill <nico@openwrt.org>
Diffstat (limited to 'libs/check')
-rw-r--r--libs/check/Makefile58
1 files changed, 58 insertions, 0 deletions
diff --git a/libs/check/Makefile b/libs/check/Makefile
new file mode 100644
index 000000000..b565d4dda
--- /dev/null
+++ b/libs/check/Makefile
@@ -0,0 +1,58 @@
+#
+# Copyright (C) 2008-2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=check
+PKG_VERSION:=0.9.14
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=@SF/check
+PKG_MD5SUM:=38263d115d784c17aa3b959ce94be8b8
+
+PKG_LICENSE:=LGPL-2.1+
+PKG_LICENSE_FILES:=COPYING.LESSER
+PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
+
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/check
+ SECTION:=libs
+ CATEGORY:=Libraries
+ TITLE:=Unit testing framework for C
+ URL:=http://check.sourceforge.net/
+ DEPENDS:= +libpthread +librt
+endef
+
+define Package/check/description
+ Check features a simple interface for defining unit tests, putting little in
+ the way of the developer. Tests are run in a separate address space, so Check
+ can catch both assertion failures and code errors that cause segmentation
+ faults or other signals. The output from unit tests can be used within source
+ code editors and IDEs.
+endef
+
+TARGET_CFLAGS += $(FPIC)
+
+define Build/InstallDev
+ $(INSTALL_DIR) $(1)/usr/include
+ $(CP) $(PKG_INSTALL_DIR)/usr/include/check*.h $(1)/usr/include/
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcheck.{a,so*} $(1)/usr/lib/
+ $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/check.pc $(1)/usr/lib/pkgconfig/
+endef
+
+define Package/check/install
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcheck.so.* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,check))