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

Archive Download this file



interactive