1 ################################################################################
5 ################################################################################
7 CANFESTIVAL_VERSION
= 7740ac6fdedc23e1ed6908d3d7db54833c88572b
8 CANFESTIVAL_SITE
= http
://dev.automforge.net
/CanFestival-3
9 CANFESTIVAL_SITE_METHOD
= hg
10 CANFESTIVAL_LICENSE
= LGPLv2.1
+
11 CANFESTIVAL_LICENSE_FILES
= COPYING LICENCE
12 CANFESTIVAL_INSTALL_STAGING
= YES
13 CANFESTIVAL_INSTALLED-y
= src drivers
14 CANFESTIVAL_INSTALLED-
$(BR2_PACKAGE_CANFESTIVAL_INSTALL_EXAMPLES
) += examples
16 # Canfestival provides and used some python modules and scripts only compliant
18 CANFESTIVAL_DEPENDENCIES
= host-python
20 # canfestival uses its own hand-written build-system. Though there is
21 # a configure script, it does not use the autotools, so, we use the
22 # generic-package infrastructure.
23 define CANFESTIVAL_CONFIGURE_CMDS
25 $(TARGET_CONFIGURE_OPTS
) .
/configure \
29 --binutils
=$(TARGET_CROSS
) \
31 --cxx="$(TARGET_CC)" \
34 --can
=$(BR2_PACKAGE_CANFESTIVAL_DRIVER
) \
35 $(call qstrip
,$(BR2_PACKAGE_CANFESTIVAL_ADDITIONAL_OPTIONS
))
38 define CANFESTIVAL_BUILD_CMDS
39 $(TARGET_MAKE_ENV
) $(MAKE1
) -C
$(@D
) all \
40 PYTHON
=$(HOST_DIR
)/usr
/bin
/python2
43 define CANFESTIVAL_INSTALL_TARGET_CMDS
44 for d in
$(CANFESTIVAL_INSTALLED-y
) ; do \
45 $(TARGET_MAKE_ENV
) $(MAKE1
) -C
$(@D
)/$$d install \
46 PYTHON
=$(HOST_DIR
)/usr
/bin
/python2 \
47 DESTDIR
=$(TARGET_DIR
) || exit
1 ; \
51 define CANFESTIVAL_INSTALL_STAGING_CMDS
52 for d in
$(CANFESTIVAL_INSTALLED-y
) ; do \
53 $(TARGET_MAKE_ENV
) $(MAKE1
) -C
$(@D
)/$$d install \
54 PYTHON
=$(HOST_DIR
)/usr
/bin
/python2 \
55 DESTDIR
=$(STAGING_DIR
) || exit
1 ; \
59 $(eval
$(generic-package
))