Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #
  2. # Copyright (C) 2006-2016 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:=icu4c
  9. PKG_VERSION:=58.2
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-58_2-src.tgz
  12. PKG_SOURCE_URL:=http://download.icu-project.org/files/$(PKG_NAME)/$(PKG_VERSION)
  13. PKG_MD5SUM:=fac212b32b7ec7ab007a12dff1f3aea1
  14. PKG_LICENSE:=ICU-1.8.1+
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  20. PKG_BUILD_DEPENDS:=icu/host
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/host-build.mk
  23. TAR_OPTIONS+= icu/source --strip-components 2
  24. TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
  25. define Package/icu
  26. SECTION:=libs
  27. CATEGORY:=Libraries
  28. TITLE:=International Components for Unicode
  29. URL:=http://icu-project.org
  30. DEPENDS:=+libstdcpp +libpthread
  31. endef
  32. CONFIGURE_CMD:= ./runConfigureICU
  33. CONFIGURE_VARS:=
  34. CONFIGURE_ARGS:= \
  35. Linux/gcc \
  36. --disable-debug \
  37. --enable-release \
  38. --enable-shared \
  39. --enable-static \
  40. --enable-draft \
  41. --enable-renaming \
  42. --disable-tracing \
  43. --disable-extras \
  44. --enable-dyload \
  45. --disable-tools \
  46. --disable-tests \
  47. --disable-samples \
  48. --with-cross-build="$(HOST_BUILD_DIR)" \
  49. --prefix=/usr
  50. HOST_CONFIGURE_CMD:= ./runConfigureICU
  51. HOST_CONFIGURE_VARS:=
  52. HOST_CONFIGURE_ARGS:= \
  53. Linux/gcc \
  54. --disable-debug \
  55. --enable-release \
  56. --enable-shared \
  57. --enable-static \
  58. --enable-draft \
  59. --enable-renaming \
  60. --disable-tracing \
  61. --disable-extras \
  62. --enable-dyload \
  63. --prefix=$(HOST_BUILD_PREFIX)
  64. define Build/InstallDev
  65. $(INSTALL_DIR) \
  66. $(1)/usr/include
  67. $(CP) \
  68. $(PKG_INSTALL_DIR)/usr/include/* \
  69. $(1)/usr/include/
  70. $(INSTALL_DIR) \
  71. $(1)/usr/lib
  72. $(CP) \
  73. $(PKG_INSTALL_DIR)/usr/lib/* \
  74. $(1)/usr/lib/
  75. endef
  76. define Host/install
  77. endef
  78. define Package/icu/install
  79. $(INSTALL_DIR) \
  80. $(1)/usr/lib
  81. $(CP) \
  82. $(PKG_INSTALL_DIR)/usr/lib/*.so.* \
  83. $(1)/usr/lib/
  84. endef
  85. $(eval $(call BuildPackage,icu))
  86. $(eval $(call HostBuild))