mingw64-i686-gstreamer1.0-plugins-bad-free 1.6.1
authorYaakov Selkowitz <yselkowi@redhat.com>
Tue, 24 Nov 2015 17:10:00 +0000 (11:10 -0600)
committerYaakov Selkowitz <yselkowi@redhat.com>
Tue, 24 Nov 2015 17:10:00 +0000 (11:10 -0600)
1.6.1-mingw32-curl.patch [new file with mode: 0644]
1.6.1-mingw32-decklink.patch [new file with mode: 0644]
1.6.1-mingw32-librfb.patch [new file with mode: 0644]
mingw64-i686-gstreamer1.0-plugins-bad-free.cygport [new file with mode: 0644]

diff --git a/1.6.1-mingw32-curl.patch b/1.6.1-mingw32-curl.patch
new file mode 100644 (file)
index 0000000..3056e02
--- /dev/null
@@ -0,0 +1,11 @@
+--- origsrc/gst-plugins-bad-1.6.1/configure.ac 2015-10-30 07:11:05.000000000 -0500
++++ src/gst-plugins-bad-1.6.1/configure.ac     2015-11-24 10:24:23.460394600 -0600
+@@ -1828,7 +1828,7 @@ AG_GST_CHECK_FEATURE(CURL, [Curl plugin]
+     AC_CHECK_HEADERS([unistd.h sys/socket.h sys/types.h netinet/in.h netinet/tcp.h fcntl.h], [ ], [
+       AC_CHECK_HEADERS([unistd.h sys/types.h winsock2.h ws2tcpip.h fcntl.h], [ ], [HAVE_CURL="no"])
+     ])
+-    AC_CHECK_HEADERS([netinet/ip.h], [], [HAVE_CURL="no"],
++    AC_CHECK_HEADERS([netinet/ip.h], [], [],
+     [[#ifdef HAVE_SYS_TYPES_H
+      # include <sys/types.h>
+      #endif
diff --git a/1.6.1-mingw32-decklink.patch b/1.6.1-mingw32-decklink.patch
new file mode 100644 (file)
index 0000000..f4fc7d3
--- /dev/null
@@ -0,0 +1,75 @@
+--- origsrc/gst-plugins-bad-1.6.1/configure.ac 2015-10-30 07:11:05.000000000 -0500
++++ src/gst-plugins-bad-1.6.1/configure.ac     2015-11-24 10:24:23.460394600 -0600
+@@ -1910,6 +1910,12 @@ AG_GST_CHECK_FEATURE(DECKLINK, [decklink
+            ])
+        fi
+        ;;
++     *-*mingw*)
++       HAVE_DECKLINK=yes
++       DECKLINK_CXXFLAGS=
++       DECKLINK_LIBS="-lole32"
++       HAVE_DECKLINK_WIN=yes
++       ;;
+      *)
+        HAVE_DECKLINK=no
+        ;;
+@@ -1919,6 +1925,7 @@ AG_GST_CHECK_FEATURE(DECKLINK, [decklink
+    AC_SUBST(DECKLINK_LIBS)
+ ])
+ AM_CONDITIONAL(DECKLINK_OSX, test "x$HAVE_DECKLINK_OSX" = xyes)
++AM_CONDITIONAL(DECKLINK_WIN, test "x$HAVE_DECKLINK_WIN" = xyes)
+ dnl **** DirectFB ****
+ translit(dnm, m, l) AM_CONDITIONAL(USE_DIRECTFB, true)
+--- origsrc/gst-plugins-bad-1.6.1/sys/decklink/Makefile.am     2015-10-22 03:04:08.000000000 -0500
++++ src/gst-plugins-bad-1.6.1/sys/decklink/Makefile.am 2015-11-24 00:52:15.990238900 -0600
+@@ -34,9 +34,16 @@ if DECKLINK_OSX
+ libgstdecklink_la_SOURCES += \
+       osx/DeckLinkAPIDispatch.cpp
+ else
++if DECKLINK_WIN
++libgstdecklink_la_CPPFLAGS += \
++      -DCOBJMACROS=1
++libgstdecklink_la_SOURCES += \
++      win/DeckLinkAPIDispatch.cpp
++else
+ libgstdecklink_la_SOURCES += \
+       linux/DeckLinkAPIDispatch.cpp
+ endif
++endif
+ noinst_HEADERS = \
+       gstdecklink.h \
+--- origsrc/gst-plugins-bad-1.6.1/sys/decklink/gstdecklink.cpp 2015-10-22 03:04:08.000000000 -0500
++++ src/gst-plugins-bad-1.6.1/sys/decklink/gstdecklink.cpp     2015-11-24 00:58:48.362123000 -0600
+@@ -533,7 +533,7 @@ public:
+   }
+ };
+-#ifdef _MSC_VER
++#ifdef G_OS_WIN32
+ /* FIXME: We currently never deinit this */
+ static GMutex com_init_lock;
+@@ -596,7 +596,7 @@ init_devices (gpointer data)
+   HRESULT ret;
+   int i;
+-#ifdef _MSC_VER
++#ifdef G_OS_WIN32
+   // Start COM thread for Windows
+   g_mutex_lock (&com_init_lock);
+--- origsrc/gst-plugins-bad-1.6.1/sys/decklink/win/DeckLinkAPI.h       2015-10-22 03:04:08.000000000 -0500
++++ src/gst-plugins-bad-1.6.1/sys/decklink/win/DeckLinkAPI.h   2015-11-24 00:57:02.328738100 -0600
+@@ -13301,6 +13301,10 @@ EXTERN_C const IID IID_IDeckLinkInput_v7
\r
+ /* Additional Prototypes for ALL interfaces */\r
\r
++extern "C" {\r
++    IDeckLinkIterator* CreateDeckLinkIteratorInstance (void);\r
++}\r
++\r
+ /* end of Additional Prototypes */\r
\r
+ #ifdef __cplusplus\r
diff --git a/1.6.1-mingw32-librfb.patch b/1.6.1-mingw32-librfb.patch
new file mode 100644 (file)
index 0000000..96aae2f
--- /dev/null
@@ -0,0 +1,12 @@
+--- origsrc/gst-plugins-bad-1.6.1/gst/librfb/gstrfbsrc.c       2015-10-22 03:04:08.000000000 -0500
++++ src/gst-plugins-bad-1.6.1/gst/librfb/gstrfbsrc.c   2015-11-24 11:05:34.056350800 -0600
+@@ -30,6 +30,9 @@
+ #include <string.h>
+ #include <stdlib.h>
++#ifdef G_OS_WIN32
++#undef HAVE_X11
++#endif
+ #ifdef HAVE_X11
+ #include <X11/Xlib.h>
+ #endif
diff --git a/mingw64-i686-gstreamer1.0-plugins-bad-free.cygport b/mingw64-i686-gstreamer1.0-plugins-bad-free.cygport
new file mode 100644 (file)
index 0000000..bb99455
--- /dev/null
@@ -0,0 +1,65 @@
+CROSS_HOST="i686-w64-mingw32"
+GST_PLUGINS_ENABLE="acm assrender bs2b bz2 chromaprint curl dash direct3d
+       direct3d9 directshow directsound dtls fluidsynth gme gsm hls kate
+       modplug openal openexr opengl openjpeg opus resindvd rsvg schro
+       sndfile soundtouch wasapi webp wildmidi wininet winks winscreencap"
+GST_PLUGINS_DISABLE="flite ladspa neon ofa opencv zbar apple_media avc bluez
+       osx_video quicktime uvch264 vcd cdaudio dc1394 directfb wayland dts
+       faac faad fbdev libmms linsys mimic mpeg2enc mpg123 mplex mythtv pvr
+       teletextdec spc swfdec xvid dvb vdpau rtmp spandsp sndio voamrwbenc
+       voaacenc srtp x265 decklink gtk3 qt"
+inherit cross gst-plugins
+
+NAME="mingw64-i686-gstreamer1.0-plugins-bad-free"
+VERSION=1.6.1
+RELEASE=1
+CATEGORY="Devel"
+SUMMARY="GStreamer 1.0 Bad plugins for Win32 toolchain"
+DESCRIPTION="GStreamer Bad Plug-ins is a set of plug-ins that aren't up to par
+compared to the rest. They might be close to being good quality, but they're
+missing something - be it a good code review, some documentation, a set of
+tests, a real live maintainer, or some actual wide use."
+md5sum=d1f2cb1d8c5202dfc4e60fcd81d06acc
+SRC_URI="http://pkgs.fedoraproject.org/repo/pkgs/gstreamer1-plugins-bad-free/gst-plugins-bad-${VERSION}.tar.xz/${md5sum}/gst-plugins-bad-${VERSION}.tar.xz"
+SRC_DIR="gst-plugins-bad-${VERSION}"
+PATCH_URI="
+       1.6.1-mingw32-curl.patch
+       1.6.1-mingw32-librfb.patch
+"
+
+PKG_NAMES="${NAME} ${NAME}-extras"
+
+# flite neon ofa opencv zbar
+for ext in assrender bs2b chromaprint curl fluidsynth gme kate \
+          modplug openal openexr openjpeg schro wildmidi
+do
+       mingw64_i686_gstreamer1_0_plugins_bad_free_CONTENTS+=" --exclude=libgst${ext}*"
+       mingw64_i686_gstreamer1_0_plugins_bad_free_extras_CONTENTS+=" ${CROSS_LIBDIR#/}/gstreamer-1.0/libgst${ext}*"
+done
+unset ext
+mingw64_i686_gstreamer1_0_plugins_bad_free_CONTENTS+="
+       --exclude=libgstgtksink.dll --exclude=libqtsink.dll
+       ${CROSS_PREFIX#/}
+       usr/share/doc/
+"
+#PKG_NAMES+=" mingw64-i686-gstreamer1.0-plugins-gtk"
+mingw64_i686_gstreamer1_0_plugins_gtk_CONTENTS="${CROSS_LIBDIR#/}/gstreamer-1.0/libgstgtksink.dll"
+#PKG_NAMES+=" mingw64-i686-gstreamer1.0-plugins-qt"
+mingw64_i686_gstreamer1_0_plugins_qt_CONTENTS="${CROSS_LIBDIR#/}/gstreamer-1.0/libqtsink.dll"
+
+DIFF_EXCLUDES+=" *.gschema.xml"
+
+# frei0r plugins use .so suffix
+CPPFLAGS+=' -DGST_EXTRA_MODULE_SUFFIX="\".so\""'
+
+src_compile() {
+        cd ${S}
+        gst_plugins_autoreconf
+
+        cd ${B}
+       PATH="${B}/gst-libs/gst/base/.libs:${B}/gst-libs/gst/basecamerabinsrc/.libs:${B}/gst-libs/gst/codecparsers/.libs:${B}/gst-libs/gst/gl/.libs:${B}/gst-libs/gst/insertbin/.libs:${B}/gst-libs/gst/interfaces/.libs:${B}/gst-libs/gst/mpegts/.libs:${B}/gst-libs/gst/uridownloader/.libs:${B}/gst-libs/gst/video/.libs:$PATH"
+        gst_plugins_compile \
+               --disable-cocoa --disable-glx --enable-wgl
+}
+
+KEEP_LA_FILES="none"
This page took 0.024603 seconds and 5 git commands to generate.