Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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:=1
  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. endef
  31. TARGET_CFLAGS += $(FPIC)
  32. ifneq ($(HOST_OS),Linux)
  33. TARGET_CFLAGS += -I$(STAGING_DIR_HOSTPKG)/include
  34. endif
  35. ifdef CONFIG_USE_MUSL
  36. TARGET_CFLAGS += -D__UCLIBC__
  37. endif
  38. CONFIGURE_ARGS += \
  39. --enable-shared \
  40. --enable-static \
  41. --disable-libasprintf \
  42. --disable-rpath \
  43. --enable-nls \
  44. --disable-java \
  45. --disable-native-java \
  46. --disable-openmp \
  47. --disable-curses \
  48. --with-included-gettext \
  49. --without-libintl-prefix \
  50. --without-libexpat-prefix \
  51. --without-emacs
  52. HOST_CONFIGURE_ARGS += \
  53. --disable-shared \
  54. --enable-static \
  55. --disable-libasprintf \
  56. --disable-rpath \
  57. --disable-java \
  58. --disable-native-java \
  59. --disable-openmp \
  60. --without-emacs \
  61. --without-libxml2-prefix
  62. HOST_CONFIGURE_VARS += \
  63. EMACS="no" \
  64. am_cv_lib_iconv=no \
  65. am_cv_func_iconv=no \
  66. ac_cv_header_iconv_h=no \
  67. HOST_CFLAGS += $(HOST_FPIC)
  68. define Build/InstallDev
  69. $(INSTALL_DIR) $(1)/usr/lib/libintl-full/include
  70. $(CP) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/lib/libintl-full/include/
  71. $(INSTALL_DIR) $(1)/usr/lib/libintl-full/lib
  72. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib/libintl-full/lib/
  73. $(INSTALL_DIR) $(1)/usr/share/aclocal
  74. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
  75. $(SED) '/read dummy/d' $(STAGING_DIR_HOSTPKG)/bin/gettextize
  76. endef
  77. define Package/libintl-full/install
  78. $(INSTALL_DIR) $(1)/usr/lib
  79. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so* $(1)/usr/lib/
  80. endef
  81. $(eval $(call HostBuild))
  82. $(eval $(call BuildPackage,libintl-full))