scons: new package
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 20 Jul 2011 05:11:52 +0000 (07:11 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 24 Jul 2011 19:37:24 +0000 (21:37 +0200)
Only the host package is supported.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/scons/scons.mk [new file with mode: 0644]

diff --git a/package/scons/scons.mk b/package/scons/scons.mk
new file mode 100644 (file)
index 0000000..f8fe84b
--- /dev/null
@@ -0,0 +1,13 @@
+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,package,scons,host))