[vlc-commits] contribs: qt: Rework version handling

Hugo Beauzée-Luyssen git at videolan.org
Mon Oct 15 15:54:49 CEST 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Oct 11 13:10:49 2018 +0200| [890059cc48ac79d114a919ee69640c0c40c25b62] | committer: Hugo Beauzée-Luyssen

contribs: qt: Rework version handling

This makes it easier to switch to different version, including beta
versions (the resulting folder don't include the -betaX part, but the
source folders do)

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

 contrib/src/qt/rules.mak | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/contrib/src/qt/rules.mak b/contrib/src/qt/rules.mak
index 04e8031afb..75d766f5d5 100644
--- a/contrib/src/qt/rules.mak
+++ b/contrib/src/qt/rules.mak
@@ -1,7 +1,10 @@
 # Qt
 
-QT_VERSION := 5.11.0
-QT_URL := https://download.qt.io/official_releases/qt/5.11/$(QT_VERSION)/submodules/qtbase-everywhere-src-$(QT_VERSION).tar.xz
+QT_VERSION_MAJOR := 5.11
+QT_VERSION := $(QT_VERSION_MAJOR).0
+# Insert potential -betaX suffix here:
+QT_VERSION_FULL := $(QT_VERSION)
+QT_URL := https://download.qt.io/development_releases/qt/$(QT_VERSION_MAJOR)/$(QT_VERSION_FULL)/submodules/qtbase-everywhere-src-$(QT_VERSION_FULL).tar.xz
 
 ifdef HAVE_MACOSX
 #PKGS += qt
@@ -14,14 +17,14 @@ ifeq ($(call need_pkg,"Qt5Core Qt5Gui Qt5Widgets"),)
 PKGS_FOUND += qt
 endif
 
-$(TARBALLS)/qt-$(QT_VERSION).tar.xz:
+$(TARBALLS)/qt-$(QT_VERSION_FULL).tar.xz:
 	$(call download,$(QT_URL))
 
-.sum-qt: qt-$(QT_VERSION).tar.xz
+.sum-qt: qt-$(QT_VERSION_FULL).tar.xz
 
-qt: qt-$(QT_VERSION).tar.xz .sum-qt
+qt: qt-$(QT_VERSION_FULL).tar.xz .sum-qt
 	$(UNPACK)
-	mv qtbase-everywhere-src-$(QT_VERSION) qt-$(QT_VERSION)
+	mv qtbase-everywhere-src-$(QT_VERSION_FULL) qt-$(QT_VERSION_FULL)
 ifdef HAVE_WIN32
 	$(APPLY) $(SRC)/qt/0001-Windows-QPA-prefer-lower-value-when-rounding-fractio.patch
 	$(APPLY) $(SRC)/qt/0002-Windows-QPA-Disable-systray-notification-sounds.patch



More information about the vlc-commits mailing list