2014-09-29 23:43:20 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# canfestival
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-04-17 23:34:05 +02:00
|
|
|
CANFESTIVAL_VERSION = 7740ac6fdedc23e1ed6908d3d7db54833c88572b
|
|
|
|
CANFESTIVAL_SITE = http://dev.automforge.net/CanFestival-3
|
|
|
|
CANFESTIVAL_SITE_METHOD = hg
|
2017-03-30 15:43:34 +02:00
|
|
|
CANFESTIVAL_LICENSE = LGPL-2.1+
|
2014-09-29 23:43:20 +02:00
|
|
|
CANFESTIVAL_LICENSE_FILES = COPYING LICENCE
|
|
|
|
CANFESTIVAL_INSTALL_STAGING = YES
|
|
|
|
CANFESTIVAL_INSTALLED-y = src drivers
|
|
|
|
CANFESTIVAL_INSTALLED-$(BR2_PACKAGE_CANFESTIVAL_INSTALL_EXAMPLES) += examples
|
|
|
|
|
2014-10-11 00:25:47 +02:00
|
|
|
# Canfestival provides and used some python modules and scripts only compliant
|
|
|
|
# with python2.
|
|
|
|
CANFESTIVAL_DEPENDENCIES = host-python
|
|
|
|
|
2014-09-29 23:43:20 +02:00
|
|
|
# canfestival uses its own hand-written build-system. Though there is
|
|
|
|
# a configure script, it does not use the autotools, so, we use the
|
|
|
|
# generic-package infrastructure.
|
|
|
|
define CANFESTIVAL_CONFIGURE_CMDS
|
|
|
|
cd $(@D) && \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) ./configure \
|
|
|
|
--target=unix \
|
|
|
|
--arch=$(BR2_ARCH) \
|
|
|
|
--timers=unix \
|
|
|
|
--binutils=$(TARGET_CROSS) \
|
|
|
|
--cc="$(TARGET_CC)" \
|
|
|
|
--cxx="$(TARGET_CC)" \
|
|
|
|
--ld="$(TARGET_CC)" \
|
|
|
|
--prefix=/usr \
|
|
|
|
--can=$(BR2_PACKAGE_CANFESTIVAL_DRIVER) \
|
|
|
|
$(call qstrip,$(BR2_PACKAGE_CANFESTIVAL_ADDITIONAL_OPTIONS))
|
|
|
|
endef
|
|
|
|
|
|
|
|
define CANFESTIVAL_BUILD_CMDS
|
2015-08-22 23:34:50 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) all \
|
2014-10-11 00:25:47 +02:00
|
|
|
PYTHON=$(HOST_DIR)/usr/bin/python2
|
2014-09-29 23:43:20 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define CANFESTIVAL_INSTALL_TARGET_CMDS
|
|
|
|
for d in $(CANFESTIVAL_INSTALLED-y) ; do \
|
2015-08-22 23:34:50 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE1) -C $(@D)/$$d install \
|
2014-10-11 00:25:47 +02:00
|
|
|
PYTHON=$(HOST_DIR)/usr/bin/python2 \
|
|
|
|
DESTDIR=$(TARGET_DIR) || exit 1 ; \
|
2014-09-29 23:43:20 +02:00
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
|
|
|
define CANFESTIVAL_INSTALL_STAGING_CMDS
|
|
|
|
for d in $(CANFESTIVAL_INSTALLED-y) ; do \
|
2015-08-22 23:34:50 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE1) -C $(@D)/$$d install \
|
2014-10-11 00:25:47 +02:00
|
|
|
PYTHON=$(HOST_DIR)/usr/bin/python2 \
|
2014-09-29 23:43:20 +02:00
|
|
|
DESTDIR=$(STAGING_DIR) || exit 1 ; \
|
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|