mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 06:51:51 +08:00
048a5088c5
Update from 4.0.1 to 4.10.1. Notable changes across releases: - 4.10.1: switch to cProfile (profile module deprecated in Python 3.15); fix Literal membership tests and sequence type handling - 4.10.0: fix MSVC initialization delays in GitHub Actions; fix variant directory components in CompilationDatabase; improve Ninja quoting - 4.9.0: drop Python 3.6 support; add comprehensive type hints for Node classes; add clang/clang++ to default tool search order; support binary and octal integer constants in C preprocessor - 4.8.0: replace black/flake8 with ruff; add MSVC_TOOLSET_VERSION, MSVC_SDK_VERSION, MSVC_SPECTRE_LIBS construction variables - 4.7.0: make NewParallel scheduler the default; CacheDir writes execute in parallel outside taskmaster critical section; add Python 3.13 support - 4.6.0: add Visual Studio 2026 and ARM64 host configuration support; enhanced type hints throughout Environment and Node classes - 4.5.0: add ValidateOptions(); refactor Taskmaster into a package; migrate to Python's logging module; extend ninja tool with daemon support - 4.4.0: add MSVC_USE_SETTINGS and multiple MSVC configuration variables; implement global policy settings for MSVC version handling - 4.3.0: add SConsEnvironmentError exception; improved MSVC detection; Python 3.12 compatibility fixes - 4.2.0: Performance improvements in Node processing; improved MSVC support for VS 2022; better parallel build handling Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
67 lines
1.7 KiB
Makefile
67 lines
1.7 KiB
Makefile
#
|
|
# Copyright (C) 2011-2015 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=scons
|
|
PKG_VERSION:=4.10.1
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-local-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=@SF/scons
|
|
PKG_HASH:=97e124eccc6e71f03227ed158d56a5f2391d7cc25f1771f4511633a1e81a2015
|
|
|
|
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
|
|
PKG_LICENSE:=MIT
|
|
PKG_LICENSE_FILES:=scons-LICENSE
|
|
|
|
PKG_HOST_ONLY:=1
|
|
HOST_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
HOST_UNPACK:=$(DECOMPRESS_CMD) $(HOST_TAR) -C $(HOST_BUILD_DIR) $(TAR_OPTIONS)
|
|
|
|
define Package/scons
|
|
SECTION:=devel
|
|
CATEGORY:=Development
|
|
TITLE:=scons
|
|
URL:=https://scons.org/
|
|
BUILDONLY:=1
|
|
endef
|
|
|
|
define Package/scons/description
|
|
SCons is an Open Source software construction tool—that is, a
|
|
next-generation build tool. Think of SCons as an improved, cross-platform
|
|
substitute for the classic Make utility with integrated functionality
|
|
similar to autoconf/automake and compiler caches such as ccache. In short,
|
|
SCons is an easier, more reliable and faster way to build software.
|
|
endef
|
|
|
|
define Host/Configure
|
|
endef
|
|
|
|
define Host/Compile
|
|
endef
|
|
|
|
define Host/Install
|
|
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin
|
|
for py in $(HOST_BUILD_DIR)/*.py; do \
|
|
bin=$$$${py%.py} ; \
|
|
$(CP) $$$$py $$$$bin ; \
|
|
$(SED) '1c#!$(STAGING_DIR_HOST)/bin/python' $$$$bin ; \
|
|
$(INSTALL_BIN) $$$$bin $(STAGING_DIR_HOSTPKG)/bin/ ; \
|
|
done
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/lib/scons
|
|
$(CP) $(HOST_BUILD_DIR)/scons-local-$(PKG_VERSION)/* $(STAGING_DIR_HOSTPKG)/lib/scons/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,scons))
|
|
$(eval $(call HostBuild))
|