From fcc6023d34fb2bbb4ed3b281ed973ae4c3c7e040 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Wed, 9 Sep 2015 15:55:05 +1000 Subject: qtserialport_qt4: fix for Qt4 support in separate branch --- src/qtserialport_qt4-1-fixes.patch | 31 ------------------------------- src/qtserialport_qt4.mk | 17 +++++++++-------- 2 files changed, 9 insertions(+), 39 deletions(-) delete mode 100644 src/qtserialport_qt4-1-fixes.patch diff --git a/src/qtserialport_qt4-1-fixes.patch b/src/qtserialport_qt4-1-fixes.patch deleted file mode 100644 index decf69a..0000000 --- a/src/qtserialport_qt4-1-fixes.patch +++ /dev/null @@ -1,31 +0,0 @@ -This file is part of MXE. -See index.html for further information. - -From c68b55c600c04a42bdd31e869b1a28d90868c2aa Mon Sep 17 00:00:00 2001 -From: Timothy Gu -Date: Sat, 27 Sep 2014 15:46:52 -0700 -Subject: [PATCH] Work-around qmake bundled with Qt 4 not supporting macro - expansion - ---- - src/serialport/serialport.pro | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/src/serialport/serialport.pro b/src/serialport/serialport.pro -index feb6e9c..6500ca7 100644 ---- a/src/serialport/serialport.pro -+++ b/src/serialport/serialport.pro -@@ -14,6 +14,10 @@ greaterThan(QT_MAJOR_VERSION, 4) { - include($$PWD/qt4support/install-helper.pri) - CONFIG += module create_prl - mac:QMAKE_FRAMEWORK_BUNDLE_NAME = $$TARGET -+ load(moc) -+ # qmake bundled with Qt 4 doesn't support macro expansion. -+ # Work around it here. -+ QMAKE_MOC = $$QMAKE_MOC -DQT_DEPRECATED_SINCE=1 - } - - PRECOMPILED_HEADER = --- -1.8.3.2 - diff --git a/src/qtserialport_qt4.mk b/src/qtserialport_qt4.mk index e5ea1a6..6ef68f6 100644 --- a/src/qtserialport_qt4.mk +++ b/src/qtserialport_qt4.mk @@ -3,16 +3,17 @@ PKG := qtserialport_qt4 $(PKG)_IGNORE := -$(PKG)_VERSION = $(qtserialport_VERSION) -$(PKG)_CHECKSUM = $(qtserialport_CHECKSUM) -$(PKG)_SUBDIR = $(qtserialport_SUBDIR) -$(PKG)_FILE = $(qtserialport_FILE) -$(PKG)_URL = $(qtserialport_URL) +$(PKG)_VERSION := 5c3b6cc770 +$(PKG)_CHECKSUM := 355d6aaf36726c040d21dae4fc478f3af7af0268 +$(PKG)_GH_USER := qtproject +$(PKG)_GH_REPO := qtserialport +$(PKG)_GH_TREE := qt4-dev +$(PKG)_SUBDIR := $($(PKG)_GH_USER)-$($(PKG)_GH_REPO)-$(call substr,$($(PKG)_VERSION),1,7) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := https://github.com/$($(PKG)_GH_USER)/$($(PKG)_GH_REPO)/tarball/$($(PKG)_VERSION)/$($(PKG)_FILE) $(PKG)_DEPS := gcc qt -define $(PKG)_UPDATE - echo $(qtserialport_VERSION) -endef +$(PKG)_UPDATE := $(call MXE_GET_GITHUB_SHA, $($(PKG)_GH_USER)/$($(PKG)_GH_REPO), $($(PKG)_GH_TREE)) define $(PKG)_BUILD_SHARED cd '$(1)' && '$(PREFIX)/$(TARGET)/qt/bin/qmake' -- cgit v0.12