# $Id: Portfile 66350 2010-04-09 16:47:42Z mww@macports.org $

PortSystem 1.0

name			abcMIDI
version			2010-04-08
categories		audio
platforms		darwin
maintainers		mww
description		ABC to midi and vice versa converter
long_description	ABC is a text-based music notation language. These \
				tools can convert ABC to midi and vice versa.

homepage		http://ifdo.pugmarks.com/~seymour/runabc/top.html
master_sites	http://ifdo.pugmarks.com/~seymour/runabc/
checksums           md5     fa0fdb9dc10404b8adb17d9b7c10ea0e \
                    sha1    ea8f21fe8d8e65e0096bb22073e1211bb4d1be31 \
                    rmd160  ecd1d0e109170d5d3343054bd26bc9208f4bba70
patchfiles		patch-makefile.diff

worksrcdir		abcmidi

use_zip			yes
post-extract { xinstall -m 755 ${filespath}/configure ${worksrcpath} }

configure.pre_args	PREFIX=${prefix}

destroot	{
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 755 -W ${worksrcpath} abc2abc abc2midi mftext midi2abc \
		yaps ${destroot}${prefix}/bin
	xinstall -m 644 -W ${worksrcpath}/doc abc2abc.1 abc2midi.1 mftext.1 \
		midi2abc.1 yaps.1 ${destroot}${prefix}/share/man/man1
	xinstall -m 644 -W ${worksrcpath}/doc AUTHORS CHANGES abcguide.txt gpl.txt \
		history.txt readme.txt yapshelp.txt \
		${destroot}${prefix}/share/doc/${name}
}

livecheck.type	regex
livecheck.url	${homepage}
livecheck.regex	(20\[0-9\]+-\[0-9\]+-\[0-9\]+)

