2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-09-21 22:59:49 +02:00
|
|
|
#
|
2013-06-06 01:53:28 +02:00
|
|
|
# qtuio
|
2012-09-21 22:59:49 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2013-11-02 15:57:28 +01:00
|
|
|
QTUIO_VERSION = abe4973ff60654aad9df7037c4ca15c45f811d24
|
2014-05-05 19:20:33 +02:00
|
|
|
QTUIO_SITE = $(call github,x29a,qTUIO,$(QTUIO_VERSION))
|
2012-09-21 22:59:49 +02:00
|
|
|
QTUIO_INSTALL_STAGING = YES
|
|
|
|
QTUIO_DEPENDENCIES = qt
|
|
|
|
|
|
|
|
QTUIO_LICENSE = GPLv3+
|
|
|
|
QTUIO_LICENSE_FILES = COPYING
|
|
|
|
|
|
|
|
# The pong example needs QtOpenGL support, which might become available
|
|
|
|
# some time in the future. Then add pong to the list of examples.
|
|
|
|
QTUIO_EXAMPLES = dials fingerpaint knobs pinchzoom
|
|
|
|
|
|
|
|
ifeq ($(BR2_QTUIO_EXAMPLES),y)
|
|
|
|
define QTUIO_CONFIGURE_EXAMPLES
|
|
|
|
for example in $(QTUIO_EXAMPLES) ; do \
|
2014-12-03 23:05:44 +01:00
|
|
|
(cd $(@D)/examples/$${example} && $(TARGET_MAKE_ENV) $(QT_QMAKE)) || exit 1; \
|
2012-09-21 22:59:49 +02:00
|
|
|
done
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
|
|
|
define QTUIO_CONFIGURE_CMDS
|
2014-03-19 20:30:08 +01:00
|
|
|
cd $(@D)/src && $(TARGET_MAKE_ENV) $(QT_QMAKE)
|
2012-09-21 22:59:49 +02:00
|
|
|
$(QTUIO_CONFIGURE_EXAMPLES)
|
|
|
|
endef
|
|
|
|
|
|
|
|
ifeq ($(BR2_QTUIO_EXAMPLES),y)
|
|
|
|
define QTUIO_BUILD_EXAMPLES
|
|
|
|
for example in $(QTUIO_EXAMPLES) ; do \
|
2014-12-03 23:05:44 +01:00
|
|
|
$(MAKE) -C $(@D)/examples/$${example} || exit 1; \
|
2012-09-21 22:59:49 +02:00
|
|
|
done
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
|
|
|
define QTUIO_BUILD_CMDS
|
2014-03-19 20:30:08 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/src
|
2012-09-21 22:59:49 +02:00
|
|
|
$(QTUIO_BUILD_EXAMPLES)
|
|
|
|
endef
|
|
|
|
|
|
|
|
# Unfortunately, there is no working "install" target available
|
|
|
|
ifeq ($(BR2_QTUIO_EXAMPLES),y)
|
|
|
|
define QTUIO_INSTALL_EXAMPLES
|
|
|
|
for example in $(QTUIO_EXAMPLES) ; do \
|
2014-12-03 23:05:44 +01:00
|
|
|
$(INSTALL) -D -m 0755 $(@D)/examples/$${example}/$${example} $(TARGET_DIR)/usr/share/qtuio/$${example} || exit 1 ; \
|
2012-09-21 22:59:49 +02:00
|
|
|
done
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
2014-02-17 10:51:03 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_QT_STATIC),y)
|
|
|
|
QTUIO_LIBRARY = libqTUIO.a
|
|
|
|
else
|
|
|
|
QTUIO_LIBRARY = libqTUIO.so*
|
|
|
|
define QTUIO_INSTALL_TARGET_LIBRARY
|
|
|
|
cp -dpf $(@D)/lib/$(QTUIO_LIBRARY) $(TARGET_DIR)/usr/lib
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
2012-09-21 22:59:49 +02:00
|
|
|
define QTUIO_INSTALL_TARGET_CMDS
|
2014-02-17 10:51:03 +01:00
|
|
|
$(QTUIO_INSTALL_TARGET_LIBRARY)
|
2012-09-21 22:59:49 +02:00
|
|
|
$(QTUIO_INSTALL_EXAMPLES)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define QTUIO_INSTALL_STAGING_CMDS
|
2014-02-17 10:51:03 +01:00
|
|
|
cp -dpf $(@D)/lib/$(QTUIO_LIBRARY) $(STAGING_DIR)/usr/lib
|
2012-09-21 22:59:49 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|