2010-12-19 04:38:28 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2010 OpenWrt.org
|
|
|
|
#
|
2011-01-01 23:11:48 +00:00
|
|
|
# This Makefile and the code shipped in src/ is free software, licensed
|
|
|
|
# under the GNU Lesser General Public License, version 2.1 and later.
|
|
|
|
# See src/COPYING for more information.
|
|
|
|
#
|
|
|
|
# Refer to src/COPYRIGHT for copyright statements on the source files.
|
2010-12-19 04:38:28 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libiconv
|
2011-01-01 23:11:48 +00:00
|
|
|
PKG_RELEASE:=3
|
2010-12-19 04:38:28 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libiconv
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2011-01-01 23:11:48 +00:00
|
|
|
TITLE:=Tiny drop-in replacement for the GNU Character set conversion library
|
2010-12-19 04:38:28 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
$(INSTALL_DIR) $(PKG_BUILD_DIR)
|
|
|
|
$(CP) ./src/* $(PKG_BUILD_DIR)/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2010-12-22 06:37:48 +00:00
|
|
|
$(TARGET_CC) -c $(PKG_BUILD_DIR)/iconv.c -o $(PKG_BUILD_DIR)/iconv.o -I$(PKG_BUILD_DIR)/include $(FPIC)
|
2010-12-19 04:38:28 +00:00
|
|
|
$(TARGET_CROSS)ar rcs $(PKG_BUILD_DIR)/libiconv.a $(PKG_BUILD_DIR)/iconv.o
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/libiconv.a $(1)/usr/lib/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/include/iconv.h $(1)/usr/include/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/aclocal
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/m4/* $(1)/usr/share/aclocal/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libiconv/install
|
|
|
|
$(INSTALL_DIR) $(1)/tmp
|
|
|
|
touch $(1)/tmp/.libiconv-placeholder
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libiconv))
|