Makefile 2.2 KB

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