2
0

Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #
  2. # Copyright (C) 2010 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
  9. PKG_RELEASE:=2
  10. PKG_LICENSE:=FSFULLR
  11. PKG_LICENSE_FILES:=LICENSE
  12. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  13. include $(INCLUDE_DIR)/package.mk
  14. include $(INCLUDE_DIR)/host-build.mk
  15. define Package/libintl
  16. SECTION:=libs
  17. CATEGORY:=Libraries
  18. TITLE:=Stub header for the GNU Internationalization library
  19. endef
  20. define Build/Configure
  21. endef
  22. define Build/Compile
  23. endef
  24. define Build/InstallDev
  25. $(INSTALL_DIR) $(1)/usr/lib/libintl-stub/include
  26. $(INSTALL_DATA) $(PKG_BUILD_DIR)/include/libintl.h $(1)/usr/lib/libintl-stub/include/
  27. $(INSTALL_DIR) $(1)/usr/share/aclocal
  28. $(INSTALL_DATA) $(PKG_BUILD_DIR)/m4/* $(1)/usr/share/aclocal/
  29. endef
  30. define Host/Prepare
  31. mkdir -p $(HOST_BUILD_DIR)
  32. endef
  33. define Host/Compile
  34. endef
  35. define Host/Install
  36. $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/include
  37. $(INSTALL_DATA) ./src/include/libintl.h $(STAGING_DIR_HOSTPKG)/include/
  38. $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/share/aclocal
  39. $(INSTALL_DATA) ./src/m4/* $(STAGING_DIR_HOSTPKG)/share/aclocal/
  40. endef
  41. define Package/libintl/install
  42. $(INSTALL_DIR) $(1)/tmp
  43. touch $(1)/tmp/.libintl-placeholder
  44. endef
  45. $(eval $(call HostBuild))
  46. $(eval $(call BuildPackage,libintl))