Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gnulib
  3. PKG_CPE_ID:=cpe:/a:gnu:$(PKG_NAME)
  4. PKG_SOURCE_URL=git://git.git.savannah.gnu.org/$(PKG_NAME).git
  5. PKG_SOURCE_DATE:=2025-07-01
  6. PKG_SOURCE_VERSION:=a3151d456d6919c9066b54dc6f680452168165cf# # stable-202501
  7. PKG_MIRROR_HASH:=b695d96e915ecd6c4551436f417cb2c0879aef4ef6318721c8d5cc86cb44ba9d
  8. include $(INCLUDE_DIR)/host-build.mk
  9. define Host/Configure
  10. endef
  11. # On installing the .m4 files, we add a gl_ prefix to prevent any conflict with
  12. # automake. It was found that there is currently a conflict for the cond.m4 that
  13. # is also shipped by automake, making the gnulib one having priority causing
  14. # problem with finding AM_CONDITIONAL macro.
  15. define Host/Install
  16. $(call Host/Uninstall)
  17. $(INSTALL_DIR) $(1)/share/aclocal
  18. for m4 in $(HOST_BUILD_DIR)/m4/*.m4; do \
  19. $(INSTALL_DATA) $(HOST_BUILD_DIR)/m4/$$$$(basename $$$$m4) \
  20. $(1)/share/aclocal/gl_$$$$(basename $$$$m4); \
  21. done
  22. $(CP) $(HOST_BUILD_DIR)/ $(1)/share/gnulib/
  23. ln -sf ../share/gnulib/gnulib-tool $(STAGING_DIR_HOST)/bin/gnulib-tool
  24. endef
  25. define Host/Uninstall
  26. rm -rf $(STAGING_DIR_HOST)/bin/gnulib-tool $(STAGING_DIR_HOST)/share/gnulib
  27. endef
  28. $(eval $(call HostBuild))