# $Id: Portfile 78474 2011-05-08 18:42:17Z mww@macports.org $

PortSystem 1.0

name			abcMIDI
version			2011-04-29
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     dcc6e7505700c656acd09999396126f2 \
                    sha1    26b5eb95d497ea22871e50b01fd66c8b90406543 \
                    rmd160  cdb7a95da1bad02d32418c5186483e93ad3957d1
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\]+)

