update to spice 0.34; enable audio/video streaming
This commit is contained in:
parent
970a7746ab
commit
fb7e0f74c2
83
spice-gtk.rb
83
spice-gtk.rb
|
@ -1,8 +1,8 @@
|
||||||
class SpiceGtk < Formula
|
class SpiceGtk < Formula
|
||||||
desc "GTK client/libraries for SPICE"
|
desc "GTK client/libraries for SPICE"
|
||||||
homepage "https://www.spice-space.org"
|
homepage "https://www.spice-space.org"
|
||||||
url "https://www.spice-space.org/download/gtk/spice-gtk-0.31.tar.bz2"
|
url "https://www.spice-space.org/download/gtk/spice-gtk-0.34.tar.bz2"
|
||||||
sha256 "c72b4d202b1c0b71d6e24ce5caf914d6dddbcf4010d10db9c2d8e73af728c1ca"
|
sha256 "e9720e01165f8451c9f3f58ad50e3afb990993b81cc2db86b3661b7ac5b976ee"
|
||||||
|
|
||||||
depends_on "gobject-introspection" => :build
|
depends_on "gobject-introspection" => :build
|
||||||
depends_on "intltool" => :build
|
depends_on "intltool" => :build
|
||||||
|
@ -16,22 +16,97 @@ class SpiceGtk < Formula
|
||||||
depends_on "glib"
|
depends_on "glib"
|
||||||
depends_on "gtk+3"
|
depends_on "gtk+3"
|
||||||
depends_on "jpeg"
|
depends_on "jpeg"
|
||||||
|
depends_on "lz4"
|
||||||
depends_on "openssl"
|
depends_on "openssl"
|
||||||
depends_on "pango"
|
depends_on "pango"
|
||||||
depends_on "pixman"
|
depends_on "pixman"
|
||||||
depends_on "spice-protocol"
|
depends_on "spice-protocol"
|
||||||
depends_on "usbredir"
|
depends_on "usbredir"
|
||||||
# TODO: audio
|
|
||||||
|
# for --enable-gst(audio|video)
|
||||||
|
depends_on "gstreamer"
|
||||||
|
depends_on "gst-libav"
|
||||||
|
depends_on "gst-plugins-base"
|
||||||
|
depends_on "gst-plugins-good"
|
||||||
|
depends_on "gst-plugins-bad"
|
||||||
|
depends_on "gst-plugins-ugly"
|
||||||
|
|
||||||
|
# need autogen to regen after patching the build
|
||||||
|
depends_on "autogen"
|
||||||
|
depends_on "automake"
|
||||||
|
depends_on "autoconf"
|
||||||
|
|
||||||
|
# compile vncdisplaykeymap.c as objc to fix include issue
|
||||||
|
patch :DATA
|
||||||
|
|
||||||
def install
|
def install
|
||||||
|
ENV['CFLAGS'] = "-Wno-cast-align -Wno-error"
|
||||||
|
ENV['XML_CATALOG_FILES'] = "/usr/local/etc/xml/catalog"
|
||||||
|
|
||||||
|
mv "src/vncdisplaykeymap.c", "src/vncdisplaykeymap.m"
|
||||||
|
|
||||||
|
system "autoreconf", "-v", "--force", "--install"
|
||||||
system "./configure", "--disable-dependency-tracking",
|
system "./configure", "--disable-dependency-tracking",
|
||||||
"--disable-silent-rules",
|
"--disable-silent-rules",
|
||||||
"--with-gtk=3.0",
|
"--with-gtk=3.0",
|
||||||
"--enable-introspection",
|
"--enable-introspection",
|
||||||
"--enable-vala",
|
"--enable-vala",
|
||||||
"--with-audio=no",
|
"--enable-gstvideo",
|
||||||
|
"--enable-gstaudio",
|
||||||
|
"--enable-gstreamer=1.0",
|
||||||
|
"--with-lz4",
|
||||||
"--with-coroutine=gthread",
|
"--with-coroutine=gthread",
|
||||||
"--prefix=#{prefix}"
|
"--prefix=#{prefix}"
|
||||||
system "make", "install"
|
system "make", "install"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
__END__
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index f915d81..10ef73d 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -25,6 +25,7 @@ AC_SUBST(SPICE_GTK_LOCALEDIR)
|
||||||
|
|
||||||
|
GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
|
||||||
|
|
||||||
|
+AC_PROG_OBJC
|
||||||
|
AC_PROG_CC
|
||||||
|
AC_PROG_CC_C99
|
||||||
|
if test "x$ac_cv_prog_cc_c99" = xno; then
|
||||||
|
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||||
|
index 5430d84..dad3fa5 100644
|
||||||
|
--- a/src/Makefile.am
|
||||||
|
+++ b/src/Makefile.am
|
||||||
|
@@ -125,7 +125,7 @@ SPICE_GTK_SOURCES_COMMON = \
|
||||||
|
spice-widget.c \
|
||||||
|
spice-widget-priv.h \
|
||||||
|
spice-file-transfer-task.h \
|
||||||
|
- vncdisplaykeymap.c \
|
||||||
|
+ vncdisplaykeymap.m \
|
||||||
|
vncdisplaykeymap.h \
|
||||||
|
spice-grabsequence.c \
|
||||||
|
spice-grabsequence.h \
|
||||||
|
@@ -481,7 +481,7 @@ spice-widget-enums.h: spice-widget.h
|
||||||
|
$< > $@
|
||||||
|
|
||||||
|
|
||||||
|
-vncdisplaykeymap.c: $(KEYMAPS)
|
||||||
|
+vncdisplaykeymap.m: $(KEYMAPS)
|
||||||
|
$(KEYMAPS): $(srcdir)/$(KEYMAP_GEN) $(srcdir)/$(KEYMAP_CSV)
|
||||||
|
|
||||||
|
vncdisplaykeymap_xorgevdev2xtkbd.c:
|
||||||
|
diff --git a/spice-common/m4/spice-deps.m4 b/spice-common/m4/spice-deps.m4
|
||||||
|
index 68e3091..2e4c305 100644
|
||||||
|
--- a/spice-common/m4/spice-deps.m4
|
||||||
|
+++ b/spice-common/m4/spice-deps.m4
|
||||||
|
@@ -1,10 +1,3 @@
|
||||||
|
-# For autoconf < 2.63
|
||||||
|
-m4_ifndef([AS_VAR_APPEND],
|
||||||
|
- AC_DEFUN([AS_VAR_APPEND], $1=$$1$2))
|
||||||
|
-m4_ifndef([AS_VAR_COPY],
|
||||||
|
- [m4_define([AS_VAR_COPY],
|
||||||
|
- [AS_LITERAL_IF([$1[]$2], [$1=$$2], [eval $1=\$$2])])])
|
||||||
|
-
|
||||||
|
|
||||||
|
# SPICE_WARNING(warning)
|
||||||
|
# SPICE_PRINT_MESSAGES
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
class SpiceProtocol < Formula
|
class SpiceProtocol < Formula
|
||||||
desc "Headers for SPICE protocol"
|
desc "Headers for SPICE protocol"
|
||||||
homepage "https://www.spice-space.org/"
|
homepage "https://www.spice-space.org/"
|
||||||
url "https://www.spice-space.org/download/releases/spice-protocol-0.12.12.tar.bz2"
|
url "https://www.spice-space.org/download/releases/spice-protocol-0.12.13.tar.bz2"
|
||||||
sha256 "17abdc2743b5d44b0f4423b61c44aafe9f2078c27218aeea78c2d02a5c409d03"
|
sha256 "89ee11b202d2268e061788e6ace114e1ff18c7620ae64d1ca3aba252ee7c9933"
|
||||||
|
|
||||||
def install
|
def install
|
||||||
system "./configure", "--disable-debug",
|
system "./configure", "--disable-silent-rules",
|
||||||
"--disable-dependency-tracking",
|
|
||||||
"--disable-silent-rules",
|
|
||||||
"--prefix=#{prefix}"
|
"--prefix=#{prefix}"
|
||||||
system "make", "install"
|
system "make", "install"
|
||||||
end
|
end
|
||||||
|
|
|
@ -10,8 +10,7 @@ class Usbredir < Formula
|
||||||
depends_on "libusb"
|
depends_on "libusb"
|
||||||
|
|
||||||
def install
|
def install
|
||||||
system "./configure", "--disable-dependency-tracking",
|
system "./configure", "--disable-silent-rules",
|
||||||
"--disable-silent-rules",
|
|
||||||
"--prefix=#{prefix}"
|
"--prefix=#{prefix}"
|
||||||
system "make", "install"
|
system "make", "install"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue