1
0

Makefile 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. #
  2. # Copyright (C) 2006-2015 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:=4
  11. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  12. PKG_SOURCE:=libiconv-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=@GNU/libiconv
  14. PKG_HASH:=e78c347a1a0cb15f2648519e9799151f4b4a934b61ad9ee7424478efe2b8257f
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/libiconv-$(PKG_VERSION)
  16. PKG_LICENSE:=LGPL-2.0
  17. PKG_LICENSE_FILES:=COPYING.LIB
  18. PKG_FIXUP:=patch-libtool
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libiconv-full/Default
  21. URL:=http://www.gnu.org/software/libiconv/
  22. TITLE:=Character set conversion
  23. endef
  24. define Package/libiconv-full
  25. $(call Package/libiconv-full/Default)
  26. SECTION:=libs
  27. CATEGORY:=Libraries
  28. TITLE+= library
  29. ABI_VERSION:=2
  30. endef
  31. define Package/libcharset
  32. $(call Package/libiconv-full/Default)
  33. SECTION:=libs
  34. CATEGORY:=Libraries
  35. TITLE+= library
  36. ABI_VERSION:=1
  37. endef
  38. define Package/iconv
  39. $(call Package/libiconv-full/Default)
  40. DEPENDS:=+libiconv-full +libcharset
  41. SECTION:=utils
  42. CATEGORY:=Utilities
  43. TITLE+= utility
  44. endef
  45. TARGET_CFLAGS += $(FPIC) -DUSE_DOS -std=gnu89
  46. CONFIGURE_ARGS += \
  47. --enable-shared \
  48. --enable-static \
  49. --disable-rpath \
  50. --enable-relocatable
  51. define Build/Compile
  52. $(MAKE) -C $(PKG_BUILD_DIR) \
  53. CC="$(TARGET_CC)" \
  54. DESTDIR="$(PKG_INSTALL_DIR)" \
  55. install
  56. endef
  57. define Build/InstallDev
  58. $(INSTALL_DIR) $(1)/usr/lib/libiconv-full/include
  59. $(CP) $(PKG_INSTALL_DIR)/usr/include/iconv.h $(1)/usr/lib/libiconv-full/include/
  60. $(INSTALL_DIR) $(1)/usr/lib/libiconv-full/lib
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.{a,so*} $(1)/usr/lib/libiconv-full/lib/
  62. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.{a,so*} $(1)/usr/lib/libiconv-full/lib/
  63. endef
  64. define Package/libcharset/install
  65. $(INSTALL_DIR) $(1)/usr/lib
  66. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.so.* $(1)/usr/lib/
  67. endef
  68. define Package/libiconv-full/install
  69. $(INSTALL_DIR) $(1)/usr/lib
  70. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.so.* $(1)/usr/lib/
  71. endef
  72. define Package/iconv/install
  73. $(INSTALL_DIR) $(1)/usr/bin
  74. $(CP) $(PKG_INSTALL_DIR)/usr/bin/iconv $(1)/usr/bin/
  75. endef
  76. $(eval $(call BuildPackage,libcharset))
  77. $(eval $(call BuildPackage,libiconv-full))
  78. $(eval $(call BuildPackage,iconv))