[packages] libtorrent: apply fix from [22233] to armeb as well
[openwrt/svn-archive/archive.git] / libs / ezxml / Makefile
1 #
2 # Copyright (C) 2006-2009 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:=ezxml
11 PKG_VERSION:=0.8.6
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/ezxml
16 PKG_MD5SUM:=e22ae17a0bd82dfa2a66f9876f1a8fd7
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/ezxml/Default
21 TITLE:=ezXML
22 URL:=http://ezxml.sourceforge.net/
23 endef
24
25 define Package/libezxml
26 $(call Package/ezxml/Default)
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE+= (library)
30 endef
31
32 define Package/libezxml/description
33 ezXML is a fast and lightweight C library for parsing XML documents.
34 endef
35
36 TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
37
38 TARGET_CFLAGS += $(FPIC) -D_GNU_SOURCE
39
40 define Build/InstallDev
41 $(INSTALL_DIR) $(1)/usr/include
42 $(INSTALL_DATA) $(PKG_BUILD_DIR)/ezxml.h $(1)/usr/include/
43
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(CP) $(PKG_BUILD_DIR)/libezxml.{a,so} $(1)/usr/lib/
46 endef
47
48 define Package/libezxml/install
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_BUILD_DIR)/libezxml.so $(1)/usr/lib/
51 endef
52
53 $(eval $(call BuildPackage,libezxml))