summaryrefslogtreecommitdiffstats
path: root/rules/bluez-qt.make
blob: dc18a33bd7280263f323cf6af2a461fccc7c3561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# -*-makefile-*-
#
# Copyright (C) 2019 by Lucas Stach <l.stach@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_BLUEZ_QT) += bluez-qt

#
# Paths and names
#
BLUEZ_QT_VERSION	:= 5.56.0
BLUEZ_QT_MD5		:= 2e2a7b4b5a2efbb2acc9c48f9111291f
BLUEZ_QT		:= bluez-qt-$(BLUEZ_QT_VERSION)
BLUEZ_QT_SUFFIX		:= tar.xz
BLUEZ_QT_URL		:= \
	https://download.kde.org/stable/frameworks/$(basename $(BLUEZ_QT_VERSION))/$(BLUEZ_QT).$(BLUEZ_QT_SUFFIX) \
	https://download.kde.org/Attic/frameworks/$(basename $(BLUEZ_QT_VERSION))/$(BLUEZ_QT).$(BLUEZ_QT_SUFFIX)
BLUEZ_QT_SOURCE		:= $(SRCDIR)/$(BLUEZ_QT).$(BLUEZ_QT_SUFFIX)
BLUEZ_QT_DIR		:= $(BUILDDIR)/$(BLUEZ_QT)
BLUEZ_QT_LICENSE	:= LGPL-2.1-or-later
BLUEZ_QT_LICENSE_FILES	:= file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

BLUEZ_QT_CONF_TOOL	:= cmake
BLUEZ_QT_CONF_OPT	:= \
		$(CROSS_CMAKE_USR) \
		-DBUILD_QCH=OFF \
		-DBUILD_TESTING=OFF \
		-DECM_MKSPECS_INSTALL_DIR=/usr/lib/qt5/mkspecs \
		-DECM_DIR=$(PTXDIST_SYSROOT_HOST)/usr/share/ECM/cmake/

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/bluez-qt.targetinstall:
	@$(call targetinfo)

	@$(call install_init, bluez-qt)
	@$(call install_fixup, bluez-qt,PRIORITY,optional)
	@$(call install_fixup, bluez-qt,SECTION,base)
	@$(call install_fixup, bluez-qt,AUTHOR,"Lucas Stach <l.stach@pengutronix.de>")
	@$(call install_fixup, bluez-qt,DESCRIPTION,missing)

	@$(call install_lib, bluez-qt, 0, 0, 0644, libKF5BluezQt)
	@$(call install_tree, bluez-qt, 0, 0, -, /usr/lib/qt5/qml)

	@$(call install_finish, bluez-qt)

	@$(call touch)

# vim: syntax=make