fix 'check' compile on avr32
[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 EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libintl/include/ -I$(STAGING_DIR)/usr/lib/libiconv/include/ -fPIC
20 EXTRA_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/usr/lib/libintl/lib/ -L$(STAGING_DIR)/usr/lib/libiconv/lib/
21
22 define Package/check
23 SECTION:=lib
24 CATEGORY:=Libraries
25 TITLE:=check
26 URL:=http://sf.net
27 DEPENDS:=+libxml2
28 endef
29
30 define Package/check/description
31 unit testinglibrary
32 endef
33
34 define Build/Configure
35 $(CP) $(SCRIPT_DIR)/config.* $(PKG_BUILD_DIR)/build-aux/
36 $(call Build/Configure/Default)
37 endef
38
39 define Build/Compile
40 cd $(PKG_BUILD_DIR) ; DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) all install
41 cd $(PKG_INSTALL_DIR)/usr/lib/ ; ln -s libcheck.so libcheck_pic.so
42 endef
43
44 define Build/InstallDev
45 mkdir -p $(1)
46 cp -r $(PKG_INSTALL_DIR)/* $(1)
47 endef
48
49 define Package/check/install
50 mkdir -p $(1)
51 cp -r $(PKG_INSTALL_DIR)/* $(1)
52 endef
53
54 $(eval $(call BuildPackage,check))