Makefile 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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:=3
  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. endef
  30. define Package/libcharset
  31. $(call Package/libiconv-full/Default)
  32. SECTION:=libs
  33. CATEGORY:=Libraries
  34. TITLE+= library
  35. endef
  36. define Package/iconv
  37. $(call Package/libiconv-full/Default)
  38. DEPENDS:=+libiconv-full +libcharset
  39. SECTION:=utils
  40. CATEGORY:=Utilities
  41. TITLE+= utility
  42. endef
  43. TARGET_CFLAGS += $(FPIC) -DUSE_DOS -std=gnu89
  44. CONFIGURE_ARGS += \
  45. --enable-shared \
  46. --enable-static \
  47. --disable-rpath \
  48. --enable-relocatable
  49. define Build/Compile
  50. $(MAKE) -C $(PKG_BUILD_DIR) \
  51. CC="$(TARGET_CC)" \
  52. DESTDIR="$(PKG_INSTALL_DIR)" \
  53. install
  54. endef
  55. define Build/InstallDev
  56. $(INSTALL_DIR) $(1)/usr/lib/libiconv-full/include
  57. $(CP) $(PKG_INSTALL_DIR)/usr/include/iconv.h $(1)/usr/lib/libiconv-full/include/
  58. $(INSTALL_DIR) $(1)/usr/lib/libiconv-full/lib
  59. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.{a,so*} $(1)/usr/lib/libiconv-full/lib/
  60. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.{a,so*} $(1)/usr/lib/libiconv-full/lib/
  61. endef
  62. define Package/libcharset/install
  63. $(INSTALL_DIR) $(1)/usr/lib
  64. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.so* $(1)/usr/lib/
  65. endef
  66. define Package/libiconv-full/install
  67. $(INSTALL_DIR) $(1)/usr/lib
  68. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.so* $(1)/usr/lib/
  69. endef
  70. define Package/iconv/install
  71. $(INSTALL_DIR) $(1)/usr/bin
  72. $(CP) $(PKG_INSTALL_DIR)/usr/bin/iconv $(1)/usr/bin/
  73. endef
  74. $(eval $(call BuildPackage,libcharset))
  75. $(eval $(call BuildPackage,libiconv-full))
  76. $(eval $(call BuildPackage,iconv))