check does not depend on libxml2 and set md5sum for check.
[openwrt/svn-archive/archive.git] / libs / check / Makefile
1 #
2 # Copyright (C) 2008 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.5
12 PKG_RELEASE:=1
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=@SF/check/
15 PKG_MD5SUM:=30143c7974b547a12a7da47809a90951
16 PKG_FIXUP:=libtool
17
18 include $(INCLUDE_DIR)/package.mk
19
20 PKG_INSTALL = 1
21
22 TARGET_CFLAGS += $(FPIC) \
23 -I$(STAGING_DIR)/usr/lib/libintl/include \
24 -I$(STAGING_DIR)/usr/lib/libiconv/include
25
26 TARGET_LDFLAGS += \
27 -L$(STAGING_DIR)/usr/lib/libintl/lib \
28 -L$(STAGING_DIR)/usr/lib/libiconv/lib
29
30 define Package/check
31 SECTION:=lib
32 CATEGORY:=Libraries
33 TITLE:=check
34 URL:=http://check.sourceforge.net/
35 endef
36
37 define Package/check/description
38 unit testing library
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 -s libcheck.so libcheck_pic.so
49 endef
50
51 define Build/InstallDev
52 mkdir -p $(1)
53 cp -r $(PKG_INSTALL_DIR)/* $(1)
54 endef
55
56 define Package/check/install
57 mkdir -p $(1)
58 cp -r $(PKG_INSTALL_DIR)/* $(1)
59 endef
60
61 $(eval $(call BuildPackage,check))