1
0

Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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:=gettext-full
  9. PKG_VERSION:=0.19.8.1
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=gettext-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNU/gettext
  13. PKG_HASH:=105556dbc5c3fbbc2aa0edb46d22d055748b6f5c7cd7a8d99f8e7eb84e938be4
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/gettext-$(PKG_VERSION)
  15. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/gettext-$(PKG_VERSION)
  16. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  17. PKG_LICENSE:=GPL-3.0+
  18. PKG_CPE_ID:=cpe:/a:gnu:gettext
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. PKG_BUILD_PARALLEL:=0
  22. PKG_BUILD_DEPENDS:=gettext-full/host
  23. include $(INCLUDE_DIR)/package.mk
  24. include $(INCLUDE_DIR)/host-build.mk
  25. define Package/libintl-full
  26. SECTION:=libs
  27. CATEGORY:=Libraries
  28. TITLE:=GNU Internationalization library
  29. URL:=http://www.gnu.org/software/gettext/
  30. ABI_VERSION:=8
  31. endef
  32. TARGET_CFLAGS += $(FPIC)
  33. ifneq ($(HOST_OS),Linux)
  34. TARGET_CFLAGS += -I$(STAGING_DIR_HOSTPKG)/include
  35. endif
  36. ifdef CONFIG_USE_MUSL
  37. TARGET_CFLAGS += -D__UCLIBC__
  38. endif
  39. CONFIGURE_ARGS += \
  40. --enable-shared \
  41. --enable-static \
  42. --disable-libasprintf \
  43. --disable-rpath \
  44. --enable-nls \
  45. --disable-java \
  46. --disable-native-java \
  47. --disable-openmp \
  48. --disable-curses \
  49. --with-included-gettext \
  50. --without-libintl-prefix \
  51. --without-libexpat-prefix \
  52. --without-emacs
  53. HOST_CONFIGURE_ARGS += \
  54. --disable-shared \
  55. --enable-static \
  56. --disable-libasprintf \
  57. --disable-rpath \
  58. --disable-java \
  59. --disable-native-java \
  60. --disable-openmp \
  61. --without-emacs \
  62. --without-libxml2-prefix
  63. HOST_CONFIGURE_VARS += \
  64. EMACS="no" \
  65. am_cv_lib_iconv=no \
  66. am_cv_func_iconv=no \
  67. ac_cv_header_iconv_h=no \
  68. HOST_CFLAGS += $(HOST_FPIC)
  69. define Build/InstallDev
  70. $(INSTALL_DIR) $(1)/usr/lib/libintl-full/include
  71. $(CP) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/lib/libintl-full/include/
  72. $(INSTALL_DIR) $(1)/usr/lib/libintl-full/lib
  73. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib/libintl-full/lib/
  74. $(INSTALL_DIR) $(1)/usr/share/aclocal
  75. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
  76. $(SED) '/read dummy/d' $(STAGING_DIR_HOSTPKG)/bin/gettextize
  77. endef
  78. define Package/libintl-full/install
  79. $(INSTALL_DIR) $(1)/usr/lib
  80. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so.* $(1)/usr/lib/
  81. endef
  82. $(eval $(call HostBuild))
  83. $(eval $(call BuildPackage,libintl-full))