diff options
author | ben <ben@pkgsrc.org> | 2003-12-24 00:11:16 +0000 |
---|---|---|
committer | ben <ben@pkgsrc.org> | 2003-12-24 00:11:16 +0000 |
commit | 69841dfd135ea4de49835bbe5ae3e89607e8f7dc (patch) | |
tree | 11b093b6a9a6435a87155a187b16ef0603ac8c11 /audio/xmms-meta-timidity | |
parent | e4473afe582e9262b4f58c90b5e27d09fbafedc0 (diff) | |
download | pkgsrc-69841dfd135ea4de49835bbe5ae3e89607e8f7dc.tar.gz |
Import xmms-meta-timidity-0.1, a XMMS meta input script for timidity.
This allows XMMS to play MIDI files using timidity.
Diffstat (limited to 'audio/xmms-meta-timidity')
-rw-r--r-- | audio/xmms-meta-timidity/DESCR | 2 | ||||
-rw-r--r-- | audio/xmms-meta-timidity/Makefile | 27 | ||||
-rw-r--r-- | audio/xmms-meta-timidity/PLIST | 2 | ||||
-rw-r--r-- | audio/xmms-meta-timidity/distinfo | 1 | ||||
-rwxr-xr-x | audio/xmms-meta-timidity/files/timidity.sh | 18 |
5 files changed, 50 insertions, 0 deletions
diff --git a/audio/xmms-meta-timidity/DESCR b/audio/xmms-meta-timidity/DESCR new file mode 100644 index 00000000000..4a356b77759 --- /dev/null +++ b/audio/xmms-meta-timidity/DESCR @@ -0,0 +1,2 @@ +This is an input script for xmms-meta-input which allows xmms to play +MIDI files using timidity. diff --git a/audio/xmms-meta-timidity/Makefile b/audio/xmms-meta-timidity/Makefile new file mode 100644 index 00000000000..512068225fa --- /dev/null +++ b/audio/xmms-meta-timidity/Makefile @@ -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 +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 --git a/audio/xmms-meta-timidity/PLIST b/audio/xmms-meta-timidity/PLIST new file mode 100644 index 00000000000..b032ed5eb8d --- /dev/null +++ b/audio/xmms-meta-timidity/PLIST @@ -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 --git a/audio/xmms-meta-timidity/distinfo b/audio/xmms-meta-timidity/distinfo new file mode 100644 index 00000000000..c086a9a585e --- /dev/null +++ b/audio/xmms-meta-timidity/distinfo @@ -0,0 +1 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/12/24 00:11:16 ben Exp $ diff --git a/audio/xmms-meta-timidity/files/timidity.sh b/audio/xmms-meta-timidity/files/timidity.sh new file mode 100755 index 00000000000..aca89eb431e --- /dev/null +++ b/audio/xmms-meta-timidity/files/timidity.sh @@ -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 |