package/x11r7/xdriver_xf86-video-siliconmotion: bump version to 1.7.9
[buildroot-gz.git] / package / canfestival / canfestival.mk
blob61578d31625b8cac457448e9e314539e038d34b8
1 ################################################################################
3 # canfestival
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
17 # with python2.
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
24 cd $(@D) && \
25 $(TARGET_CONFIGURE_OPTS) ./configure \
26 --target=unix \
27 --arch=$(BR2_ARCH) \
28 --timers=unix \
29 --binutils=$(TARGET_CROSS) \
30 --cc="$(TARGET_CC)" \
31 --cxx="$(TARGET_CC)" \
32 --ld="$(TARGET_CC)" \
33 --prefix=/usr \
34 --can=$(BR2_PACKAGE_CANFESTIVAL_DRIVER) \
35 $(call qstrip,$(BR2_PACKAGE_CANFESTIVAL_ADDITIONAL_OPTIONS))
36 endef
38 define CANFESTIVAL_BUILD_CMDS
39 $(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) all \
40 PYTHON=$(HOST_DIR)/usr/bin/python2
41 endef
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 ; \
48 done
49 endef
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 ; \
56 done
57 endef
59 $(eval $(generic-package))