pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/xmms-meta-timidity Import xmms-meta-timidity-0.1...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e6fa7a15948d
branches:  trunk
changeset: 465211:e6fa7a15948d
user:      ben <ben%pkgsrc.org@localhost>
date:      Wed Dec 24 00:11:16 2003 +0000

description:
Import xmms-meta-timidity-0.1, a XMMS meta input script for timidity.

This allows XMMS to play MIDI files using timidity.

diffstat:

 audio/xmms-meta-timidity/DESCR             |   2 ++
 audio/xmms-meta-timidity/Makefile          |  27 +++++++++++++++++++++++++++
 audio/xmms-meta-timidity/PLIST             |   2 ++
 audio/xmms-meta-timidity/distinfo          |   1 +
 audio/xmms-meta-timidity/files/timidity.sh |  18 ++++++++++++++++++
 5 files changed, 50 insertions(+), 0 deletions(-)

diffs (70 lines):

diff -r 8d0c9874c371 -r e6fa7a15948d audio/xmms-meta-timidity/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/xmms-meta-timidity/DESCR    Wed Dec 24 00:11:16 2003 +0000
@@ -0,0 +1,2 @@
+This is an input script for xmms-meta-input which allows xmms to play
+MIDI files using timidity.
diff -r 8d0c9874c371 -r e6fa7a15948d audio/xmms-meta-timidity/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/xmms-meta-timidity/Makefile Wed Dec 24 00:11:16 2003 +0000
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/12/24 00:11:16 ben Exp $
+#
+
+DISTNAME=              xmms-meta-timidity-0.1
+WRKSRC=                        ${WRKDIR}
+CATEGORIES=            audio
+MASTER_SITES=          # empty
+DISTFILES=             # empty
+
+MAINTAINER=            ben%netbsd.org@localhost
+HOMEPAGE=              # empty
+COMMENT=               XMMS meta input script for timidity
+
+DEPENDS+=              timidity-[0-9]*:../../audio/timidity
+DEPENDS+=              eawpatches-[0-9]*:../../audio/eawpatches
+
+USE_BUILDLINK2=                yes
+
+do-build:
+       ${SED} "s,XXXPREFIXXXX,${PREFIX},g" \
+               <${FILESDIR}/timidity.sh >${WRKSRC}/timidity.sh
+
+do-install:
+       ${INSTALL_SCRIPT} ${WRKSRC}/timidity.sh ${PREFIX}/lib/xmms/Input/Meta
+
+.include "../../audio/xmms-meta-input/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 8d0c9874c371 -r e6fa7a15948d audio/xmms-meta-timidity/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/xmms-meta-timidity/PLIST    Wed Dec 24 00:11:16 2003 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/12/24 00:11:16 ben Exp $
+lib/xmms/Input/Meta/timidity.sh
diff -r 8d0c9874c371 -r e6fa7a15948d audio/xmms-meta-timidity/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/xmms-meta-timidity/distinfo Wed Dec 24 00:11:16 2003 +0000
@@ -0,0 +1,1 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/12/24 00:11:16 ben Exp $
diff -r 8d0c9874c371 -r e6fa7a15948d audio/xmms-meta-timidity/files/timidity.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/xmms-meta-timidity/files/timidity.sh        Wed Dec 24 00:11:16 2003 +0000
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+case "$1" in
+play)
+       XXXPREFIXXXX/bin/timidity -U -idq -Or -o - -s 44100 "$2"
+       exit 0
+       ;;
+isOurFile)
+       file - <"$2" | grep -q MIDI
+       if [ $? -eq 0 ]
+       then
+               exit 0
+       else
+               exit 1
+       fi
+       ;;
+esac
+exit 1



Home | Main Index | Thread Index | Old Index