diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-02-09 07:54:39 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-02-09 07:54:39 +0800 |
commit | f76da711fc207a10cb346b8a51aadab22d7e7eda (patch) | |
tree | dd10b547d608f8263b38cb82290aea901e40f39a /multimedia | |
parent | b21255e9b67cee4df16cfd4ae6bea68d739c6a59 (diff) | |
download | marcuscom-ports-f76da711fc207a10cb346b8a51aadab22d7e7eda.tar marcuscom-ports-f76da711fc207a10cb346b8a51aadab22d7e7eda.tar.gz marcuscom-ports-f76da711fc207a10cb346b8a51aadab22d7e7eda.tar.bz2 marcuscom-ports-f76da711fc207a10cb346b8a51aadab22d7e7eda.tar.lz marcuscom-ports-f76da711fc207a10cb346b8a51aadab22d7e7eda.tar.xz marcuscom-ports-f76da711fc207a10cb346b8a51aadab22d7e7eda.tar.zst marcuscom-ports-f76da711fc207a10cb346b8a51aadab22d7e7eda.zip |
Add kmplayer at version 0.8.4-rc5 with new USE_GSTREAMER macro
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3591 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/kmplayer/Makefile | 83 | ||||
-rw-r--r-- | multimedia/kmplayer/distinfo | 2 | ||||
-rw-r--r-- | multimedia/kmplayer/files/extra-patch-src::kmplayerplaylist.cpp | 11 | ||||
-rw-r--r-- | multimedia/kmplayer/files/patch-src::kmplayer.desktop | 11 | ||||
-rw-r--r-- | multimedia/kmplayer/pkg-descr | 5 | ||||
-rw-r--r-- | multimedia/kmplayer/pkg-plist | 54 |
6 files changed, 166 insertions, 0 deletions
diff --git a/multimedia/kmplayer/Makefile b/multimedia/kmplayer/Makefile new file mode 100644 index 000000000..ccb384789 --- /dev/null +++ b/multimedia/kmplayer/Makefile @@ -0,0 +1,83 @@ +# New ports collection makefile for: KMplayer +# Date created: Jan 31, 2003 +# Whom: will +# +# $FreeBSD: ports/multimedia/kmplayer/Makefile,v 1.18 2005/01/10 00:48:49 lioux Exp $ +# + +PORTNAME= kmplayer +DISTVERSION= 0.8.4-rc5 +CATEGORIES= multimedia audio kde +MASTER_SITES= http://www.xs4all.nl/%7Ejjvrieze/ +#DISTNAME= ${PORTNAME}-${PORTVERSION:C/\.r/-rc/} + +MAINTAINER= lioux@FreeBSD.org +COMMENT= KDE frontend to mplayer + +RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer + +USE_BZIP2= yes +USE_KDEBASE_VER=3 +USE_XLIB= yes +USE_GMAKE= yes +USE_REINPLACE= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +CONFIGURE_TARGET= +CONFIGURE_ARGS+=--with-x=${X11BASE} --disable-debug + +OPTIONS= GSTREAMER "Enable support for video playback using gstreamer" off \ + XINE "Enable support for video playback using libxine" off + +WANT_GSTREAMER= yes + +### +## Lib Detection +### +# gstreamer +.if exists(${X11BASE}/lib/libgstplay-0.8.so) +WITH_GSTREAMER=yes +.endif +# xine +.if exists(${X11BASE}/lib/libxine.so) +WITH_XINE=yes +.endif + +post-patch: +# remove -pedantic where possible to fix build errors on -CURRENT +# remove optimizations + @${REINPLACE_CMD} -e \ + 's|-O2||; s|-pedantic ||' \ + ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} +# do not try to roll our own mimetypes + @${REINPLACE_CMD} -E -e \ + 's|^(SUBDIRS.*)mimetypes|\1|' \ + ${WRKSRC}/Makefile.in + +.include <bsd.port.pre.mk> + +### +## Support Activation +### +# gstreamer +.undef WITH_GSTREAMER +.if defined(WITH_GSTREAMER) +USE_GSTREAMER+= yes + +PLIST_FILES+= bin/kgstplayer +.else +CONFIGURE_ARGS+= --without-gstreamer +.endif +# xine +.if defined(WITH_XINE) +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/distinfo b/multimedia/kmplayer/distinfo new file mode 100644 index 000000000..9cb6be5ea --- /dev/null +++ b/multimedia/kmplayer/distinfo @@ -0,0 +1,2 @@ +MD5 (kmplayer-0.8.4-rc5.tar.bz2) = c15d792dc40c81a015262bad6323b053 +SIZE (kmplayer-0.8.4-rc5.tar.bz2) = 577487 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 000000000..46f2385ad --- /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; + } + + //----------------------------------------------------------------------------- diff --git a/multimedia/kmplayer/files/patch-src::kmplayer.desktop b/multimedia/kmplayer/files/patch-src::kmplayer.desktop new file mode 100644 index 000000000..d511ad2df --- /dev/null +++ b/multimedia/kmplayer/files/patch-src::kmplayer.desktop @@ -0,0 +1,11 @@ +--- src/kmplayer.desktop.orig Wed Nov 10 23:22:35 2004 ++++ src/kmplayer.desktop Wed Nov 10 23:24:51 2004 +@@ -35,7 +35,7 @@ + Name[sv]=Kmplayer + Name[ta]=கேஎம்இயக்கி + Name[xx]=xxKMPlayerxx +-MimeType=audio/x-mp3;audio/mpegurl;audio/x-pn-realaudio;audio/x-scpls;audio/x-vorbis;application/x-kmplayer;application/x-mplayer2;application/x-ogg;audio/x-mp2;video/mpeg;audio/x-mpegurl;audio/x-wav;audio/x-mod;video/x-avi;video/x-ms-asf;video/x-ms-wmp;video/x-ms-wmv;video/x-msvideo;video/quicktime;video/x-flic; ++MimeType=audio/x-mp3;audio/x-pn-realaudio;audio/x-scpls;audio/x-vorbis;application/x-kmplayer;application/x-mplayer2;application/x-ogg;video/mpeg;audio/x-mpegurl;audio/x-wav;audio/x-mod;video/x-ms-wmp;video/x-ms-wmv;video/x-msvideo;video/quicktime;video/x-flic;application/vnd.ms-asf;application/vnd.rn-realmedia;audio/ac3;audio/vorbis;audio/x-matroska;video/x-matroska;video/x-ogm; + InitialPreference=7 + Categories=Qt;KDE;AudioVideo + GenericName=Media Player diff --git a/multimedia/kmplayer/pkg-descr b/multimedia/kmplayer/pkg-descr new file mode 100644 index 000000000..e47d8ab1f --- /dev/null +++ b/multimedia/kmplayer/pkg-descr @@ -0,0 +1,5 @@ +KDE frontend to mplayer + +WWW: http://www.xs4all.nl/~jjvrieze/ + +-- will@freebsd.org diff --git a/multimedia/kmplayer/pkg-plist b/multimedia/kmplayer/pkg-plist new file mode 100644 index 000000000..d80339eea --- /dev/null +++ b/multimedia/kmplayer/pkg-plist @@ -0,0 +1,54 @@ +bin/kmplayer +bin/kxvplayer +lib/kde3/kmplayer.la +lib/kde3/kmplayer.so +lib/kde3/libkmplayerpart.la +lib/kde3/libkmplayerpart.so +lib/libkdeinit_kmplayer.la +lib/libkdeinit_kmplayer.so +lib/libkmplayercommon.la +lib/libkmplayercommon.so +share/applications/kde/kmplayer.desktop +share/apps/kmplayer/bookmarks.xml +share/apps/kmplayer/kmplayerpartui.rc +share/apps/kmplayer/kmplayerui.rc +share/apps/kmplayer/pluginsinfo +share/config/kmplayerrc +share/icons/crystalsvg/scalable/apps/kmplayer.svgz +share/icons/hicolor/128x128/apps/kmplayer.png +share/icons/hicolor/16x16/apps/kmplayer.png +share/icons/hicolor/22x22/apps/kmplayer.png +share/icons/hicolor/32x32/apps/kmplayer.png +share/icons/hicolor/48x48/apps/kmplayer.png +share/icons/hicolor/64x64/apps/kmplayer.png +share/icons/hicolor/scalable/apps/kmplayer.svgz +share/services/kmplayer_part.desktop +share/services/mms.protocol +share/services/pnm.protocol +share/services/rtsp.protocol +@unexec rmdir %D/share/services 2>/dev/null || true +@unexec rmdir %D/share/icons/hicolor/scalable/apps 2>/dev/null || true +@unexec rmdir %D/share/icons/hicolor/scalable 2>/dev/null || true +@unexec rmdir %D/share/icons/hicolor/64x64/apps 2>/dev/null || true +@unexec rmdir %D/share/icons/hicolor/64x64 2>/dev/null || true +@unexec rmdir %D/share/icons/hicolor/48x48/apps 2>/dev/null || true +@unexec rmdir %D/share/icons/hicolor/48x48 2>/dev/null || true +@unexec rmdir %D/share/icons/hicolor/32x32/apps 2>/dev/null || true +@unexec rmdir %D/share/icons/hicolor/32x32 2>/dev/null || true +@unexec rmdir %D/share/icons/hicolor/22x22/apps 2>/dev/null || true +@unexec rmdir %D/share/icons/hicolor/22x22 2>/dev/null || true +@unexec rmdir %D/share/icons/hicolor/16x16/apps 2>/dev/null || true +@unexec rmdir %D/share/icons/hicolor/16x16 2>/dev/null || true +@unexec rmdir %D/share/icons/hicolor/128x128/apps 2>/dev/null || true +@unexec rmdir %D/share/icons/hicolor/128x128 2>/dev/null || true +@unexec rmdir %D/share/icons/hicolor 2>/dev/null || true +@unexec rmdir %D/share/icons/crystalsvg/scalable/apps 2>/dev/null || true +@unexec rmdir %D/share/icons/crystalsvg/scalable 2>/dev/null || true +@unexec rmdir %D/share/icons/crystalsvg 2>/dev/null || true +@unexec rmdir %D/share/icons 2>/dev/null || true +@unexec rmdir %D/share/config 2>/dev/null || true +@dirrm share/apps/kmplayer +@unexec rmdir %D/share/apps 2>/dev/null || true +@unexec rmdir %D/share/applications/kde 2>/dev/null || true +@unexec rmdir %D/share/applications 2>/dev/null || true +@unexec rmdir %D/lib/kde3 2>/dev/null || true |