c68177c2be8de22f9b89e41cb85ca0531ea0930d
[feed/video.git] / frameworks / qt5quick2-controls2 / Makefile
1 #
2 # Copyright (C) 2015 OpenWrt
3 # Author: Mirko Vogt <mirko@openwrt.org>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=qt5quick2-controls2
11 PKG_VERSION:=5.8.0-rc
12 PKG_RELEASE:=1
13 PKG_MD5SUM:=54fc452366663b4b1120ac9fb95bfb6b
14
15 PKG_SYS_NAME:=qtquickcontrols2-opensource-src-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_SYS_NAME).tar.xz
17 PKG_SOURCE_URL:=http://download.qt-project.org/development_releases/qt/$(basename $(PKG_VERSION))/$(PKG_VERSION)/submodules
18
19 PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_SYS_NAME)
20 PKG_BUILD_PARALLEL:=1
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/nls.mk
25 -include $(STAGING_DIR)/host/mk/qmake.mk
26
27 define Package/qt5quick2-controls2
28 SECTION:=video-frameworks
29 CATEGORY:=Video
30 SUBMENU:=Frameworks and Toolkits
31 TITLE:=qt5quick2-controls2
32 URL:=http://qt.io
33 MAINTAINER:=Mirko Vogt <mirko@openwrt.org>
34 DEPENDS:=+qt5quick2-quick
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default,qtquickcontrols2)
39 endef
40
41 define Build/InstallDev
42 $(call Build/Install/HostFiles,$(1))
43 $(call Build/Install/Headers,$(1))
44 $(call Build/Install/Libs,$(1),*)
45 endef
46
47 define Package/qt5quick2-controls2/install
48 $(call Build/Install/Libs,$(1),libQt5QuickTemplates2)
49 $(call Build/Install/Libs,$(1),libQt5QuickControls2)
50
51 $(INSTALL_DIR) \
52 $(1)/usr/lib/qt5/qml/QtQuick
53
54 $(CP) \
55 $(PKG_INSTALL_DIR)/usr/lib/qt5/qml/QtQuick/* \
56 $(1)/usr/lib/qt5/qml/QtQuick/
57 endef
58
59 define Package/qt5quick2-templates2/install
60 $(call Build/Install/Libs,$(1),libQt5QuickTemplates2)
61 endef
62
63 $(eval $(call BuildPackage,qt5quick2-controls2))