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

Update qemu-virgl.rb #107

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
7 changes: 3 additions & 4 deletions Formula/libangle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ class Libangle < Formula
license "BSD-3-Clause"

bottle do
root_url "https://github.com/knazarov/homebrew-qemu-virgl/releases/download/libangle-20211212.1"
sha256 cellar: :any, arm64_big_sur: "6e776fc996fa02df211ee7e79512d4996558447bde65a63d2c7578ed1f63f660"
sha256 cellar: :any, big_sur: "1c201f77bb6d877f2404ec761e47e13b97a3d61dff7ddfc484caa3deae4e5c1b"
root_url "https://github.com/startergo/homebrew-qemu-virgl/releases/tag/libangle-20211212.1"

end

depends_on "meson" => :build
Expand All @@ -25,7 +24,7 @@ def install
with_env(PATH: path) do
Dir.chdir(buildpath)

system "python2", "scripts/bootstrap.py"
system "python3", "scripts/bootstrap.py"
system "gclient", "sync"
if Hardware::CPU.arm?
system "gn", "gen", \
Expand Down
12 changes: 4 additions & 8 deletions Formula/libepoxy-angle.rb
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
class LibepoxyAngle < Formula
desc "Library for handling OpenGL function pointer management"
homepage "https://github.com/anholt/libepoxy"
url "https://github.com/anholt/libepoxy.git", using: :git, revision: "de08cf3479ca06ff921c584eeee6280e5a135f99"
version "20210315.1"
url "https://github.com/startergo/libepoxy/tree/macos"
version "20240603.1"
license "MIT"

depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on "python@3.9" => :build
depends_on "knazarov/qemu-virgl/libangle"
depends_on "startergo/qemu-virgl/libangle"

# waiting for upstreaming of https://github.com/akihikodaki/libepoxy/tree/macos
patch :p1 do
url "https://raw.githubusercontent.com/knazarov/homebrew-qemu-virgl/8bab5791b5af446204dea93d36943e00329032bf/Patches/libepoxy-v02.diff"
sha256 "8ce3a33be6ccab5482e77261d0ca98d0a6aeff9d6dfc32b0e75cd323f87dccee"
end


def install
mkdir "build" do
system "meson", *std_meson_args, "-Dc_args=-I#{Formula["libangle"].opt_prefix}/include",
Expand Down
21 changes: 8 additions & 13 deletions Formula/qemu-virgl.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
class QemuVirgl < Formula
desc "Emulator for x86 and PowerPC"
homepage "https://www.qemu.org/"
url "https://github.com/qemu/qemu.git", using: :git, revision: "99fc08366b06282614daeda989d2fde6ab8a707f"
version "20211212.1"
license "GPL-2.0-only"

url "https://github.com/akihikodaki/qemu/tree/macos"
version "20241212.1"
license "GPL-2.0-only"

depends_on "libtool" => :build
depends_on "meson" => :build
depends_on "ninja" => :build
Expand All @@ -13,9 +12,9 @@ class QemuVirgl < Formula
depends_on "glib"
depends_on "gnutls"
depends_on "jpeg"
depends_on "knazarov/qemu-virgl/libangle"
depends_on "knazarov/qemu-virgl/libepoxy-angle"
depends_on "knazarov/qemu-virgl/virglrenderer"
depends_on "startergo/qemu-virgl/libangle"
depends_on "startergo/qemu-virgl/libepoxy-angle"
depends_on "startergo/qemu-virgl/virglrenderer"
depends_on "libpng"
depends_on "libssh"
depends_on "libusb"
Expand All @@ -29,15 +28,11 @@ class QemuVirgl < Formula

# 820KB floppy disk image file of FreeDOS 1.2, used to test QEMU
resource "test-image" do
url "https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/FD12FLOPPY.zip"
url "https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/official/FD12FLOPPY.zip"
sha256 "81237c7b42dc0ffc8b32a2f5734e3480a3f9a470c50c14a9c4576a2561a35807"
end

# waiting for upstreaming of https://github.com/akihikodaki/qemu/tree/macos
patch :p1 do
url "https://raw.githubusercontent.com/knazarov/homebrew-qemu-virgl/87072b7ccc07f5087bf0848fa8920f8b3f8d5a47/Patches/qemu-v05.diff"
sha256 "6d27699ba454b5ecb7411822a745b89dce3dea5fccabfb56c84ad698f3222dd4"
end

def install
ENV["LIBTOOL"] = "glibtool"
Expand Down
10 changes: 3 additions & 7 deletions Formula/virglrenderer.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
class Virglrenderer < Formula
desc "VirGL virtual OpenGL renderer"
homepage "https://gitlab.freedesktop.org/virgl/virglrenderer"
url "https://gitlab.freedesktop.org/virgl/virglrenderer.git", revision: "453017e32ace65fa2f9c908bd5a9721f65fbf2a2"
url "https://github.com/akihikodaki/virglrenderer/tree/macos"
version "20211212.1"
license "MIT"

depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on "knazarov/qemu-virgl/libangle"
depends_on "knazarov/qemu-virgl/libepoxy-angle"
depends_on "startergo/qemu-virgl/libangle"
depends_on "startergo/qemu-virgl/libepoxy-angle"

# waiting for upstreaming of https://github.com/akihikodaki/virglrenderer/tree/macos
patch :p1 do
url "https://raw.githubusercontent.com/knazarov/homebrew-qemu-virgl/d8e807a58717d551ecb73a6e721e49559cec1a3d/Patches/virglrenderer-v04.diff"
sha256 "cb9e2ea4d73cd99375bd9fc9a008f4d7e53249a6259d63ff8f367a08c4fd8b9c"
end

def install
mkdir "build" do
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Features:

## Installation

`brew install knazarov/qemu-virgl/qemu-virgl`
`brew install startergo/qemu-virgl/qemu-virgl`

Or `brew tap knazarov/qemu-virgl` and then `brew install qemu-virgl`.
Or `brew tap startergo/qemu-virgl` and then `brew install qemu-virgl`.


## Usage
Expand Down