2012-10-10 17:57:23 +00:00
|
|
|
#
|
2015-06-25 12:13:57 +00:00
|
|
|
# Copyright (C) 2006-2015 OpenWrt.org
|
2012-10-10 17:57:23 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libiconv-full
|
libiconv-full: update to 1.17
Release Notes:
- The libiconv library is now licensed under the LGPL version 2.1,
instead of the LGPL version 2.0. The iconv program continues to
be licensed under GPL version 3.
- Added converters for many single-byte EBCDIC encodings: IBM-{037,
273,277,278,280,282,284,285,297,423,424,425,500,838,870,871,875},
IBM-{880,905,924,1025,1026,1047,1097,1112,1122,1123,1130,1132,1137,
1140}, IBM-{1141,1142,1143,1144,1145,1146,1147,1148,1149,1153,1154,
1155,1156,1157}, IBM-{1158,1160,1164,1165,1166,4971,12712,16804}.
They are available through the configure option
'--enable-extra-encodings'.
Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-06-27 22:46:33 +00:00
|
|
|
PKG_VERSION:=1.17
|
2020-07-20 13:47:31 +00:00
|
|
|
PKG_RELEASE:=1
|
2012-10-10 17:57:23 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=libiconv-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@GNU/libiconv
|
libiconv-full: update to 1.17
Release Notes:
- The libiconv library is now licensed under the LGPL version 2.1,
instead of the LGPL version 2.0. The iconv program continues to
be licensed under GPL version 3.
- Added converters for many single-byte EBCDIC encodings: IBM-{037,
273,277,278,280,282,284,285,297,423,424,425,500,838,870,871,875},
IBM-{880,905,924,1025,1026,1047,1097,1112,1122,1123,1130,1132,1137,
1140}, IBM-{1141,1142,1143,1144,1145,1146,1147,1148,1149,1153,1154,
1155,1156,1157}, IBM-{1158,1160,1164,1165,1166,4971,12712,16804}.
They are available through the configure option
'--enable-extra-encodings'.
Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-06-27 22:46:33 +00:00
|
|
|
PKG_HASH:=8f74213b56238c85a50a5329f77e06198771e70dd9a739779f4c02f65d971313
|
2012-10-10 17:57:23 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/libiconv-$(PKG_VERSION)
|
2021-10-21 23:09:59 +00:00
|
|
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/libiconv-$(PKG_VERSION)
|
2020-07-20 13:47:31 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
|
|
|
PKG_LICENSE:=LGPL-2.1-or-later
|
2016-05-31 10:58:57 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING.LIB
|
2012-10-10 17:57:23 +00:00
|
|
|
|
|
|
|
PKG_FIXUP:=patch-libtool
|
2020-11-26 00:45:56 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2012-10-10 17:57:23 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-10-21 23:09:59 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2012-10-10 17:57:23 +00:00
|
|
|
|
|
|
|
define Package/libiconv-full/Default
|
2020-07-20 13:47:31 +00:00
|
|
|
URL:=https://www.gnu.org/software/libiconv/
|
2012-10-10 17:57:23 +00:00
|
|
|
TITLE:=Character set conversion
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libiconv-full
|
|
|
|
$(call Package/libiconv-full/Default)
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE+= library
|
2019-01-22 18:17:32 +00:00
|
|
|
ABI_VERSION:=2
|
2012-10-10 17:57:23 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libcharset
|
|
|
|
$(call Package/libiconv-full/Default)
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE+= library
|
2019-01-22 18:17:32 +00:00
|
|
|
ABI_VERSION:=1
|
2012-10-10 17:57:23 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/iconv
|
|
|
|
$(call Package/libiconv-full/Default)
|
|
|
|
DEPENDS:=+libiconv-full +libcharset
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE+= utility
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-rpath \
|
|
|
|
--enable-relocatable
|
|
|
|
|
2021-10-21 23:09:59 +00:00
|
|
|
HOST_CONFIGURE_ARGS += \
|
|
|
|
--disable-shared \
|
|
|
|
--with-pic
|
|
|
|
|
2012-10-10 17:57:23 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/libiconv-full/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/iconv.h $(1)/usr/lib/libiconv-full/include/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/libiconv-full/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.{a,so*} $(1)/usr/lib/libiconv-full/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.{a,so*} $(1)/usr/lib/libiconv-full/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libcharset/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2019-01-22 18:17:32 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.so.* $(1)/usr/lib/
|
2012-10-10 17:57:23 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libiconv-full/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2019-01-22 18:17:32 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.so.* $(1)/usr/lib/
|
2012-10-10 17:57:23 +00:00
|
|
|
endef
|
|
|
|
|
2012-12-05 18:05:04 +00:00
|
|
|
define Package/iconv/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/iconv $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
2012-10-10 17:57:23 +00:00
|
|
|
$(eval $(call BuildPackage,libcharset))
|
|
|
|
$(eval $(call BuildPackage,libiconv-full))
|
|
|
|
$(eval $(call BuildPackage,iconv))
|
2021-10-21 23:09:59 +00:00
|
|
|
$(eval $(call HostBuild))
|