Makefile 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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.6
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=gettext-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNU/gettext
  13. PKG_MD5SUM:=69d79254ee3b41df23f41c2f4fd720d9
  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 <jow@openwrt.org>
  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_HOST)/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-rpath \
  41. --enable-nls \
  42. --disable-java \
  43. --disable-native-java \
  44. --disable-openmp \
  45. --with-included-gettext \
  46. --without-libintl-prefix \
  47. --without-libexpat-prefix \
  48. --without-emacs
  49. HOST_CONFIGURE_ARGS += \
  50. --with-included-libxml --without-libxml2-prefix --with-included-libcroco
  51. define Build/InstallDev
  52. $(INSTALL_DIR) $(1)/usr/lib/libintl-full/include
  53. $(CP) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/lib/libintl-full/include/
  54. $(INSTALL_DIR) $(1)/usr/lib/libintl-full/lib
  55. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib/libintl-full/lib/
  56. $(INSTALL_DIR) $(1)/usr/share/aclocal
  57. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
  58. endef
  59. define Package/libintl-full/install
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so* $(1)/usr/lib/
  62. endef
  63. $(eval $(call HostBuild))
  64. $(eval $(call BuildPackage,libintl-full))