diff options
author | lioux <lioux@FreeBSD.org> | 2004-11-13 19:01:48 +0000 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2004-11-13 19:01:48 +0000 |
commit | ab635d746b85036a66c9ed4460037a7ab4e28831 (patch) | |
tree | d0a527f0e6faac89066b95700aea1337136f3557 /multimedia/kmplayer | |
parent | 55da8ee9103cfa30c548e98a8c146127bc50bb4e (diff) | |
download | FreeBSD-ports-ab635d746b85036a66c9ed4460037a7ab4e28831.zip FreeBSD-ports-ab635d746b85036a66c9ed4460037a7ab4e28831.tar.gz |
Fix build if < 500035 (GCC < 3.1)
Diffstat (limited to 'multimedia/kmplayer')
-rw-r--r-- | multimedia/kmplayer/Makefile | 8 | ||||
-rw-r--r-- | multimedia/kmplayer/files/extra-patch-src::kmplayerplaylist.cpp | 11 |
2 files changed, 18 insertions, 1 deletions
diff --git a/multimedia/kmplayer/Makefile b/multimedia/kmplayer/Makefile index 2f51319..0efc4d5 100644 --- a/multimedia/kmplayer/Makefile +++ b/multimedia/kmplayer/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/files/extra-patch-src::kmplayerplaylist.cpp b/multimedia/kmplayer/files/extra-patch-src::kmplayerplaylist.cpp new file mode 100644 index 0000000..46f2385 --- /dev/null +++ b/multimedia/kmplayer/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; + } + + //----------------------------------------------------------------------------- |