summaryrefslogtreecommitdiff
path: root/multimedia/kmplayer
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2004-01-29 22:11:01 +0000
committerjmmv <jmmv@pkgsrc.org>2004-01-29 22:11:01 +0000
commitfeb4c40337f46cffc59eca3303c5b95676579b2e (patch)
tree410befcd0e7204bcbbfe3cdb63e77bb36fb50b51 /multimedia/kmplayer
parentdc2a87fce4b091efa7f8003a36fcbf472de799f3 (diff)
downloadpkgsrc-feb4c40337f46cffc59eca3303c5b95676579b2e.tar.gz
Fix application launcher so that kmplayer can be started properly from the
KDE menu and from file context menus (i.e., "Open With" option). Based on patch from Murray Armfield. Bump PKGREVISION to 3.
Diffstat (limited to 'multimedia/kmplayer')
-rw-r--r--multimedia/kmplayer/Makefile10
-rw-r--r--multimedia/kmplayer/distinfo3
-rw-r--r--multimedia/kmplayer/patches/patch-ab13
3 files changed, 23 insertions, 3 deletions
diff --git a/multimedia/kmplayer/Makefile b/multimedia/kmplayer/Makefile
index 1aa7b5d6b90..b8f5807ea07 100644
--- a/multimedia/kmplayer/Makefile
+++ b/multimedia/kmplayer/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2004/01/26 13:08:20 jmmv Exp $
+# $NetBSD: Makefile,v 1.3 2004/01/29 22:11:01 jmmv Exp $
#
DISTNAME= kmplayer-0.8.2rc5
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= multimedia kde
MASTER_SITES= http://www.xs4all.nl/~jjvrieze/
EXTRACT_SUFX= .tar.bz2
@@ -25,6 +25,12 @@ USE_PERL5= build
SHLIBTOOL_OVERRIDE= ${WRKSRC}/libtool
+SUBST_CLASSES+= desktop
+SUBST_MESSAGE.desktop= "Fixing application launcher."
+SUBST_STAGE.desktop= pre-configure
+SUBST_FILES.desktop= src/kmplayer.desktop
+SUBST_SED.desktop= -e 's|@PREFIX@|${PREFIX}|g'
+
.include "../../devel/zlib/buildlink2.mk"
.include "../../graphics/jpeg/buildlink2.mk"
.include "../../graphics/png/buildlink2.mk"
diff --git a/multimedia/kmplayer/distinfo b/multimedia/kmplayer/distinfo
index 5d4056f8735..61cd4c49e71 100644
--- a/multimedia/kmplayer/distinfo
+++ b/multimedia/kmplayer/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/01/26 12:10:14 jmmv Exp $
+$NetBSD: distinfo,v 1.2 2004/01/29 22:11:01 jmmv Exp $
SHA1 (kmplayer-0.8.2rc5.tar.bz2) = 149b9ee63252de1e3ca11a1ed9ef066e2180ced5
Size (kmplayer-0.8.2rc5.tar.bz2) = 532645 bytes
SHA1 (patch-aa) = b1c68e8a214ddd9083792bff544887c072f18e24
+SHA1 (patch-ab) = 333935386b0b465092ad42651d1078563da082b0
diff --git a/multimedia/kmplayer/patches/patch-ab b/multimedia/kmplayer/patches/patch-ab
new file mode 100644
index 00000000000..afb1e67957b
--- /dev/null
+++ b/multimedia/kmplayer/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2004/01/29 22:11:01 jmmv Exp $
+
+--- src/kmplayer.desktop.orig 2004-01-13 18:37:01.000000000 +0100
++++ src/kmplayer.desktop
+@@ -2,7 +2,7 @@
+ [Desktop Entry]
+ Encoding=UTF-8
+ Type=Application
+-Exec=kmplayer -caption "%c" %i %m
++Exec=@PREFIX@/bin/kmplayer -caption "%c" %i %m
+ Icon=kmplayer.png
+ DocPath=kmplayer/index.html
+ Comment=KDE interface for MPlayer