Skip to content

Commit

Permalink
wxwidgets: fix for macOS 16
Browse files Browse the repository at this point in the history
  • Loading branch information
cdalvaro committed Oct 17, 2024
1 parent a60d4f5 commit e135901
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Formula/wxwidgets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Wxwidgets < Formula
url "https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.6/wxWidgets-3.2.6.tar.bz2"
sha256 "939e5b77ddc5b6092d1d7d29491fe67010a2433cf9b9c0d841ee4d04acb9dce7"
license "LGPL-2.0-or-later" => { with: "WxWindows-exception-3.1" }
revision 1
head "https://github.com/wxWidgets/wxWidgets.git", branch: "master"

livecheck do
Expand Down Expand Up @@ -72,6 +73,10 @@ def install
args << "--with-macosx-version-min=#{MacOS.version}"
args << "--with-osx_cocoa"
args << "--with-libiconv"

# Work around deprecated Carbon API, see
# https://github.com/wxWidgets/wxWidgets/issues/24724
inreplace "src/osx/carbon/dcscreen.cpp", "#if !wxOSX_USE_IPHONE", "#if 0" if MacOS.version >= :sequoia
end

system "./configure", *args
Expand Down

0 comments on commit e135901

Please sign in to comment.