From patchwork Sun Dec 30 22:54:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [6/8] scons: add host-python2-if-needed dependency From: Samuel Martin X-Patchwork-Id: 208804 Message-Id: <413c44afc4ad4f5f3908f94e151562b9642d0555.1356907750.git.s.martin49@gmail.com> To: buildroot@busybox.net Date: Sun, 30 Dec 2012 23:54:13 +0100 Also, ensure $(HOST_DIR)/usr/bin is in the PATH during the configure phase. Signed-off-by: Samuel Martin --- package/scons/scons.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package/scons/scons.mk b/package/scons/scons.mk index 79fd6b1..e3ada92 100644 --- a/package/scons/scons.mk +++ b/package/scons/scons.mk @@ -4,12 +4,16 @@ SCONS_SITE = http://downloads.sourceforge.net/project/scons/scons/$(SCONS_VERSIO SCONS_LICENSE = MIT SCONS_LICENSE_FILES = LICENSE.txt +# Because Scons is not python3-friendly, we have to ensure that +HOST_SCONS_DEPENDENCIES = host-python2-if-needed + define HOST_SCONS_BUILD_CMDS - (cd $(@D); python setup.py build) + (cd $(@D); $(HOST_CONFIGURE_OPTS) python setup.py build) endef define HOST_SCONS_INSTALL_CMDS - (cd $(@D); python setup.py install --prefix=$(HOST_DIR)/usr \ + (cd $(@D) ; $(HOST_CONFIGURE_OPTS) python setup.py install \ + --prefix=$(HOST_DIR)/usr \ --install-lib=$(HOST_DIR)/usr/lib/scons-$(SCONS_VERSION)) endef