Add libxapian and python-xapian packages.
[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:=http://dl.sourceforge.net/sourceforge/check/
15 PKG_FIXUP:=libtool
16
17 include $(INCLUDE_DIR)/package.mk
18
19 PKG_INSTALL = 1
20
21 TARGET_CFLAGS += $(FPIC) \
22 -I$(STAGING_DIR)/usr/lib/libintl/include \
23 -I$(STAGING_DIR)/usr/lib/libiconv/include
24
25 TARGET_LDFLAGS += \
26 -L$(STAGING_DIR)/usr/lib/libintl/lib \
27 -L$(STAGING_DIR)/usr/lib/libiconv/lib
28
29 define Package/check
30 SECTION:=lib
31 CATEGORY:=Libraries
32 TITLE:=check
33 URL:=http://sf.net
34 DEPENDS:=+libxml2
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))