Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #
  2. # Copyright (C) 2006-2009 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libiconv-full
  9. PKG_VERSION:=1.11.1
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
  12. PKG_SOURCE:=libiconv-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=@GNU/libiconv
  14. PKG_MD5SUM:=d42b97f6ef5dd0ba4469d520ed732fed
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/libiconv-$(PKG_VERSION)
  16. PKG_FIXUP:=patch-libtool
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/libiconv-full/Default
  19. URL:=http://www.gnu.org/software/libiconv/
  20. TITLE:=Character set conversion
  21. endef
  22. define Package/libiconv-full
  23. $(call Package/libiconv-full/Default)
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE+= library
  27. endef
  28. define Package/libcharset
  29. $(call Package/libiconv-full/Default)
  30. SECTION:=libs
  31. CATEGORY:=Libraries
  32. TITLE+= library
  33. endef
  34. define Package/iconv
  35. $(call Package/libiconv-full/Default)
  36. DEPENDS:=+libiconv-full +libcharset
  37. SECTION:=utils
  38. CATEGORY:=Utilities
  39. TITLE+= utility
  40. endef
  41. TARGET_CFLAGS += $(FPIC) -DUSE_DOS
  42. CONFIGURE_ARGS += \
  43. --enable-shared \
  44. --enable-static \
  45. --disable-rpath \
  46. --enable-relocatable
  47. define Build/Compile
  48. $(MAKE) -C $(PKG_BUILD_DIR) \
  49. CC="$(TARGET_CC)" \
  50. DESTDIR="$(PKG_INSTALL_DIR)" \
  51. install
  52. endef
  53. define Build/InstallDev
  54. $(INSTALL_DIR) $(1)/usr/lib/libiconv-full/include
  55. $(CP) $(PKG_INSTALL_DIR)/usr/include/iconv.h $(1)/usr/lib/libiconv-full/include/
  56. $(INSTALL_DIR) $(1)/usr/lib/libiconv-full/lib
  57. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.{a,so*} $(1)/usr/lib/libiconv-full/lib/
  58. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.{a,so*} $(1)/usr/lib/libiconv-full/lib/
  59. endef
  60. define Package/libcharset/install
  61. $(INSTALL_DIR) $(1)/usr/lib
  62. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.so* $(1)/usr/lib/
  63. endef
  64. define Package/libiconv-full/install
  65. $(INSTALL_DIR) $(1)/usr/lib
  66. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.so* $(1)/usr/lib/
  67. endef
  68. define Package/iconv/install
  69. $(INSTALL_DIR) $(1)/usr/bin
  70. $(CP) $(PKG_INSTALL_DIR)/usr/bin/iconv $(1)/usr/bin/
  71. endef
  72. $(eval $(call BuildPackage,libcharset))
  73. $(eval $(call BuildPackage,libiconv-full))
  74. $(eval $(call BuildPackage,iconv))