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.

61 lines
1.6 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.2
  10. PKG_SOURCE:=$(PKG_NAME)-local-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=@SF/scons
  12. PKG_HASH:=642e90860b746fa18fac08c7a22de6bfa86110ae7c56d7f136f7e5fb0d8f4f44
  13. PKG_LICENSE:=MIT
  14. PKG_LICENSE_FILES:=scons-LICENSE
  15. PKG_MAINTAINER:=
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/host-build.mk
  18. HOST_UNPACK:=$(DECOMPRESS_CMD) $(HOST_TAR) -C $(HOST_BUILD_DIR) $(TAR_OPTIONS)
  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. $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin
  38. for py in $(HOST_BUILD_DIR)/*.py; do \
  39. bin=$$$${py%.py} ; \
  40. $(CP) $$$$py $$$$bin ; \
  41. $(SED) '1c#!$(STAGING_DIR_HOST)/bin/python' $$$$bin ; \
  42. $(INSTALL_BIN) $$$$bin $(STAGING_DIR_HOSTPKG)/bin/ ; \
  43. done
  44. $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/lib/scons
  45. $(CP) $(HOST_BUILD_DIR)/scons-local-$(PKG_VERSION)/* $(STAGING_DIR_HOSTPKG)/lib/scons/
  46. endef
  47. $(eval $(call BuildPackage,scons))
  48. $(eval $(call HostBuild))