aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/kmplayer-kde4
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2004-11-14 03:01:48 +0800
committerlioux <lioux@FreeBSD.org>2004-11-14 03:01:48 +0800
commitab635d746b85036a66c9ed4460037a7ab4e28831 (patch)
treed0a527f0e6faac89066b95700aea1337136f3557 /multimedia/kmplayer-kde4
parent55da8ee9103cfa30c548e98a8c146127bc50bb4e (diff)
downloadfreebsd-ports-gnome-ab635d746b85036a66c9ed4460037a7ab4e28831.tar.gz
freebsd-ports-gnome-ab635d746b85036a66c9ed4460037a7ab4e28831.tar.zst
freebsd-ports-gnome-ab635d746b85036a66c9ed4460037a7ab4e28831.zip
Fix build if < 500035 (GCC < 3.1)
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;
+ }
+
+ //-----------------------------------------------------------------------------