[packages] move libiconv to libiconv-full
[openwrt/svn-archive/archive.git] / libs / libiconv-full / 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:=libiconv-full
11 PKG_VERSION:=1.11.1
12 PKG_RELEASE:=1
13
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)
18
19 PKG_FIXUP = libtool no-autoreconf
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libiconv-full/Default
24 URL:=http://www.gnu.org/software/libiconv/
25 TITLE:=Character set conversion
26 endef
27
28 define Package/libiconv-full
29 $(call Package/libiconv-full/Default)
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE+= library
33 endef
34
35 define Package/libcharset
36 $(call Package/libiconv-full/Default)
37 SECTION:=libs
38 CATEGORY:=Libraries
39 TITLE+= library
40 endef
41
42 define Package/iconv
43 $(call Package/libiconv-full/Default)
44 DEPENDS:=+libiconv-full +libcharset
45 SECTION:=utils
46 CATEGORY:=Utilities
47 TITLE+= utility
48 endef
49
50 TARGET_CFLAGS += $(FPIC) -DUSE_DOS
51
52 CONFIGURE_ARGS += \
53 --enable-shared \
54 --enable-static \
55 --disable-rpath \
56 --enable-relocatable
57
58 define Build/Compile
59 $(MAKE) -C $(PKG_BUILD_DIR) \
60 CC="$(TARGET_CC)" \
61 DESTDIR="$(PKG_INSTALL_DIR)" \
62 install
63 endef
64
65 define Build/InstallDev
66 $(INSTALL_DIR) $(1)/usr/include/libiconv-full
67 $(CP) $(PKG_INSTALL_DIR)/usr/include/iconv.h $(1)/usr/include/libiconv-full/
68 $(INSTALL_DIR) $(1)/usr/lib/libiconv-full
69 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.{a,so*} $(1)/usr/lib/libiconv-full/
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.{a,so*} $(1)/usr/lib/libiconv-full/
71 endef
72
73 define Package/libcharset/install
74 $(INSTALL_DIR) $(1)/usr/lib
75 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.so* $(1)/usr/lib/
76 endef
77
78 define Package/libiconv-full/install
79 $(INSTALL_DIR) $(1)/usr/lib
80 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.so* $(1)/usr/lib/
81 endef
82
83 $(eval $(call BuildPackage,libcharset))
84 $(eval $(call BuildPackage,libiconv-full))
85 $(eval $(call BuildPackage,iconv))