fc325bff02a612996bc861c2cae1adee0e5ccc83
[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:=3.0.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:=24475e38d39c19683bc88054524df018fe6949d70fbd4c69e298d39a0269f173
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))