2006-10-30 13:51:50 +00:00
|
|
|
#
|
2009-03-09 16:05:24 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2006-07-31 14:09:10 +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
|
2010-12-01 19:12:57 +00:00
|
|
|
PKG_VERSION:=1.11.1
|
2006-07-31 14:09:10 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-08 22:57:03 +00:00
|
|
|
PKG_SOURCE_URL:=@GNU/libiconv
|
2010-12-01 19:12:57 +00:00
|
|
|
PKG_MD5SUM:=d42b97f6ef5dd0ba4469d520ed732fed
|
2006-07-31 14:09:10 +00:00
|
|
|
|
2010-12-03 11:56:56 +00:00
|
|
|
PKG_FIXUP = libtool
|
2007-12-27 02:12:04 +00:00
|
|
|
|
2006-07-31 14:09:10 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2009-03-09 16:05:24 +00:00
|
|
|
define Package/libiconv/Default
|
|
|
|
URL:=http://www.gnu.org/software/libiconv/
|
|
|
|
TITLE:=Character set conversion
|
|
|
|
endef
|
|
|
|
|
2006-07-31 14:09:10 +00:00
|
|
|
define Package/libiconv
|
2009-03-09 16:05:24 +00:00
|
|
|
$(call Package/libiconv/Default)
|
2006-07-31 14:09:10 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2009-03-09 16:05:24 +00:00
|
|
|
TITLE+= library
|
2006-07-31 14:09:10 +00:00
|
|
|
endef
|
|
|
|
|
2009-03-09 16:05:24 +00:00
|
|
|
define Package/libcharset
|
|
|
|
$(call Package/libiconv/Default)
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE+= library
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/iconv
|
|
|
|
$(call Package/libiconv/Default)
|
|
|
|
DEPENDS:=+libiconv +libcharset
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE+= utility
|
|
|
|
endef
|
|
|
|
|
|
|
|
TARGET_CFLAGS += $(FPIC) -DUSE_DOS
|
2008-08-06 22:43:15 +00:00
|
|
|
|
2007-10-03 07:21:33 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-rpath \
|
2009-03-09 16:05:24 +00:00
|
|
|
--enable-relocatable
|
2007-10-03 07:21:33 +00:00
|
|
|
|
2006-07-31 14:09:10 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2009-03-09 16:05:24 +00:00
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
install
|
2006-07-31 14:09:10 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/libiconv/include
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/iconv.h $(1)/usr/lib/libiconv/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/libiconv/lib
|
2009-03-09 16:05:24 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.{a,so*} $(1)/usr/lib/libiconv/lib/
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.{a,so*} $(1)/usr/lib/libiconv/lib/
|
2006-07-31 14:09:10 +00:00
|
|
|
endef
|
|
|
|
|
2009-03-09 16:05:24 +00:00
|
|
|
define Package/libcharset/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.so* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-10-08 22:57:03 +00:00
|
|
|
define Package/libiconv/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-03-09 16:05:24 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.so* $(1)/usr/lib/
|
2006-07-31 14:09:10 +00:00
|
|
|
endef
|
|
|
|
|
2009-03-09 16:05:24 +00:00
|
|
|
$(eval $(call BuildPackage,libcharset))
|
2006-07-31 14:09:10 +00:00
|
|
|
$(eval $(call BuildPackage,libiconv))
|
2009-03-09 16:05:24 +00:00
|
|
|
$(eval $(call BuildPackage,iconv))
|