Root/tools/scons/Makefile

1#
2# Copyright (C) 2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=scons
11PKG_VERSION:=2.1.0
12
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14PKG_SOURCE_URL:=@SF/scons
15PKG_MD5SUM:=47daf989e303a045b76c11236df719df
16
17include $(INCLUDE_DIR)/host-build.mk
18
19define Host/Configure
20endef
21
22define Host/Compile
23endef
24
25define Host/Install
26    ./files/pywrap.sh $(HOST_BUILD_DIR)/setup.py install --prefix=$(STAGING_DIR_HOST)
27    rm -f $(STAGING_DIR_HOST)/bin/scons*.py
28    for bin in $(STAGING_DIR_HOST)/bin/scons*; do \
29        mv "$$$$bin" "$$$$bin.py"; \
30        cp ./files/pywrap.sh "$$$$bin"; \
31    done
32endef
33
34$(eval $(call HostBuild))
35

Archive Download this file



interactive