ucmb: Fix compile on 2.6.36
[openwrt/svn-archive/archive.git] / libs / check / Makefile
1 #
2 # Copyright (C) 2008-2010 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.9.8
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/check
16 PKG_MD5SUM:=5d75e9a6027cde79d2c339ef261e7470
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 TARGET_CFLAGS += $(FPIC)
24
25 define Package/check
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=Unit testing framework for C
29 URL:=http://check.sourceforge.net/
30 DEPENDS:= +libpthread
31 endef
32
33 define Package/check/description
34 Check features a simple interface for defining unit tests, putting little in
35 the way of the developer. Tests are run in a separate address space, so Check
36 can catch both assertion failures and code errors that cause segmentation
37 faults or other signals. The output from unit tests can be used within source
38 code editors and IDEs.
39 endef
40
41 define Build/Configure
42 $(CP) $(SCRIPT_DIR)/config.* $(PKG_BUILD_DIR)/build-aux/
43 $(call Build/Configure/Default)
44 endef
45
46 define Build/Install
47 $(call Build/Install/Default)
48 cd $(PKG_INSTALL_DIR)/usr/lib/ ; ln -nsf libcheck.so libcheck_pic.so
49 endef
50
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)
53 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
54 endef
55
56 define Package/check/install
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcheck.so.* $(1)/usr/lib/
59 endef
60
61 $(eval $(call BuildPackage,check))