[vlc-commits] contribs: Add qtgraphicaleffects

Hugo Beauzée-Luyssen git at videolan.org
Fri Aug 24 17:49:37 CEST 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Aug 24 12:15:17 2018 +0200| [d2f4c89f05b0c68b0e840db31daeaec790925835] | committer: Hugo Beauzée-Luyssen

contribs: Add qtgraphicaleffects

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d2f4c89f05b0c68b0e840db31daeaec790925835
---

 contrib/src/qtgraphicaleffects/SHA512SUMS |  1 +
 contrib/src/qtgraphicaleffects/rules.mak  | 40 +++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)

diff --git a/contrib/src/qtgraphicaleffects/SHA512SUMS b/contrib/src/qtgraphicaleffects/SHA512SUMS
new file mode 100644
index 0000000000..d606a457aa
--- /dev/null
+++ b/contrib/src/qtgraphicaleffects/SHA512SUMS
@@ -0,0 +1 @@
+d3ed8aea4d0c45a887e0b02a5ea0845486cd60b321868520f2153915d2de608d65464947387e17f923b13a3cc7d11530f673c754a9c39a8c0509ed493bf0fc85  qtgraphicaleffects-5.11.0.tar.xz
diff --git a/contrib/src/qtgraphicaleffects/rules.mak b/contrib/src/qtgraphicaleffects/rules.mak
new file mode 100644
index 0000000000..c91b772e9a
--- /dev/null
+++ b/contrib/src/qtgraphicaleffects/rules.mak
@@ -0,0 +1,40 @@
+# QtGraphicalEffects
+
+QTGE_VERSION := 5.11.0
+QTGE_URL := http://download.qt.io/official_releases/qt/5.11/$(QTGE_VERSION)/submodules/qtgraphicaleffects-everywhere-src-$(QTGE_VERSION).tar.xz
+
+DEPS_qtgraphicaleffects += qtdeclarative $(DEPS_qtdeclarative)
+
+ifdef HAVE_WIN32
+PKGS += qtgraphicaleffects
+endif
+
+ifeq ($(call need_pkg,"Qt5QuickControls2"),)
+PKGS_FOUND += qtgraphicaleffects
+endif
+
+$(TARBALLS)/qtgraphicaleffects-$(QTGE_VERSION).tar.xz:
+	$(call download,$(QTGE_URL))
+
+.sum-qtgraphicaleffects: qtgraphicaleffects-$(QTGE_VERSION).tar.xz
+
+qtgraphicaleffects: qtgraphicaleffects-$(QTGE_VERSION).tar.xz .sum-qtgraphicaleffects
+	$(UNPACK)
+	mv qtgraphicaleffects-everywhere-src-$(QTGE_VERSION) qtgraphicaleffects-$(QTGE_VERSION)
+	$(MOVE)
+
+.qtgraphicaleffects: qtgraphicaleffects
+ifdef HAVE_CROSS_COMPILE
+	cd $< && $(PREFIX)/bin/qmake
+else
+	cd $< && ../qt/bin/qmake
+endif
+	# Make && Install libraries
+	cd $< && $(MAKE)
+	cd $< && $(MAKE) -C src sub-effects-install_subtargets
+	cd $(PREFIX)/qml/QtGraphicalEffects/ && cp libqtgraphicaleffectsplugin.a private/libqtgraphicaleffectsprivate.a $(PREFIX)/lib/
+	rm -rf $(PREFIX)/qml
+	cd $(PREFIX)/lib/pkgconfig; sed -i.orig \
+		-e 's/ -lQt5QuickWidgets/ -lqtgraphicaleffectsplugin -lqtgraphicaleffectsprivate -lQt5QuickWidgets/' \
+		Qt5QuickWidgets.pc
+	touch $@



More information about the vlc-commits mailing list