Skip to content

Instantly share code, notes, and snippets.

@yveszoundi
Created February 6, 2022 03:27
Show Gist options
  • Save yveszoundi/be8af35cecfcd5e880ebc4938aae9d4b to your computer and use it in GitHub Desktop.
Save yveszoundi/be8af35cecfcd5e880ebc4938aae9d4b to your computer and use it in GitHub Desktop.
MacOS spice homebrew formula
class Spice < Formula
homepage "https://www.spice-space.org/"
url "https://gitlab.freedesktop.org/spice/spice.git"
version "master"
depends_on "autoconf" => :build
depends_on "autoconf-archive" => :build
depends_on "autogen" => :build
depends_on "automake" => :build
depends_on "gobject-introspection" => :build
depends_on "intltool" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "vala" => :build
depends_on "atk"
depends_on "cairo"
depends_on "gdk-pixbuf"
depends_on "gettext"
depends_on "glib"
depends_on "gst-libav"
depends_on "gst-plugins-bad"
depends_on "gst-plugins-base"
depends_on "gst-plugins-good"
depends_on "gst-plugins-ugly"
depends_on "gstreamer"
depends_on "gtk+3"
depends_on "jpeg"
depends_on "json-glib"
depends_on "libusb"
depends_on "spice"
depends_on "lz4"
depends_on "openssl@1.1"
depends_on "opus"
depends_on "pango"
depends_on "pixman"
depends_on "spice-protocol"
depends_on "usbredir"
def install
system "./autogen.sh"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--enable-tests=false",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "sed", "-i", "''", "'s/#define DCC_PRIVATE_H_/#define DCC_PRIVATE_H_\n#include <array>/g'", "./server/dcc-private.h"
system "sed", "-i", "''", "'s/#define COMMON_GRAPHICS_CHANNEL_H_>/#define COMMON_GRAPHICS_CHANNEL_H_\n#include <array>/g'", "./server/common-graphics-channel.h"
system "sed", "-i", "''", "'s/#define DISPLAY_CHANNEL_H_/#define DISPLAY_CHANNEL_H_\n#include <array>/g'", "./server/display-channel.h"
system "sed", "-i", "''", "'s/#define VIDEO_STREAM_H_/#define VIDEO_STREAM_H_\n#include <array>/g'", "./server/video-stream.h"
system "sed", "-i", "''", "'s/#define IMAGE_CACHE_H_/#define IMAGE_CACHE_H_\n#include <array>/g'", "./server/image-cache.h"
system "sed", "-i", "''", "'s/#define REDS_H_/#define REDS_H_\n#include <array>/g'", "reds.h"
system "make", "install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment