From e6ca923f5eb137f17d4ce0d3528a01389ee209a4 Mon Sep 17 00:00:00 2001 From: Mirko Vogt Date: Mon, 8 Jun 2015 19:50:30 +0200 Subject: [PATCH] add Qt5 script --- frameworks/qt5script/Makefile | 86 +++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 frameworks/qt5script/Makefile diff --git a/frameworks/qt5script/Makefile b/frameworks/qt5script/Makefile new file mode 100644 index 0000000..ea6afed --- /dev/null +++ b/frameworks/qt5script/Makefile @@ -0,0 +1,86 @@ +# +# Copyright (C) 2015 OpenWrt +# Author: Mirko Vogt +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=qt5script +PKG_VERSION:=5.4.2 +PKG_RELEASE:=1 +PKG_MD5SUM:=a615a02ab48e1e8e94c161d65f6af2ad + +PKG_SYS_NAME:=qtscript-opensource-src-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_SYS_NAME).tar.xz +PKG_SOURCE_URL:=http://download.qt-project.org/official_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/qt5script/Default + SECTION:=video-frameworks + CATEGORY:=Video + SUBMENU:=Frameworks and Toolkits + TITLE:=Qt5script + DEPENDS:=qt5script +qt5base-core + URL:=http://qt.io + MAINTAINER:=Mirko Vogt +endef + +define Package/qt5script + $(call Package/qt5script/Default) + DEPENDS:=+qt5base + MENU:=1 +endef + +define Package/qt5script-script + $(call Package/qt5script/Default) + TITLE+=script +endef + +define Package/qt5script-scriptTools + $(call Package/qt5script/Default) + TITLE+=scriptTools + DEPENDS+=+qt5base-gui +qt5base-widgets +qt5script-script +endef + +define Package/qt5script-examples + $(call Package/qt5script/Default) + TITLE+=examples + DEPENDS+=+qt5script-scriptTools +endef + +define Build/Configure + $(call Build/Configure/Default,qtscript) +endef + +define Build/InstallDev + $(call Build/Install/HostFiles,$(1)) + $(call Build/Install/Headers,$(1)) + $(call Build/Install/Libs,$(1),*) +endef + +define Package/qt5script-script/install + $(call Build/Install/Libs,$(1),libQt5Script) +endef + +define Package/qt5script-scriptTools/install + $(call Build/Install/Libs,$(1),libQt5ScriptTools) +endef + +define Package/qt5script-examples/install + $(call Build/Install/Examples,$(1)) +endef + +$(eval $(call BuildPackage,qt5script)) +$(eval $(call BuildPackage,qt5script-script)) +$(eval $(call BuildPackage,qt5script-scriptTools)) +$(eval $(call BuildPackage,qt5script-examples)) -- 2.30.2