1
0

Makefile 822 B

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