aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2011-10-23 23:06:30 +0800
committerkwm <kwm@FreeBSD.org>2011-10-23 23:06:30 +0800
commit52d9b85779b2f2b3e32fbc146ecb552a866b64a4 (patch)
tree6a8297ba8f6497091ff5e9dda93bde5802e0ca95 /multimedia
parent800e1c77972f173766796a837521e4ae4e175270 (diff)
downloadfreebsd-ports-gnome-52d9b85779b2f2b3e32fbc146ecb552a866b64a4.tar.gz
freebsd-ports-gnome-52d9b85779b2f2b3e32fbc146ecb552a866b64a4.tar.zst
freebsd-ports-gnome-52d9b85779b2f2b3e32fbc146ecb552a866b64a4.zip
Fix the build when libquvi is installed. [1]
Add optional depend on libquvi. PR: ports/161909 [1] Submitted by: Kurt Jaeger <fbsd-ports@opsec.eu>
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/totem-pl-parser/Makefile12
-rw-r--r--multimedia/totem-pl-parser/files/patch-plparse_totem-pl-parser-videosite.c27
2 files changed, 39 insertions, 0 deletions
diff --git a/multimedia/totem-pl-parser/Makefile b/multimedia/totem-pl-parser/Makefile
index fa13547cd6a1..55f3893eab11 100644
--- a/multimedia/totem-pl-parser/Makefile
+++ b/multimedia/totem-pl-parser/Makefile
@@ -29,4 +29,16 @@ USE_AUTOTOOLS= libtool
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
+OPTIONS= QUVI "Enable flash media stream URL support" off
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_QUVI)
+LIB_DEPENDS+= quvi.7:${PORTSDIR}/multimedia/libquvi
+CONFIGURE_ARGS+=--enable-enable-quvi
+.else
+CONFIGURE_ARGS+=--enable-enable-quvi=no
+.endif
+
.include <bsd.port.mk>
+
diff --git a/multimedia/totem-pl-parser/files/patch-plparse_totem-pl-parser-videosite.c b/multimedia/totem-pl-parser/files/patch-plparse_totem-pl-parser-videosite.c
new file mode 100644
index 000000000000..ab53dc858e24
--- /dev/null
+++ b/multimedia/totem-pl-parser/files/patch-plparse_totem-pl-parser-videosite.c
@@ -0,0 +1,27 @@
+--- plparse/totem-pl-parser-videosite.c.orig 2010-12-14 15:39:59.000000000 +0100
++++ plparse/totem-pl-parser-videosite.c 2011-10-22 22:45:40.317902126 +0200
+@@ -75,7 +75,7 @@
+ #ifdef HAVE_QUVI
+ QUVIcode rc;
+ quvi_t handle;
+- quvi_video_t v;
++ quvi_media_t v;
+ char *uri;
+ /* properties */
+ const char *video_uri;
+@@ -100,13 +100,13 @@
+ return TOTEM_PL_PARSER_RESULT_ERROR;
+ }
+
+- getprop (QUVIPROP_VIDEOURL, video_uri);
+- if (quvi_getprop (v, QUVIPROP_VIDEOFILELENGTH, &length) == QUVI_OK)
++ getprop (QUVIPROP_MEDIAURL, video_uri);
++ if (quvi_getprop (v, QUVIPROP_MEDIACONTENTLENGTH, &length) == QUVI_OK)
+ length_str = g_strdup_printf ("%f", length);
+ else
+ length_str = NULL;
+ getprop (QUVIPROP_PAGETITLE, title);
+- getprop (QUVIPROP_VIDEOID, id);
++ getprop (QUVIPROP_MEDIAID, id);
+ getprop (QUVIPROP_PAGEURL, page_uri);
+ getprop (QUVIPROP_STARTTIME, starttime); \ No newline at end of file