# $Id: Portfile 54865 2009-08-03 08:12:09Z mww@macports.org $

PortSystem 1.0

name			abcMIDI
version			2009-07-22
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     1e0ce7cb5810c14704ac56c48b5ba33e \
                    sha1    6604c18b03d9a3230e8e3af17bfb8888787bd6b6 \
                    rmd160  6cb8eecc2eb81856a4b61af688dad3485b5b47ef
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.check	regex
livecheck.url	${homepage}
livecheck.regex	(20\[0-9\]+-\[0-9\]+-\[0-9\]+)

