[141111] trunk/dports/gnome/gstreamer1-gst-plugins-good
jeremyhu at macports.org
jeremyhu at macports.org
Sat Oct 10 23:00:59 PDT 2015
Revision: 141111
https://trac.macports.org/changeset/141111
Author: jeremyhu at macports.org
Date: 2015-10-10 23:00:59 -0700 (Sat, 10 Oct 2015)
Log Message:
-----------
gstreamer1-gst-plugins-good: Build fixes for Snow Leopard
Modified Paths:
--------------
trunk/dports/gnome/gstreamer1-gst-plugins-good/Portfile
Added Paths:
-----------
trunk/dports/gnome/gstreamer1-gst-plugins-good/files/
trunk/dports/gnome/gstreamer1-gst-plugins-good/files/snowleopard-memmem.patch
trunk/dports/gnome/gstreamer1-gst-plugins-good/files/snowleopard-strnlen.patch
Modified: trunk/dports/gnome/gstreamer1-gst-plugins-good/Portfile
===================================================================
--- trunk/dports/gnome/gstreamer1-gst-plugins-good/Portfile 2015-10-11 05:17:26 UTC (rev 141110)
+++ trunk/dports/gnome/gstreamer1-gst-plugins-good/Portfile 2015-10-11 06:00:59 UTC (rev 141111)
@@ -50,6 +50,12 @@
port:taglib \
port:wavpack
+platform darwin {
+ if {${os.major} < 11} {
+ patchfiles-append snowleopard-strnlen.patch snowleopard-memmem.patch
+ }
+}
+
post-patch {
# gst/goom is the only thing using this, and its mmx code is buggy (as of 0.10.31)
reinplace "s|-DBUILD_MMX|-UBUILD_MMX|" ${worksrcpath}/gst/goom/Makefile.am
Added: trunk/dports/gnome/gstreamer1-gst-plugins-good/files/snowleopard-memmem.patch
===================================================================
--- trunk/dports/gnome/gstreamer1-gst-plugins-good/files/snowleopard-memmem.patch (rev 0)
+++ trunk/dports/gnome/gstreamer1-gst-plugins-good/files/snowleopard-memmem.patch 2015-10-11 06:00:59 UTC (rev 141111)
@@ -0,0 +1,38 @@
+--- tests/icles/test-accurate-seek.c.orig 2015-03-05 03:07:44.000000000 -0800
++++ tests/icles/test-accurate-seek.c 2015-10-10 22:35:30.000000000 -0700
+@@ -147,6 +147,35 @@ generate_test_sound (const gchar * fn, c
+ /* g_print ("Done %s\n", fn); */
+ }
+
++void *
++memmem(const void *l, size_t l_len, const void *s, size_t s_len)
++{
++ register char *cur, *last;
++ const char *cl = (const char *)l;
++ const char *cs = (const char *)s;
++
++ /* we need something to compare */
++ if (l_len == 0 || s_len == 0)
++ return NULL;
++
++ /* "s" must be smaller or equal to "l" */
++ if (l_len < s_len)
++ return NULL;
++
++ /* special case where s_len == 1 */
++ if (s_len == 1)
++ return memchr(l, (int)*cs, l_len);
++
++ /* the last position where its possible to find "s" in "l" */
++ last = (char *)cl + l_len - s_len;
++
++ for (cur = (char *)cl; cur <= last; cur++)
++ if (cur[0] == cs[0] && memcmp(cur, cs, s_len) == 0)
++ return cur;
++
++ return NULL;
++}
++
+ static void
+ test_seek_FORMAT_TIME_by_sample (const gchar * fn, GList * seek_positions)
+ {
Added: trunk/dports/gnome/gstreamer1-gst-plugins-good/files/snowleopard-strnlen.patch
===================================================================
--- trunk/dports/gnome/gstreamer1-gst-plugins-good/files/snowleopard-strnlen.patch (rev 0)
+++ trunk/dports/gnome/gstreamer1-gst-plugins-good/files/snowleopard-strnlen.patch 2015-10-11 06:00:59 UTC (rev 141111)
@@ -0,0 +1,21 @@
+--- ./gst/isomp4/gstqtmux.c.orig 2015-06-24 02:14:41.000000000 -0700
++++ ./gst/isomp4/gstqtmux.c 2015-10-10 22:20:32.000000000 -0700
+@@ -686,6 +686,18 @@ gst_qt_mux_prepare_jpc_buffer (GstQTPad
+ return newbuf;
+ }
+
++static size_t
++strnlen(const char *s, size_t maxlen)
++{
++ size_t len;
++
++ for (len = 0; len < maxlen; len++, s++) {
++ if (!*s)
++ break;
++ }
++ return (len);
++}
++
+ static GstBuffer *
+ gst_qt_mux_prepare_tx3g_buffer (GstQTPad * qtpad, GstBuffer * buf,
+ GstQTMux * qtmux)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151010/1e5c885d/attachment.html>
More information about the macports-changes
mailing list