2 # Copyright (C) 2016 OpenWrt.org
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.
8 ### This package shares the same code as `qt5quick2-GLstubs`.
9 ### However unfortunately we can't handle both packages within
10 ### one Makefile, as it would create a circular dependency:
11 ### `qt5base` depends on `qt5quick2-GLstubs`, but
12 ### `qt5quick2-2d-sw-renderer` depends on `qt5quick2` which
13 ### depends on `qt5base`.
14 ### `qt5quick2-2d-sw-renderer` and `qt5quick2-GLstubs` sharing
15 ### the same Makefile results in `qt5base` depending on `qt5quick2`
18 include $(TOPDIR
)/rules.mk
20 PKG_NAME
:=qt5quick2-2d-sw-renderer
23 MD5SUM
:=41bfcb5ab6d7a820687c4208beeb7057
25 PKG_SYS_NAME
:=qtdeclarative-render2d-opensource-src-
$(PKG_VERSION
)
26 PKG_SOURCE
:=$(PKG_SYS_NAME
).
tar.xz
27 PKG_SOURCE_URL
:=http
://download.qt-project.org
/official_releases
/qt
/$(basename $(PKG_VERSION
))/$(PKG_VERSION
)/submodules
29 PKG_BUILD_DIR
=$(BUILD_DIR
)/$(PKG_SYS_NAME
)
31 PKG_BUILD_DEPENDS
:=qt5base qt5quick2
35 include $(INCLUDE_DIR
)/package.mk
36 -include $(STAGING_DIR
)/host
/mk
/qmake.mk
38 define Package
/qt5quick2-2d-sw-renderer
39 SECTION
:=video-frameworks
41 SUBMENU
:=Frameworks and Toolkits
42 TITLE
:=Qt5Quick2
2d Software renderer
43 DEPENDS
:=+qt5quick2-quick
45 MAINTAINER
:=Mirko Vogt
<mirko@openwrt.org
>
48 define Build
/Configure
49 $(call Build
/Configure
/Default
,scenegraph-raster
)
52 define Build
/InstallDev
53 $(call Build
/Install
/Plugins
,$(1),scenegraph
,libsoftwarecontext
)
56 define Package
/qt5quick2-2d-sw-renderer
/install
57 $(call Build
/Install
/Plugins
,$(1),scenegraph
,libsoftwarecontext
)
60 $(eval
$(call BuildPackage
,qt5quick2-2d-sw-renderer
))