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.5
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=@SF/scons \
  12. http://fossies.org/linux/misc/
  13. PKG_HASH:=df676f23dc6d4bfa384fc389d95dcd21ab907e6349d4c848958ba4befb73c73e
  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))