wxwidgets: use gtk+3 on Linux

master
Michael Cho 2021-07-13 21:22:32 -07:00 committed by BrewTestBot
parent 927495adab
commit 7d7daebdad
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
5 changed files with 8 additions and 16 deletions

View File

@ -1 +0,0 @@
../Formula/wxmac.rb

View File

@ -1 +0,0 @@
../Formula/wxmac.rb

1
Aliases/wxwidgets@3.1 Symbolic link
View File

@ -0,0 +1 @@
../Formula/wxwidgets.rb

View File

@ -1,5 +1,5 @@
class Wxmac < Formula class Wxwidgets < Formula
desc "Cross-platform C++ GUI toolkit (wxWidgets for macOS)" desc "Cross-platform C++ GUI toolkit"
homepage "https://www.wxwidgets.org" homepage "https://www.wxwidgets.org"
url "https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.5/wxWidgets-3.1.5.tar.bz2" url "https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.5/wxWidgets-3.1.5.tar.bz2"
sha256 "d7b3666de33aa5c10ea41bb9405c40326e1aeb74ee725bb88f90f1d50270a224" sha256 "d7b3666de33aa5c10ea41bb9405c40326e1aeb74ee725bb88f90f1d50270a224"
@ -11,21 +11,13 @@ class Wxmac < Formula
regex(/^v?(\d+(?:\.\d+)+)$/i) regex(/^v?(\d+(?:\.\d+)+)$/i)
end end
bottle do
sha256 cellar: :any, arm64_big_sur: "9080b4b039c1267c300977b6a1bab583717f0829f6858eeec580a55473e25a2f"
sha256 cellar: :any, big_sur: "a4ca829d8774407a89b727677286788c2088c7f5814e4e21b07cd339453f6950"
sha256 cellar: :any, catalina: "1b1e632388b899230f8728e21ac2336e741b8233094bf572e9b5e93e9028efe1"
sha256 cellar: :any, mojave: "1be251946ba9b3c4f5acf14a1c3a99f9a5d06360dce108d62ba495c84594159c"
sha256 cellar: :any_skip_relocation, x86_64_linux: "4e1acbd860a4b0225c8a3e26f938ca5cb2ed281c03b3fae23be99a3e4ea0ca20"
end
depends_on "jpeg" depends_on "jpeg"
depends_on "libpng" depends_on "libpng"
depends_on "libtiff" depends_on "libtiff"
on_linux do on_linux do
depends_on "pkg-config" => :build depends_on "pkg-config" => :build
depends_on "gtk+" depends_on "gtk+3"
depends_on "libsm" depends_on "libsm"
depends_on "mesa-glu" depends_on "mesa-glu"
end end
@ -64,13 +56,13 @@ class Wxmac < Formula
system "./configure", *args system "./configure", *args
system "make", "install" system "make", "install"
# wx-config should reference the public prefix, not wxmac's keg # wx-config should reference the public prefix, not wxwidgets's keg
# this ensures that Python software trying to locate wxpython headers # this ensures that Python software trying to locate wxpython headers
# using wx-config can find both wxmac and wxpython headers, # using wx-config can find both wxwidgets and wxpython headers,
# which are linked to the same place # which are linked to the same place
inreplace "#{bin}/wx-config", prefix, HOMEBREW_PREFIX inreplace "#{bin}/wx-config", prefix, HOMEBREW_PREFIX
# For consistency with the versioned wxmac formulae # For consistency with the versioned wxwidgets formulae
bin.install_symlink "#{bin}/wx-config" => "wx-config-#{version.major_minor}" bin.install_symlink "#{bin}/wx-config" => "wx-config-#{version.major_minor}"
(share/"wx"/version.major_minor).install share/"aclocal", share/"bakefile" (share/"wx"/version.major_minor).install share/"aclocal", share/"bakefile"
end end

View File

@ -144,5 +144,6 @@
"weboob": "woob", "weboob": "woob",
"wires": "geckodriver", "wires": "geckodriver",
"wpcli-completion": "wp-cli-completion", "wpcli-completion": "wp-cli-completion",
"wxmac": "wxwidgets",
"xu4": "scummvm" "xu4": "scummvm"
} }