Makefile 757 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # Copyright (C) 2011-2014 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:=scons
  9. PKG_VERSION:=2.3.5
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=@SF/scons
  12. PKG_MD5SUM:=8b0d1041266f89b18e47f26d943f8aa5
  13. include $(INCLUDE_DIR)/host-build.mk
  14. define Host/Configure
  15. endef
  16. define Host/Compile
  17. endef
  18. define Host/Install
  19. ./files/pywrap.sh $(HOST_BUILD_DIR)/setup.py install --prefix=$(STAGING_DIR_HOST)
  20. rm -f $(STAGING_DIR_HOST)/bin/scons*.py
  21. for bin in $(STAGING_DIR_HOST)/bin/scons*; do \
  22. mv "$$$$bin" "$$$$bin.py"; \
  23. cp ./files/pywrap.sh "$$$$bin"; \
  24. done
  25. endef
  26. $(eval $(call HostBuild))