2 # Copyright (C) 2006-2015 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_MAINTAINER
:=Jo-Philipp Wich
<jow@openwrt.org
>
16 PKG_SOURCE
:=libiconv-
$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=@GNU
/libiconv
18 PKG_MD5SUM
:=d42b97f6ef5dd0ba4469d520ed732fed
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/libiconv-
$(PKG_VERSION
)
21 PKG_LICENSE_FILES
:=COPYING.LIB
23 PKG_FIXUP
:=patch-libtool
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/libiconv-full
/Default
28 URL
:=http
://www.gnu.org
/software
/libiconv
/
29 TITLE
:=Character set conversion
32 define Package
/libiconv-full
33 $(call Package
/libiconv-full
/Default
)
39 define Package
/libcharset
40 $(call Package
/libiconv-full
/Default
)
47 $(call Package
/libiconv-full
/Default
)
48 DEPENDS
:=+libiconv-full
+libcharset
54 TARGET_CFLAGS
+= $(FPIC
) -DUSE_DOS
63 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
65 DESTDIR
="$(PKG_INSTALL_DIR)" \
69 define Build
/InstallDev
70 $(INSTALL_DIR
) $(1)/usr
/lib
/libiconv-full
/include
71 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/iconv.h
$(1)/usr
/lib
/libiconv-full
/include/
73 $(INSTALL_DIR
) $(1)/usr
/lib
/libiconv-full
/lib
74 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libcharset.
{a
,so
*} $(1)/usr
/lib
/libiconv-full
/lib
/
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libiconv.
{a
,so
*} $(1)/usr
/lib
/libiconv-full
/lib
/
78 define Package
/libcharset
/install
79 $(INSTALL_DIR
) $(1)/usr
/lib
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libcharset.so
* $(1)/usr
/lib
/
83 define Package
/libiconv-full
/install
84 $(INSTALL_DIR
) $(1)/usr
/lib
85 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libiconv.so
* $(1)/usr
/lib
/
88 define Package
/iconv
/install
89 $(INSTALL_DIR
) $(1)/usr
/bin
90 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/iconv
$(1)/usr
/bin
/
93 $(eval
$(call BuildPackage
,libcharset
))
94 $(eval
$(call BuildPackage
,libiconv-full
))
95 $(eval
$(call BuildPackage
,iconv
))