You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2006-2010 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:=55.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-55_1-src.tgz
  12. PKG_SOURCE_URL:=http://download.icu-project.org/files/icu4c/55.1
  13. PKG_MD5SUM:=e2d523df79d6cb7855c2fbe284f4db29
  14. PKG_LICENSE:=ICU-1.8.1+
  15. PKG_LICENSE_FILES:=license.html
  16. PKG_MAINTAINER:=Mirko Vogt <mirko@openwrt.org>
  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. define Build/Configure
  33. $(call Build/Configure/Default, \
  34. --disable-debug \
  35. --enable-release \
  36. --enable-shared \
  37. --enable-static \
  38. --enable-draft \
  39. --enable-renaming \
  40. --disable-tracing \
  41. --disable-extras \
  42. --enable-dyload \
  43. --enable-layout \
  44. --enable-layoutex \
  45. --disable-tools \
  46. --disable-tests \
  47. --disable-samples \
  48. --with-cross-build="$(HOST_BUILD_DIR)" \
  49. )
  50. endef
  51. define Build/InstallDev
  52. $(INSTALL_DIR) \
  53. $(1)/usr/include
  54. $(CP) \
  55. $(PKG_INSTALL_DIR)/usr/include/* \
  56. $(1)/usr/include/
  57. $(INSTALL_DIR) \
  58. $(1)/usr/lib
  59. $(CP) \
  60. $(PKG_INSTALL_DIR)/usr/lib/* \
  61. $(1)/usr/lib/
  62. endef
  63. define Host/install
  64. endef
  65. define Package/icu/install
  66. $(INSTALL_DIR) \
  67. $(1)/usr/lib
  68. $(CP) \
  69. $(PKG_INSTALL_DIR)/usr/lib/*.so.* \
  70. $(1)/usr/lib/
  71. endef
  72. $(eval $(call BuildPackage,icu))
  73. $(eval $(call HostBuild))