diff options
author | lioux <lioux@FreeBSD.org> | 2004-11-14 03:01:48 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2004-11-14 03:01:48 +0800 |
commit | ab635d746b85036a66c9ed4460037a7ab4e28831 (patch) | |
tree | d0a527f0e6faac89066b95700aea1337136f3557 /multimedia/kmplayer | |
parent | 55da8ee9103cfa30c548e98a8c146127bc50bb4e (diff) | |
download | freebsd-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')
-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 2f513198ca2d..0efc4d5a983b 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 000000000000..46f2385ad52a --- /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; + } + + //----------------------------------------------------------------------------- |