mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-08 12:00:49 +00:00
- Removed following patches: 100-strip_charsets.patch - makes the full variant slim. 101-autotools.patch - this one fails to apply because it was backported from newer versions for 1.11.1. 103-configure_ac_fix.patch - backported from newer versions 200-work-with-libtool2.patch - is not needed anymore, it is done differently in upstream 300-fortify-source-compat.patch - these files are not there anymore - TVHeadend requires working iconv library e.g. transliteration to ASCII and this does not work with libiconv-full currently. There is a simple test, which requires to install iconv package. Before applying this update: root@turris:/# echo ŽluťoučkýKůň | iconv -t ASCII//TRANSLIT//IGNORE luoukK After applying this update: root@turris:~# echo ŽluťoučkýKůň | iconv -t ASCII//TRANSLIT//IGNORE Zlutouck'yKun - Makefile changes: Use HTTPS for their website Fixed deprecated SPDX License Identifier Move PKG_MAINTAINER above PKG_LICENSE Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com> Tested-by: Rosen Penev <rosenp@gmail.com> [malta] Signed-off-by: maurerr <mariusd84@gmail.com>
98 lines
2.3 KiB
Makefile
98 lines
2.3 KiB
Makefile
#
|
|
# Copyright (C) 2006-2015 OpenWrt.org
|
|
#
|
|
# 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
|
|
PKG_VERSION:=1.16
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=libiconv-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=@GNU/libiconv
|
|
PKG_HASH:=e6a1b1b589654277ee790cce3734f07876ac4ccfaecbee8afa0b649cf529cc04
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/libiconv-$(PKG_VERSION)
|
|
|
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
|
PKG_LICENSE:=LGPL-2.1-or-later
|
|
PKG_LICENSE_FILES:=COPYING.LIB
|
|
|
|
PKG_FIXUP:=patch-libtool
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/libiconv-full/Default
|
|
URL:=https://www.gnu.org/software/libiconv/
|
|
TITLE:=Character set conversion
|
|
endef
|
|
|
|
define Package/libiconv-full
|
|
$(call Package/libiconv-full/Default)
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE+= library
|
|
ABI_VERSION:=2
|
|
endef
|
|
|
|
define Package/libcharset
|
|
$(call Package/libiconv-full/Default)
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE+= library
|
|
ABI_VERSION:=1
|
|
endef
|
|
|
|
define Package/iconv
|
|
$(call Package/libiconv-full/Default)
|
|
DEPENDS:=+libiconv-full +libcharset
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE+= utility
|
|
endef
|
|
|
|
TARGET_CFLAGS += $(FPIC) -DUSE_DOS -std=gnu89
|
|
|
|
CONFIGURE_ARGS += \
|
|
--enable-shared \
|
|
--enable-static \
|
|
--disable-rpath \
|
|
--enable-relocatable
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
CC="$(TARGET_CC)" \
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
install
|
|
endef
|
|
|
|
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
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.so.* $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/libiconv-full/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.so.* $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/iconv/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/iconv $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libcharset))
|
|
$(eval $(call BuildPackage,libiconv-full))
|
|
$(eval $(call BuildPackage,iconv))
|