Port libiconv to -ng
git-svn-id: svn://svn.openwrt.org/openwrt/packages@4350 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1e17a97ad0
commit
359e90d6a2
66
libs/libiconv/Makefile
Normal file
66
libs/libiconv/Makefile
Normal file
@ -0,0 +1,66 @@
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
# $Id$
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=libiconv
|
||||
PKG_VERSION:=1.9.1
|
||||
PKG_RELEASE:=1
|
||||
PKG_MD5SUM:=0c99a05e0c3c153bac1c960f78711155
|
||||
|
||||
PKG_SOURCE_URL:=@GNU/libiconv
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_CAT:=zcat
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/libiconv
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=character set conversion library
|
||||
DESCRIPTION:=character set conversion library
|
||||
URL:=http://www.gnu.org/software/libiconv/
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
$(call Build/Configure/Default)
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
CC=$(TARGET_CC)
|
||||
rm -rf $(PKG_INSTALL_DIR)
|
||||
mkdir -p $(PKG_INSTALL_DIR)
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
libdir="$(PKG_INSTALL_DIR)/usr/lib" \
|
||||
includedir="$(PKG_INSTALL_DIR)/usr/include" \
|
||||
install-lib
|
||||
endef
|
||||
|
||||
define Package/libiconv/install
|
||||
install -d -m0755 $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.so* $(1)/usr/lib/
|
||||
chmod 0644 $(1)/usr/lib/*
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
mkdir -p $(STAGING_DIR)/usr/include/iconv
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/iconv.h $(STAGING_DIR)/usr/include/iconv
|
||||
mkdir -p $(STAGING_DIR)/usr/lib/iconv
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.* $(STAGING_DIR)/usr/lib/iconv
|
||||
endef
|
||||
|
||||
define Build/UninstallDev
|
||||
rm -rf \
|
||||
$(STAGING_DIR)/usr/include/iconv \
|
||||
$(STAGING_DIR)/usr/lib/iconv
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libiconv))
|
2962
libs/libiconv/patches/100-strip_charsets.patch
Normal file
2962
libs/libiconv/patches/100-strip_charsets.patch
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user