aboutsummaryrefslogtreecommitdiff
path: root/multimedia/kmplayer-kde4
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2004-11-13 19:01:48 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2004-11-13 19:01:48 +0000
commit26716c88ed4ff104cb8883798ba355f0eec56717 (patch)
tree2412410b6f58705a925b80783750a86bed700c0d /multimedia/kmplayer-kde4
parentc5d3398e2f3b3090afde0a7e79069670169dda8a (diff)
downloadports-26716c88ed4ff104cb8883798ba355f0eec56717.tar.gz
ports-26716c88ed4ff104cb8883798ba355f0eec56717.zip
Notes
Diffstat (limited to 'multimedia/kmplayer-kde4')
-rw-r--r--multimedia/kmplayer-kde4/Makefile8
-rw-r--r--multimedia/kmplayer-kde4/files/extra-patch-src::kmplayerplaylist.cpp11
2 files changed, 18 insertions, 1 deletions
diff --git a/multimedia/kmplayer-kde4/Makefile b/multimedia/kmplayer-kde4/Makefile
index 2f513198ca2d..0efc4d5a983b 100644
--- a/multimedia/kmplayer-kde4/Makefile
+++ b/multimedia/kmplayer-kde4/Makefile
@@ -14,7 +14,8 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:C/\.r/-rc/}
MAINTAINER= lioux@FreeBSD.org
COMMENT= KDE frontend to mplayer
-EXTRA_PATCHES= ${.CURDIR}/../../x11/kde3/files/extrapatch-configure
+#EXTRA_PATCHES= ${.CURDIR}/../../x11/kde3/files/extrapatch-configure
+EXTRA_PATCHES= ${PORTSDIR}/x11/kde3/files/extrapatch-configure
RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer
@@ -52,4 +53,9 @@ LIB_DEPENDS+= xine:${PORTSDIR}/multimedia/libxine
PLIST_FILES= bin/kxineplayer
.endif
+# GCC < 3.1
+.if ${OSVERSION} < 500035
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src::kmplayerplaylist.cpp
+.endif
+
.include <bsd.port.post.mk>
diff --git a/multimedia/kmplayer-kde4/files/extra-patch-src::kmplayerplaylist.cpp b/multimedia/kmplayer-kde4/files/extra-patch-src::kmplayerplaylist.cpp
new file mode 100644
index 000000000000..46f2385ad52a
--- /dev/null
+++ b/multimedia/kmplayer-kde4/files/extra-patch-src::kmplayerplaylist.cpp
@@ -0,0 +1,11 @@
+--- src/kmplayerplaylist.cpp.orig Sat Nov 13 16:01:42 2004
++++ src/kmplayerplaylist.cpp Sat Nov 13 16:02:02 2004
+@@ -293,7 +293,7 @@
+ else
+ kdError () << "Warning: unhandled MediaType attr: " << attr << "=" << atts.value (i) << endl;
+ }
+- kdDebug () << "MediaType attr found bitrate: " << bitrate << " src: " << (src.isEmpty() ? "-" : src) << " type: " << (mimetype.isEmpty() ? "-" : mimetype) << endl;
++ kdDebug () << "MediaType attr found bitrate: " << bitrate << " src: " << (src.isEmpty() ? "-" : (const char *) src) << " type: " << (mimetype.isEmpty() ? "-" : (const char *) mimetype) << endl;
+ }
+
+ //-----------------------------------------------------------------------------