f72be49830
Remove $(HOST_DIR)/bin/python from SCONS variable to allow each scons package to select their python interpreter. Indeed, most of the scons packages (alljoyn, benejson, gpsd) only supports python2 Fixes: - http://autobuild.buildroot.org/results/b45f9fb69615b80758adeff4571e170c3bd9356b - http://autobuild.buildroot.org/results/13144a7ebd64ef7889312053f06a14047eea232d Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
44 lines
1.3 KiB
Makefile
44 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# alljoyn-tcl
|
|
#
|
|
################################################################################
|
|
|
|
ALLJOYN_TCL_REV = 16.04
|
|
ALLJOYN_TCL_VERSION = $(ALLJOYN_TCL_REV).00a
|
|
ALLJOYN_TCL_SOURCE = ajtcl-$(ALLJOYN_TCL_VERSION)-src.tar.gz
|
|
ALLJOYN_TCL_SITE = \
|
|
https://mirrors.kernel.org/allseenalliance/alljoyn/$(ALLJOYN_TCL_REV)
|
|
# See https://allseenalliance.org/alliance/ip-policy
|
|
ALLJOYN_TCL_LICENSE = ISC
|
|
|
|
ALLJOYN_TCL_DEPENDENCIES = host-python host-scons
|
|
ALLJOYN_TCL_INSTALL_STAGING = YES
|
|
|
|
# AllJoyn Thin Core can be compiled in debug or release mode. By default,
|
|
# AllJoyn Thin Core is built in debug mode.
|
|
ALLJOYN_TCL_VARIANT = release
|
|
|
|
ALLJOYN_TCL_SCONS_OPTS = \
|
|
-j$(PARALLEL_JOBS) \
|
|
V=1 \
|
|
VARIANT=$(ALLJOYN_TCL_VARIANT) \
|
|
CC="$(TARGET_CC)" \
|
|
CXX="$(TARGET_CXX)"
|
|
|
|
define ALLJOYN_TCL_BUILD_CMDS
|
|
cd $(@D); $(HOST_DIR)/bin/python2 $(SCONS) $(ALLJOYN_TCL_SCONS_OPTS)
|
|
endef
|
|
|
|
define ALLJOYN_TCL_INSTALL_STAGING_CMDS
|
|
cp -a $(@D)/dist/lib/lib* $(STAGING_DIR)/usr/lib/
|
|
cp -a $(@D)/dist/include/* $(STAGING_DIR)/usr/include/
|
|
endef
|
|
|
|
# Only install AllJoyn Thin Core dynamic libraries into target directory
|
|
define ALLJOYN_TCL_INSTALL_TARGET_CMDS
|
|
cp -a $(@D)/dist/lib/lib*.so* $(TARGET_DIR)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(generic-package))
|