gst-plugins-bad 1.10.0

Closes #6512.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2016-11-02 03:29:39 -07:00
parent 27e33628fd
commit ad2cbc135a

View file

@ -1,16 +1,8 @@
class GstPluginsBad < Formula
desc "GStreamer plugins less supported, not fully tested"
homepage "https://gstreamer.freedesktop.org/"
revision 2
stable do
url "https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.8.3.tar.xz"
sha256 "7899fcb18e6a1af2888b19c90213af018a57d741c6e72ec56b133bc73ec8509b"
# https://bugzilla.gnome.org/show_bug.cgi?id=770587
# Upstream commit 807b0322c50dfe17c55a8304c0278c2d59fa8358 with conflicts fixed.
patch :DATA
end
url "https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.10.0.tar.xz"
sha256 "3d5f9d16e1a3ee7c5c024494cc3a3420007bfdce6f94511317ae004972811c4f"
bottle do
sha256 "639238166da8c2317ee0471ccc2d273c1d65e17c5ecd538229e9ae40c64bcfa4" => :sierra
@ -21,17 +13,16 @@ class GstPluginsBad < Formula
head do
url "https://anongit.freedesktop.org/git/gstreamer/gst-plugins-bad.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
end
depends_on "autoconf" => :build # Required for "stable" builds because we patch configure.ac
depends_on "automake" => :build # Required for "stable" builds because we patch Makefile.am
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "gettext"
depends_on "gst-plugins-base"
depends_on "openssl"
depends_on "jpeg" => :recommended
depends_on "orc" => :recommended
depends_on "dirac" => :optional
@ -68,9 +59,11 @@ class GstPluginsBad < Formula
args << "--with-gtk=3.0" if build.with? "gtk+3"
# autogen is invoked in "stable" build because we patch configure.ac
ENV["NOCONFIGURE"] = "yes"
system "./autogen.sh"
if build.head?
# autogen is invoked in "stable" build because we patch configure.ac
ENV["NOCONFIGURE"] = "yes"
system "./autogen.sh"
end
system "./configure", *args
system "make"
@ -83,94 +76,3 @@ class GstPluginsBad < Formula
assert_match version.to_s, output
end
end
__END__
From 807b0322c50dfe17c55a8304c0278c2d59fa8358 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
Date: Tue, 30 Aug 2016 16:21:25 +0300
Subject: applemedia: Conditionally compile qtkitvideosrc
The API was deprecated in 10.9 and apparently does not exist in the SDK for
macOS Sierra anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=770587
diff --git a/configure.ac b/configure.ac
index ce8327b..2787b6c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -543,6 +543,7 @@ dnl *** plug-ins to exclude ***
AC_CHECK_HEADER(AVFoundation/AVFoundation.h, HAVE_AVFOUNDATION="yes", HAVE_AVFOUNDATION="no", [-])
AC_CHECK_HEADER(MobileCoreServices/MobileCoreServices.h, HAVE_IOS="yes", HAVE_IOS="no", [-])
AC_CHECK_HEADER(VideoToolbox/VideoToolbox.h, HAVE_VIDEOTOOLBOX="yes", HAVE_VIDEOTOOLBOX="no", [-])
+AC_CHECK_HEADER(QTKit/QTKit.h, HAVE_QTKIT="yes", HAVE_QTKIT="no", [-])
if test "x$HAVE_VIDEOTOOLBOX" = "xyes"; then
old_LIBS=$LIBS
@@ -569,6 +570,10 @@ if test "x$HAVE_VIDEOTOOLBOX" = "xyes"; then
AC_DEFINE(HAVE_VIDEOTOOLBOX, 1, [Define if building with VideoToolbox])
fi
+AM_CONDITIONAL(HAVE_QTKIT, test "x$HAVE_QTKIT" = "xyes")
+if test "x$HAVE_QTKIT" = "xyes"; then
+ AC_DEFINE(HAVE_QTKIT, 1, [Define if building with QTKit])
+fi
dnl disable gst plugins we might not be able to build on this
dnl platform: (ugly but minimally invasive)
dnl FIXME: maybe move to sys, or make work with winsock2
diff --git a/sys/applemedia/Makefile.am b/sys/applemedia/Makefile.am
index 094cce5..d77e47c 100644
--- a/sys/applemedia/Makefile.am
+++ b/sys/applemedia/Makefile.am
@@ -94,16 +94,22 @@ libgstapplemedia_la_LDFLAGS += \
else
libgstapplemedia_la_SOURCES += \
- qtkitvideosrc.m \
iosurfacememory.c
libgstapplemedia_la_LDFLAGS += \
-Wl,-framework -Wl,Cocoa \
- -Wl,-framework -Wl,QTKit \
-Wl,-framework -Wl,IOSurface
endif
+if HAVE_QTKIT
+libgstapplemedia_la_SOURCES += \
+ qtkitvideosrc.m
+
+libgstapplemedia_la_LDFLAGS += \
+ -Wl,-framework -Wl,QTKit
+endif
+
if HAVE_AVFOUNDATION
libgstapplemedia_la_SOURCES += \
diff --git a/sys/applemedia/plugin.m b/sys/applemedia/plugin.m
index e1e8e9e..19384c7 100644
--- a/sys/applemedia/plugin.m
+++ b/sys/applemedia/plugin.m
@@ -25,7 +25,8 @@
#include "corevideomemory.h"
#ifdef HAVE_IOS
#include "iosassetsrc.h"
-#else
+#endif
+#ifdef HAVE_QTKIT
#include "qtkitvideosrc.h"
#endif
#ifdef HAVE_AVFOUNDATION
@@ -73,7 +74,9 @@ plugin_init (GstPlugin * plugin)
GST_TYPE_IOS_ASSET_SRC);
#else
enable_mt_mode ();
+#endif
+#ifdef HAVE_QTKIT
res = gst_element_register (plugin, "qtkitvideosrc", GST_RANK_SECONDARY,
GST_TYPE_QTKIT_VIDEO_SRC);
#endif
--
cgit v0.10.2