package qt5quick2-controls2
authorMirko Vogt <mirko-dev@nanl.de>
Wed, 23 Nov 2016 14:31:26 +0000 (15:31 +0100)
committerMirko Vogt <mirko-dev@nanl.de>
Wed, 23 Nov 2016 14:37:36 +0000 (15:37 +0100)
frameworks/qt5quick2-controls2/Makefile [new file with mode: 0644]

diff --git a/frameworks/qt5quick2-controls2/Makefile b/frameworks/qt5quick2-controls2/Makefile
new file mode 100644 (file)
index 0000000..1c32318
--- /dev/null
@@ -0,0 +1,62 @@
+#
+# Copyright (C) 2015 OpenWrt
+# Author: Mirko Vogt <mirko@openwrt.org>
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=qt5quick2-controls2
+PKG_VERSION:=5.8.0-beta
+PKG_RELEASE:=1
+PKG_MD5SUM:=391d8bfb6de2e0a270bfc98e1801d46e
+
+PKG_SYS_NAME:=qtquickcontrols2-opensource-src-$(PKG_VERSION)
+PKG_SOURCE:=$(PKG_SYS_NAME).tar.xz
+PKG_SOURCE_URL:=http://download.qt-project.org/development_releases/qt/$(basename $(PKG_VERSION))/$(PKG_VERSION)/submodules
+
+PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_SYS_NAME)
+PKG_BUILD_PARALLEL:=1
+PKG_BUILD_DEPENDS:=qt5base
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/nls.mk
+-include $(STAGING_DIR)/host/mk/qmake.mk
+
+define Package/qt5quick2-controls2
+  SECTION:=video-frameworks
+  CATEGORY:=Video
+  SUBMENU:=Frameworks and Toolkits
+  TITLE:=qt5quick2-controls2
+  URL:=http://qt.io
+  MAINTAINER:=Mirko Vogt <mirko@openwrt.org>
+endef
+
+define Build/Configure
+       $(call Build/Configure/Default,qtquickcontrols2)
+endef
+
+define Build/InstallDev
+       $(call Build/Install/HostFiles,$(1))
+       $(call Build/Install/Headers,$(1))
+       $(call Build/Install/Libs,$(1),*)
+endef
+
+define Package/qt5quick2-controls2/install
+       $(call Build/Install/Libs,$(1),libQt5QuickControls2)
+
+       $(INSTALL_DIR) \
+         $(1)/usr/lib/qt5/qml/QtQuick
+
+       $(CP) \
+         $(PKG_INSTALL_DIR)/usr/lib/qt5/qml/QtQuick/* \
+         $(1)/usr/lib/qt5/qml/QtQuick/
+endef
+
+define Package/qt5quick2-templates2/install
+       $(call Build/Install/Libs,$(1),libQt5QuickTemplates2)
+endef
+
+$(eval $(call BuildPackage,qt5quick2-controls2))