@@ -6,7 +6,6 @@ PortSystem 1.0
66# does not include certain parts
77set building_qt4 1
88PortGroup qt4 1.0
9- PortGroup xcodeversion 1.0
109
1110name qt4-mac
1211version 4.8.7
@@ -32,10 +31,7 @@ checksums rmd160 afb5e5a99388e6429faca59cb5000054feffd166 \
3231 sha256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 \
3332 size 241075567
3433
35- if {[info exists use_xcode]} {
36- use_xcode yes
37- }
38- minimum_xcodeversions {8 2.5}
34+ use_xcode yes
3935
4036depends_lib-append port:zlib \
4137 path:bin/dbus-daemon:dbus \
@@ -55,15 +51,10 @@ platform darwin 10 {
5551
5652# easy solution for deprecated font API; see also
5753# https://trac.macports.org/ticket/66114
58-
59- platform darwin 22 {
60- macosx_deployment_target 12.0
61- }
62- platform darwin 23 {
63- macosx_deployment_target 12.0
64- }
65- platform darwin 24 {
66- macosx_deployment_target 12.0
54+ platform darwin {
55+ if {[vercmp $macosx_deployment_target > 12.0]} {
56+ macosx_deployment_target 12.0
57+ }
6758}
6859
6960# find a way to specify the OS MINOR version. For OSX 10.X, this
@@ -93,20 +84,6 @@ if {${macosx_deployment_target} ne ""} {
9384}
9485# ui_debug "Deduced OS MAJOR.MINOR = ${MAJOR}.${MINOR}"
9586
96- # Error out if trying to build on a new macOS version. We do this
97- # because this port is so old and thus we want to make sure this
98- # port works on these newer macOS versions first.
99- platform darwin {
100- if { ${os.major} > 24 } {
101- depends_lib
102- depends_run
103- pre-fetch {
104- ui_error " $name does not currently build on macOS versions later than 15 Sequoia."
105- error " unsupported platform"
106- }
107- }
108- }
109-
11087# ##############################################
11188# Patches are used to both fix compiling on various OS versions, and
11289# to enhance the functionality of QMake and its build files. Some of
@@ -426,6 +403,9 @@ patchfiles-append patch-test_compiler_version.diff
426403# we'll add an "if" to narrow the scope of application
427404patchfiles-append patch-src_3rdparty_javascriptcore_JavaScriptCore_jit_JITStubs.cpp_remove_volatile.diff
428405
406+ # fix "error: expression is not an integral constant expression"
407+ patchfiles-append qcoloroutput_p.h-shift.patch
408+
429409# the wtf_ceil workaround in wtf/MathExtras.h is causing a build error with Xcode 15
430410# this workaround was deleted long ago here in the upstream source:
431411# (wtf_ceil): Deleted. This was a workaround for a bug that was introduced in Leopard and
@@ -438,6 +418,9 @@ platform darwin {
438418 if { ${os.major} > 22 } {
439419 patchfiles-append patch-webkit-remove-wtf_ceil-workaround.diff
440420 }
421+ if {${os.major} >= 25} {
422+ patchfiles-append no-AGL.patch
423+ }
441424}
442425
443426# Support aarch64
0 commit comments