2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 PKG_NAME:=libiconv-full
14 PKG_SOURCE:=libiconv-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/libiconv
16 PKG_MD5SUM:=d42b97f6ef5dd0ba4469d520ed732fed
17 PKG_BUILD_DIR:=$(BUILD_DIR)/libiconv-$(PKG_VERSION)
19 PKG_FIXUP:=patch-libtool
21 include $(INCLUDE_DIR)/package.mk
23 define Package/libiconv-full/Default
24 URL:=http://www.gnu.org/software/libiconv/
25 TITLE:=Character set conversion
28 define Package/libiconv-full
29 $(call Package/libiconv-full/Default)
35 define Package/libcharset
36 $(call Package/libiconv-full/Default)
43 $(call Package/libiconv-full/Default)
44 DEPENDS:=+libiconv-full +libcharset
50 TARGET_CFLAGS += $(FPIC) -DUSE_DOS
59 $(MAKE) -C $(PKG_BUILD_DIR) \
61 DESTDIR="$(PKG_INSTALL_DIR)" \
65 define Build/InstallDev
66 $(INSTALL_DIR) $(1)/usr/lib/libiconv-full/include
67 $(CP) $(PKG_INSTALL_DIR)/usr/include/iconv.h $(1)/usr/lib/libiconv-full/include/
69 $(INSTALL_DIR) $(1)/usr/lib/libiconv-full/lib
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.{a,so*} $(1)/usr/lib/libiconv-full/lib/
71 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.{a,so*} $(1)/usr/lib/libiconv-full/lib/
74 define Package/libcharset/install
75 $(INSTALL_DIR) $(1)/usr/lib
76 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.so* $(1)/usr/lib/
79 define Package/libiconv-full/install
80 $(INSTALL_DIR) $(1)/usr/lib
81 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.so* $(1)/usr/lib/
84 $(eval $(call BuildPackage,libcharset))
85 $(eval $(call BuildPackage,libiconv-full))
86 $(eval $(call BuildPackage,iconv))