1 ################################################################################
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; \
27 define QTUIO_CONFIGURE_CMDS
28 cd
$(@D
)/src
&& $(TARGET_MAKE_ENV
) $(QT_QMAKE
)
29 $(QTUIO_CONFIGURE_EXAMPLES
)
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; \
40 define QTUIO_BUILD_CMDS
41 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)/src
42 $(QTUIO_BUILD_EXAMPLES
)
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 ; \
54 ifeq ($(BR2_PACKAGE_QT_STATIC
),y
)
55 QTUIO_LIBRARY
= libqTUIO.a
57 QTUIO_LIBRARY
= libqTUIO.so
*
58 define QTUIO_INSTALL_TARGET_LIBRARY
59 cp
-dpf
$(@D
)/lib
/$(QTUIO_LIBRARY
) $(TARGET_DIR
)/usr
/lib
63 define QTUIO_INSTALL_TARGET_CMDS
64 $(QTUIO_INSTALL_TARGET_LIBRARY
)
65 $(QTUIO_INSTALL_EXAMPLES
)
68 define QTUIO_INSTALL_STAGING_CMDS
69 cp
-dpf
$(@D
)/lib
/$(QTUIO_LIBRARY
) $(STAGING_DIR
)/usr
/lib
72 $(eval
$(generic-package
))