You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.4 KiB

  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.1.1
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=@SF/scons \
  12. https://fossies.org/linux/misc/
  13. PKG_HASH:=4cea417fdd7499a36f407923d03b4b7000b0f9e8fd7b31b316b9ce7eba9143a5
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_MAINTAINER:=
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/host-build.mk
  19. define Package/scons
  20. SECTION:=devel
  21. CATEGORY:=Development
  22. TITLE:=scons
  23. HIDDEN:=1
  24. endef
  25. define Package/scons/description
  26. SCons is an Open Source software construction tool—that is, a
  27. next-generation build tool. Think of SCons as an improved, cross-platform
  28. substitute for the classic Make utility with integrated functionality
  29. similar to autoconf/automake and compiler caches such as ccache. In short,
  30. SCons is an easier, more reliable and faster way to build software.
  31. endef
  32. define Host/Configure
  33. endef
  34. define Host/Compile
  35. endef
  36. define Host/Install
  37. ./files/pywrap.sh $(HOST_BUILD_DIR)/setup.py install --prefix=$(STAGING_DIR_HOST)
  38. rm -f $(STAGING_DIR_HOST)/bin/scons*.py
  39. for bin in $(STAGING_DIR_HOST)/bin/scons*; do \
  40. mv "$$$$bin" "$$$$bin.py"; \
  41. cp ./files/pywrap.sh "$$$$bin"; \
  42. done
  43. endef
  44. $(eval $(call BuildPackage,scons))
  45. $(eval $(call HostBuild))