Compare commits
6
Commits
master
...
qt_4_tiger
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b05e0c3c8 | ||
|
|
fd84cac385 | ||
|
|
5d7d2e09ae | ||
|
|
8579555a7d | ||
|
|
a96f6923db | ||
|
|
9994faabc2 |
+93
-2
@@ -22,6 +22,74 @@ class Qt < Formula
|
||||
end
|
||||
end
|
||||
|
||||
# Makes the MACOSX_DEPLOYMENT_TARGET configurable
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/macports/macports-ports/master/aqua/qt4-mac/files/patch-configure.diff"
|
||||
sha256 "b5001ee9df42d77d22b32624c80af37205be4783a964ccfe26f4f754ee7a2dbe"
|
||||
end
|
||||
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/macports/macports-ports/master/aqua/qt4-mac/files/patch-mkspecs_common_g%2B%2B-base.conf.diff"
|
||||
sha256 "cd023a7a300d9d2a993e707e0374fb944a45e49fe8e50834b157ee330c9901f0"
|
||||
end
|
||||
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/macports/macports-ports/master/aqua/qt4-mac/files/patch-mkspecs_common_g++-macx.conf.diff"
|
||||
sha256 "e356c4cac6675bd6c2e6886ccbbcb3c4fde5ef7b643446d6239712e3606b6767"
|
||||
end
|
||||
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/macports/macports-ports/master/aqua/qt4-mac/files/patch-mkspecs_common_mac.conf.diff"
|
||||
sha256 "b720ade0ec31a6140ad0261427930eeb50cd81ca1bde79c65e1b93017c1137f6"
|
||||
end
|
||||
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/macports/macports-ports/master/aqua/qt4-mac/files/patch-qmake_qmake.pri.diff"
|
||||
sha256 "13a13af4bc4eccb64ff866a7cbc28e8deb40672206727e4d9e47e8539da73afa"
|
||||
end
|
||||
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/macports/macports-ports/master/aqua/qt4-mac/files/patch-src_tools_bootstrap_bootstrap.pro.diff"
|
||||
sha256 "d2ff4397112215be80abc096937db89da8ba710b69499b169f5870c0fc49c46b"
|
||||
end
|
||||
|
||||
if MacOS.version < :leopard
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/macports/macports-ports/bc7db7bdadf141040ffa35fe6308b5039f74c7e0/aqua/qt4-mac/files/patch-src_corelib_io_qfilesystemengine_unix.cpp-tiger.diff"
|
||||
sha256 "35377ba0171e71c964bb896a756719fa733a6e48aba2ec19839cae585dea2f71"
|
||||
end
|
||||
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/macports/macports-ports/bc7db7bdadf141040ffa35fe6308b5039f74c7e0/aqua/qt4-mac/files/patch-src_network_kernel_qnetworkproxy_mac.cpp-tiger.diff"
|
||||
sha256 "223d116eb6ed6905bb815ce3df2b984cfd405e46bda6ed889393481beabd133f"
|
||||
end
|
||||
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/macports/macports-ports/bc7db7bdadf141040ffa35fe6308b5039f74c7e0/aqua/qt4-mac/files/patch-src_gui_painting_qprintengine_mac.mm-tiger.diff"
|
||||
sha256 "bce916ed9643fdb8b674721bd774c576fd7504a7fb900c77a35fc86596541d28"
|
||||
end
|
||||
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/macports/macports-ports/bc7db7bdadf141040ffa35fe6308b5039f74c7e0/aqua/qt4-mac/files/patch-src_gui_dialogs_qfontdialog_mac.mm-tiger.diff"
|
||||
sha256 "0719eef855969e3b728cd060683656e90db02cfdeba9c2b763f3ce78c868df71"
|
||||
end
|
||||
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/macports/macports-ports/bc7db7bdadf141040ffa35fe6308b5039f74c7e0/aqua/qt4-mac/files/patch-src_gui_text_qfontdatabase_mac.cpp-tiger.diff"
|
||||
sha256 "b5014c18bfd703b37d4dd20e27f7e6f1715626d63eb788a7c64eef6cd1c2019a"
|
||||
end
|
||||
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/macports/macports-ports/master/aqua/qt4-mac/files/patch-src_gui_painting_qpaintengine_mac.diff"
|
||||
sha256 "d375639801da219c26bf3ae8a371eefe9321b253915ab8afe765ad3ed98e45d9"
|
||||
end
|
||||
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/macports/macports-ports/bc7db7bdadf141040ffa35fe6308b5039f74c7e0/aqua/qt4-mac/files/patch-src_gui_painting_qpaintengine_mac.cpp-tiger.diff"
|
||||
sha256 "a7c0322e898c91ae9cdc5f889dfb0d87265e0623d2533dcf51c09bb733f6aeb2"
|
||||
end
|
||||
end
|
||||
|
||||
head "https://code.qt.io/qt/qt.git", :branch => "4.8"
|
||||
|
||||
# Fixes build on 10.5 - "‘kCFURLIsHiddenKey’ was not declared in this scope"
|
||||
@@ -33,7 +101,6 @@ class Qt < Formula
|
||||
option "with-docs", "Build documentation"
|
||||
option "with-developer", "Build and link with developer options"
|
||||
|
||||
depends_on :macos => :leopard
|
||||
depends_on "d-bus" => :optional
|
||||
depends_on "mysql" => :optional
|
||||
depends_on "postgresql" => :optional
|
||||
@@ -44,12 +111,36 @@ class Qt < Formula
|
||||
def install
|
||||
ENV.universal_binary if build.universal?
|
||||
|
||||
inreplace ["configure", "mkspecs/common/g++-macx.conf",
|
||||
"mkspecs/common/mac.conf", "qmake/qmake.pri",
|
||||
"src/tools/bootstrap/bootstrap.pro"],
|
||||
"@MACOSX_DEPLOYMENT_TARGET@",
|
||||
MacOS.version.to_s
|
||||
|
||||
inreplace "configure" do |s|
|
||||
s.gsub! /EXTRA_CFLAGS=$/, "EXTRA_CFLAGS=#{ENV.cflags}"
|
||||
arch = Hardware::CPU.bits == 32 ? Hardware::CPU.arch_32_bit : Hardware::CPU.arch_64_bit
|
||||
s.gsub! "@ARCHES@", arch.to_s
|
||||
end
|
||||
|
||||
inreplace "mkspecs/common/g++-base.conf" do |s|
|
||||
s.gsub! "@CC@", ENV.cc
|
||||
s.gsub! "@CXX@", ENV.cxx
|
||||
end
|
||||
|
||||
args = ["-prefix", prefix,
|
||||
"-system-zlib",
|
||||
"-qt-libtiff", "-qt-libpng", "-qt-libjpeg",
|
||||
"-confirm-license", "-opensource",
|
||||
"-nomake", "demos", "-nomake", "examples",
|
||||
"-cocoa", "-fast", "-release"]
|
||||
"-fast", "-release"]
|
||||
|
||||
# Cocoa build requires 10.5 or newer
|
||||
if MacOS.version < :leopard
|
||||
args << "-carbon"
|
||||
else
|
||||
args << "-cocoa"
|
||||
end
|
||||
|
||||
if ENV.compiler == :clang
|
||||
args << "-platform"
|
||||
|
||||
Reference in new issue
Block a user