buildrootschalter/package/scons/scons.mk
Thomas Petazzoni 0849e8193e package: remove useless arguments from GENTARGETS
Thanks to the pkgparentdir and pkgname functions, we can rewrite the
GENTARGETS macro in a way that avoids the need for each package to
repeat its name and the directory in which it is present.

[Peter: pkgdir->pkgparentdir]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-09-29 23:09:58 +02:00

14 lines
354 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 $(call GENTARGETS,host))