Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 <jow@openwrt.org>
  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/Prepare
  21. $(INSTALL_DIR) $(PKG_BUILD_DIR)
  22. $(CP) ./src/* $(PKG_BUILD_DIR)/
  23. endef
  24. define Build/Configure
  25. endef
  26. define Build/Compile
  27. endef
  28. define Build/InstallDev
  29. $(INSTALL_DIR) $(1)/usr/lib/libintl-stub/include
  30. $(INSTALL_DATA) $(PKG_BUILD_DIR)/include/libintl.h $(1)/usr/lib/libintl-stub/include/
  31. $(INSTALL_DIR) $(1)/usr/share/aclocal
  32. $(INSTALL_DATA) $(PKG_BUILD_DIR)/m4/* $(1)/usr/share/aclocal/
  33. endef
  34. define Host/Prepare
  35. mkdir -p $(HOST_BUILD_DIR)
  36. endef
  37. define Host/Compile
  38. endef
  39. define Host/Install
  40. $(INSTALL_DIR) $(STAGING_DIR_HOST)/include
  41. $(INSTALL_DATA) ./src/include/libintl.h $(STAGING_DIR_HOST)/include/
  42. $(INSTALL_DIR) $(STAGING_DIR_HOST)/share/aclocal
  43. $(INSTALL_DATA) ./src/m4/* $(STAGING_DIR_HOST)/share/aclocal/
  44. endef
  45. define Package/libintl/install
  46. $(INSTALL_DIR) $(1)/tmp
  47. touch $(1)/tmp/.libintl-placeholder
  48. endef
  49. $(eval $(call HostBuild))
  50. $(eval $(call BuildPackage,libintl))