procd: make mDNS TXT record parsing more solid
[openwrt/openwrt.git] / package / libs / libiconv-full / Makefile
1 #
2 # Copyright (C) 2006-2015 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.16
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=libiconv-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/libiconv
16 PKG_HASH:=e6a1b1b589654277ee790cce3734f07876ac4ccfaecbee8afa0b649cf529cc04
17 PKG_BUILD_DIR:=$(BUILD_DIR)/libiconv-$(PKG_VERSION)
18
19 PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
20 PKG_LICENSE:=LGPL-2.1-or-later
21 PKG_LICENSE_FILES:=COPYING.LIB
22
23 PKG_FIXUP:=patch-libtool
24 PKG_INSTALL:=1
25 PKG_BUILD_PARALLEL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/libiconv-full/Default
30 URL:=https://www.gnu.org/software/libiconv/
31 TITLE:=Character set conversion
32 endef
33
34 define Package/libiconv-full
35 $(call Package/libiconv-full/Default)
36 SECTION:=libs
37 CATEGORY:=Libraries
38 TITLE+= library
39 ABI_VERSION:=2
40 endef
41
42 define Package/libcharset
43 $(call Package/libiconv-full/Default)
44 SECTION:=libs
45 CATEGORY:=Libraries
46 TITLE+= library
47 ABI_VERSION:=1
48 endef
49
50 define Package/iconv
51 $(call Package/libiconv-full/Default)
52 DEPENDS:=+libiconv-full +libcharset
53 SECTION:=utils
54 CATEGORY:=Utilities
55 TITLE+= utility
56 endef
57
58 CONFIGURE_ARGS += \
59 --enable-shared \
60 --enable-static \
61 --disable-rpath \
62 --enable-relocatable
63
64 define Build/InstallDev
65 $(INSTALL_DIR) $(1)/usr/lib/libiconv-full/include
66 $(CP) $(PKG_INSTALL_DIR)/usr/include/iconv.h $(1)/usr/lib/libiconv-full/include/
67
68 $(INSTALL_DIR) $(1)/usr/lib/libiconv-full/lib
69 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.{a,so*} $(1)/usr/lib/libiconv-full/lib/
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.{a,so*} $(1)/usr/lib/libiconv-full/lib/
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 define Package/iconv/install
84 $(INSTALL_DIR) $(1)/usr/bin
85 $(CP) $(PKG_INSTALL_DIR)/usr/bin/iconv $(1)/usr/bin/
86 endef
87
88 $(eval $(call BuildPackage,libcharset))
89 $(eval $(call BuildPackage,libiconv-full))
90 $(eval $(call BuildPackage,iconv))