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
|
|
|
|
PKG_VERSION:=1.11.1
|
2016-05-31 10:58:57 +00:00
|
|
|
PKG_RELEASE:=3
|
2012-10-10 17:57:23 +00:00
|
|
|
|
2016-06-07 09:42:32 +00:00
|
|
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
2012-10-10 17:57:23 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=libiconv-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@GNU/libiconv
|
2016-12-16 16:32:10 +00:00
|
|
|
PKG_HASH:=e78c347a1a0cb15f2648519e9799151f4b4a934b61ad9ee7424478efe2b8257f
|
2012-10-10 17:57:23 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/libiconv-$(PKG_VERSION)
|
2016-05-31 10:58:57 +00:00
|
|
|
PKG_LICENSE:=LGPL-2.0
|
|
|
|
PKG_LICENSE_FILES:=COPYING.LIB
|
2012-10-10 17:57:23 +00:00
|
|
|
|
|
|
|
PKG_FIXUP:=patch-libtool
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libiconv-full/Default
|
|
|
|
URL:=http://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
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libcharset
|
|
|
|
$(call Package/libiconv-full/Default)
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE+= library
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/iconv
|
|
|
|
$(call Package/libiconv-full/Default)
|
|
|
|
DEPENDS:=+libiconv-full +libcharset
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE+= utility
|
|
|
|
endef
|
|
|
|
|
2017-10-24 18:09:37 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC) -DUSE_DOS -std=gnu89
|
2012-10-10 17:57:23 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
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))
|