# $Id: Portfile,v 1.1 2005/12/09 02:08:53 yves Exp $

PortSystem 1.0
name			niffsdk
version			1.02
categories		devel print audio
platforms		darwin
maintainers		yves@opendarwin.org
description		Notation Interchange File Format
long_description \
    A free, public domain, platform independent \
    Software Developer's Kit for software developers implementing NIFF. \
    This is a standard digital format for the representation \
    of standard musical notation. The format is very flexible, \
    allowing for simple implementations with minimal graphical information, \
    or much more elaborate descriptions including all aspects of page layout, \
    associated midi data, custom symbols, etc. 

homepage	http://www.musique.umontreal.ca/personnel/Belkin/NIFF.doc.html

master_sites        http://www.musique.umontreal.ca/personnel/Belkin/N/
extract.suffix      .tar
extract.cmd         cat
extract.pre_args    ""
checksums           md5 5efcd845a9d9d720a73c47444e7fbb3f

worksrcdir          ${name}${version}

patch {
    reinplace "s|stdcriff |stdcriff|" \
        ${worksrcpath}/riffio/src/lib/stdcriff/Makefile
}

configure.pre_args  --prefix=${destroot}${prefix}

post-destroot {
    cd ${worksrcpath}
    system "find . -name *.h -exec install -m 644 {} \
        ${destroot}${prefix}/include \\;"
}

