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.

66 lines
1.7 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:=4.0.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-local-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/scons
  13. PKG_HASH:=23c9d37a008b525bdedfe2666a28b9466c4c945d8ba379873cfd0b9006a3d618
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=scons-LICENSE
  17. PKG_HOST_ONLY:=1
  18. HOST_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/host-build.mk
  21. HOST_UNPACK:=$(DECOMPRESS_CMD) $(HOST_TAR) -C $(HOST_BUILD_DIR) $(TAR_OPTIONS)
  22. define Package/scons
  23. SECTION:=devel
  24. CATEGORY:=Development
  25. TITLE:=scons
  26. URL:=https://scons.org/
  27. BUILDONLY:=1
  28. endef
  29. define Package/scons/description
  30. SCons is an Open Source software construction tool—that is, a
  31. next-generation build tool. Think of SCons as an improved, cross-platform
  32. substitute for the classic Make utility with integrated functionality
  33. similar to autoconf/automake and compiler caches such as ccache. In short,
  34. SCons is an easier, more reliable and faster way to build software.
  35. endef
  36. define Host/Configure
  37. endef
  38. define Host/Compile
  39. endef
  40. define Host/Install
  41. $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin
  42. for py in $(HOST_BUILD_DIR)/*.py; do \
  43. bin=$$$${py%.py} ; \
  44. $(CP) $$$$py $$$$bin ; \
  45. $(SED) '1c#!$(STAGING_DIR_HOST)/bin/python' $$$$bin ; \
  46. $(INSTALL_BIN) $$$$bin $(STAGING_DIR_HOSTPKG)/bin/ ; \
  47. done
  48. $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/lib/scons
  49. $(CP) $(HOST_BUILD_DIR)/scons-local-$(PKG_VERSION)/* $(STAGING_DIR_HOSTPKG)/lib/scons/
  50. endef
  51. $(eval $(call BuildPackage,scons))
  52. $(eval $(call HostBuild))