blogic 1120328d15 InstallDev should be using (1) and not (STAGING_DIR)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@9173 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-07 03:20:26 +00:00

64 lines
1.5 KiB
Makefile

#
# 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_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/libiconv
PKG_MD5SUM:=0c99a05e0c3c153bac1c960f78711155
include $(INCLUDE_DIR)/package.mk
define Package/libiconv
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Character set conversion library
URL:=http://www.gnu.org/software/libiconv/
endef
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
--disable-rpath \
define Build/Configure
$(call Build/Configure/Default)
$(call libtool_disable_rpath)
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) CC="$(TARGET_CC)"
$(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
$(MAKE) -C $(PKG_BUILD_DIR) \
includedir="$(PKG_INSTALL_DIR)/usr/include" \
libdir="$(PKG_INSTALL_DIR)/usr/lib" \
install-lib
endef
define Build/InstallDev
mkdir -p $(1)/usr/lib/libiconv/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/iconv.h $(1)/usr/lib/libiconv/include/
mkdir -p $(1)/usr/lib/libiconv/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.{a,so*} $(1)/usr/lib/libiconv/lib/
endef
define Build/UninstallDev
rm -rf $(STAGING_DIR)/usr/lib/libiconv
endef
define Package/libiconv/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libiconv))