python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / qtuio / qtuio.mk
blob6238b50f8b46aaf1d88ada5b7f629f4662def82c
1 ################################################################################
3 # qtuio
5 ################################################################################
7 QTUIO_VERSION = abe4973ff60654aad9df7037c4ca15c45f811d24
8 QTUIO_SITE = $(call github,x29a,qTUIO,$(QTUIO_VERSION))
9 QTUIO_INSTALL_STAGING = YES
10 QTUIO_DEPENDENCIES = qt
12 QTUIO_LICENSE = GPLv3+
13 QTUIO_LICENSE_FILES = COPYING
15 # The pong example needs QtOpenGL support, which might become available
16 # some time in the future. Then add pong to the list of examples.
17 QTUIO_EXAMPLES = dials fingerpaint knobs pinchzoom
19 ifeq ($(BR2_QTUIO_EXAMPLES),y)
20 define QTUIO_CONFIGURE_EXAMPLES
21 for example in $(QTUIO_EXAMPLES) ; do \
22 (cd $(@D)/examples/$${example} && $(TARGET_MAKE_ENV) $(QT_QMAKE)) || exit 1; \
23 done
24 endef
25 endif
27 define QTUIO_CONFIGURE_CMDS
28 cd $(@D)/src && $(TARGET_MAKE_ENV) $(QT_QMAKE)
29 $(QTUIO_CONFIGURE_EXAMPLES)
30 endef
32 ifeq ($(BR2_QTUIO_EXAMPLES),y)
33 define QTUIO_BUILD_EXAMPLES
34 for example in $(QTUIO_EXAMPLES) ; do \
35 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/examples/$${example} || exit 1; \
36 done
37 endef
38 endif
40 define QTUIO_BUILD_CMDS
41 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/src
42 $(QTUIO_BUILD_EXAMPLES)
43 endef
45 # Unfortunately, there is no working "install" target available
46 ifeq ($(BR2_QTUIO_EXAMPLES),y)
47 define QTUIO_INSTALL_EXAMPLES
48 for example in $(QTUIO_EXAMPLES) ; do \
49 $(INSTALL) -D -m 0755 $(@D)/examples/$${example}/$${example} $(TARGET_DIR)/usr/share/qtuio/$${example} || exit 1 ; \
50 done
51 endef
52 endif
54 ifeq ($(BR2_PACKAGE_QT_STATIC),y)
55 QTUIO_LIBRARY = libqTUIO.a
56 else
57 QTUIO_LIBRARY = libqTUIO.so*
58 define QTUIO_INSTALL_TARGET_LIBRARY
59 cp -dpf $(@D)/lib/$(QTUIO_LIBRARY) $(TARGET_DIR)/usr/lib
60 endef
61 endif
63 define QTUIO_INSTALL_TARGET_CMDS
64 $(QTUIO_INSTALL_TARGET_LIBRARY)
65 $(QTUIO_INSTALL_EXAMPLES)
66 endef
68 define QTUIO_INSTALL_STAGING_CMDS
69 cp -dpf $(@D)/lib/$(QTUIO_LIBRARY) $(STAGING_DIR)/usr/lib
70 endef
72 $(eval $(generic-package))