Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mplayer: work around for 1/4 window bug on Intel macOS #180026

Merged
merged 2 commits into from
Aug 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Formula/m/mplayer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,24 @@ class Mplayer < Formula
depends_on "freetype"
depends_on "jpeg-turbo"
depends_on "libcaca"
depends_on "libpng"

uses_from_macos "bzip2"
uses_from_macos "libxml2"
uses_from_macos "ncurses"
uses_from_macos "zlib"

def install
# Work around build failure with newer Clang
if DevelopmentTools.clang_build_version >= 1500
ENV.append_to_cflags "-Wno-int-conversion -Wno-incompatible-function-pointer-types"
end

# Fix x86_64 detection used to apply a workaround.
# TODO: Remove on the next release as code was removed.
# Issue ref: https://trac.mplayerhq.hu/ticket/2383
inreplace "libvo/osx_objc_common.m", " defined(x86_64)", " defined(__x86_64__)" if build.stable?

# we disable cdparanoia because homebrew's version is hacked to work on macOS
# and mplayer doesn't expect the hacks we apply. So it chokes. Only relevant
# if you have cdparanoia installed.
Expand Down
Loading