b46a077582f95423a79b4ec15e54be9c421bcf23
[openwrt/openwrt.git] / tools / scons / Makefile
1 #
2 # Copyright (C) 2011-2014 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.3.1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=@SF/scons
15 PKG_MD5SUM:=60a3cfb98b661df9f4406c61b5686bd7
16
17 include $(INCLUDE_DIR)/host-build.mk
18
19 define Host/Configure
20 endef
21
22 define Host/Compile
23 endef
24
25 define 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
32 endef
33
34 $(eval $(call HostBuild))