ramips: rename PSG1218 to match label
[openwrt/openwrt.git] / tools / scons / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=scons
11 PKG_VERSION:=2.5.1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=@SF/scons \
15 http://fossies.org/linux/misc/
16 PKG_HASH:=0b25218ae7b46a967db42f2a53721645b3d42874a65f9552ad16ce26d30f51f2
17
18 include $(INCLUDE_DIR)/host-build.mk
19
20 define Host/Configure
21 endef
22
23 define Host/Compile
24 endef
25
26 define Host/Install
27 ./files/pywrap.sh $(HOST_BUILD_DIR)/setup.py install --prefix=$(STAGING_DIR_HOST)
28 rm -f $(STAGING_DIR_HOST)/bin/scons*.py
29 for bin in $(STAGING_DIR_HOST)/bin/scons*; do \
30 mv "$$$$bin" "$$$$bin.py"; \
31 cp ./files/pywrap.sh "$$$$bin"; \
32 done
33 endef
34
35 $(eval $(call HostBuild))