buildrootschalter/package/scons/scons.mk
Thomas Petazzoni 3083ea8922 scons: expose SCONS variable, pointing to host scons
Just like we have AUTOMAKE, AUTOCONF or QT_QMAKE, let the scons
package provide a SCONS variable that points to the scons host binary.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2012-07-23 23:23:27 +02:00

17 lines
424 B
Makefile

SCONS_VERSION = 2.0.1
SCONS_SOURCE = scons-$(SCONS_VERSION).tar.gz
SCONS_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/scons
define HOST_SCONS_BUILD_CMDS
(cd $(@D); python setup.py build)
endef
define HOST_SCONS_INSTALL_CMDS
(cd $(@D); python setup.py install --prefix=$(HOST_DIR)/usr)
endef
$(eval $(host-generic-package))
# variables used by other packages
SCONS = $(HOST_DIR)/usr/bin/scons