mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
libiconv-full: add host build
Now that libiconv-stub is gone, a replacement for its host build is
needed.
Fixes: c0ba4201f8
("libiconv-stub: remove")
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
This commit is contained in:
parent
b479db9062
commit
5ad67cc513
@ -15,6 +15,7 @@ PKG_SOURCE:=libiconv-$(PKG_VERSION).tar.gz
|
|||||||
PKG_SOURCE_URL:=@GNU/libiconv
|
PKG_SOURCE_URL:=@GNU/libiconv
|
||||||
PKG_HASH:=8f74213b56238c85a50a5329f77e06198771e70dd9a739779f4c02f65d971313
|
PKG_HASH:=8f74213b56238c85a50a5329f77e06198771e70dd9a739779f4c02f65d971313
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/libiconv-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/libiconv-$(PKG_VERSION)
|
||||||
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/libiconv-$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
||||||
PKG_LICENSE:=LGPL-2.1-or-later
|
PKG_LICENSE:=LGPL-2.1-or-later
|
||||||
@ -25,6 +26,7 @@ PKG_INSTALL:=1
|
|||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include $(INCLUDE_DIR)/host-build.mk
|
||||||
|
|
||||||
define Package/libiconv-full/Default
|
define Package/libiconv-full/Default
|
||||||
URL:=https://www.gnu.org/software/libiconv/
|
URL:=https://www.gnu.org/software/libiconv/
|
||||||
@ -61,6 +63,10 @@ CONFIGURE_ARGS += \
|
|||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
--enable-relocatable
|
--enable-relocatable
|
||||||
|
|
||||||
|
HOST_CONFIGURE_ARGS += \
|
||||||
|
--disable-shared \
|
||||||
|
--with-pic
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/libiconv-full/include
|
$(INSTALL_DIR) $(1)/usr/lib/libiconv-full/include
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/iconv.h $(1)/usr/lib/libiconv-full/include/
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/iconv.h $(1)/usr/lib/libiconv-full/include/
|
||||||
@ -88,3 +94,4 @@ endef
|
|||||||
$(eval $(call BuildPackage,libcharset))
|
$(eval $(call BuildPackage,libcharset))
|
||||||
$(eval $(call BuildPackage,libiconv-full))
|
$(eval $(call BuildPackage,libiconv-full))
|
||||||
$(eval $(call BuildPackage,iconv))
|
$(eval $(call BuildPackage,iconv))
|
||||||
|
$(eval $(call HostBuild))
|
||||||
|
Loading…
Reference in New Issue
Block a user