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.4
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=gettext-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNU/gettext
  13. PKG_MD5SUM:=997c9070354eff5517115feaea6038f0
  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. PKG_CHECK_FORMAT_SECURITY:=0
  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_HOST)/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-rpath \
  42. --enable-nls \
  43. --disable-java \
  44. --disable-native-java \
  45. --disable-openmp \
  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))