Makefile 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=0
  21. PKG_BUILD_DEPENDS:=gettext-full/host
  22. include $(INCLUDE_DIR)/package.mk
  23. include $(INCLUDE_DIR)/host-build.mk
  24. define Package/libintl-full
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. TITLE:=GNU Internationalization library
  28. URL:=http://www.gnu.org/software/gettext/
  29. endef
  30. TARGET_CFLAGS += $(FPIC)
  31. ifneq ($(HOST_OS),Linux)
  32. TARGET_CFLAGS += -I$(STAGING_DIR_HOSTPKG)/include
  33. endif
  34. ifdef CONFIG_USE_MUSL
  35. TARGET_CFLAGS += -D__UCLIBC__
  36. endif
  37. CONFIGURE_ARGS += \
  38. --enable-shared \
  39. --enable-static \
  40. --disable-libasprintf \
  41. --disable-rpath \
  42. --enable-nls \
  43. --disable-java \
  44. --disable-native-java \
  45. --disable-openmp \
  46. --disable-curses \
  47. --with-included-gettext \
  48. --without-libintl-prefix \
  49. --without-libexpat-prefix \
  50. --without-emacs
  51. HOST_CONFIGURE_ARGS += \
  52. --disable-shared \
  53. --enable-static \
  54. --disable-libasprintf \
  55. --disable-rpath \
  56. --disable-java \
  57. --disable-native-java \
  58. --disable-openmp \
  59. --without-emacs \
  60. --without-libxml2-prefix
  61. HOST_CONFIGURE_VARS += \
  62. EMACS="no" \
  63. am_cv_lib_iconv=no \
  64. am_cv_func_iconv=no \
  65. ac_cv_header_iconv_h=no \
  66. define Build/InstallDev
  67. $(INSTALL_DIR) $(1)/usr/lib/libintl-full/include
  68. $(CP) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/lib/libintl-full/include/
  69. $(INSTALL_DIR) $(1)/usr/lib/libintl-full/lib
  70. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib/libintl-full/lib/
  71. $(INSTALL_DIR) $(1)/usr/share/aclocal
  72. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
  73. $(SED) '/read dummy/d' $(STAGING_DIR_HOSTPKG)/bin/gettextize
  74. endef
  75. define Package/libintl-full/install
  76. $(INSTALL_DIR) $(1)/usr/lib
  77. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so* $(1)/usr/lib/
  78. endef
  79. $(eval $(call HostBuild))
  80. $(eval $(call BuildPackage,libintl-full))