Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. --disable-curses \
  46. --with-included-gettext \
  47. --without-libintl-prefix \
  48. --without-libexpat-prefix \
  49. --without-emacs
  50. HOST_CONFIGURE_ARGS += \
  51. --with-included-libxml --without-libxml2-prefix --with-included-libcroco
  52. define Build/InstallDev
  53. $(INSTALL_DIR) $(1)/usr/lib/libintl-full/include
  54. $(CP) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/lib/libintl-full/include/
  55. $(INSTALL_DIR) $(1)/usr/lib/libintl-full/lib
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib/libintl-full/lib/
  57. $(INSTALL_DIR) $(1)/usr/share/aclocal
  58. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
  59. endef
  60. define Package/libintl-full/install
  61. $(INSTALL_DIR) $(1)/usr/lib
  62. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so* $(1)/usr/lib/
  63. endef
  64. $(eval $(call HostBuild))
  65. $(eval $(call BuildPackage,libintl-full))