2
0

Makefile 661 B

123456789101112131415161718192021222324252627282930
  1. #
  2. # Copyright (C) 2014 OpenWrt.org
  3. #
  4. # This is free software, licengengetopt under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=gengetopt
  9. PKG_VERSION:=2.22.6
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
  12. PKG_HASH:=30b05a88604d71ef2a42a2ef26cd26df242b41f5b011ad03083143a31d9b01f7
  13. HOST_FIXUP := autoreconf
  14. HOST_BUILD_PARALLEL:=1
  15. include $(INCLUDE_DIR)/host-build.mk
  16. define Host/Install
  17. $(INSTALL_BIN) $(HOST_BUILD_DIR)/src/gengetopt $(STAGING_DIR_HOST)/bin/
  18. endef
  19. define Host/Clean
  20. rm -f $(STAGING_DIR_HOST)/bin/gengetopt
  21. endef
  22. $(eval $(call HostBuild))