# $Id: Portfile 75770 2011-02-08 00:39:31Z jmr@macports.org $

PortSystem 1.0
name           csound
version        4.23f13gbs.0
categories     audio
maintainers    nomaintainer
description    A language that is used to describe sound synthesizers.
long_description \
    Csound is a computer programming language for dealing with sound. \
    It is called Csound because it is written in the C programming language, \
    as opposed to some of its predecessors. \
    Csound was written at MIT by Barry Vercoe, \
    based on an earlier language called Music360. \
    It is free software, available under the LGPL.

homepage       http://www.csounds.com
platforms      darwin
master_sites   sourceforge
checksums      md5 2fd893dfa0256f64fb20dc8772f0c051
depends_lib    port:fltk

# fltk is 32-bit only
supported_archs i386 ppc

configure.args --infodir=${prefix}/share/info

post-build {
    system "cd ${worksrcpath}/flcsound/dmg && make"
}
post-destroot {
    xinstall -d ${destroot}${applications_dir}/${name}
    file copy ${worksrcpath}/flcsound/dmg/flCsound.app \
        ${destroot}${applications_dir}/${name}
    file delete -force ${destroot}${prefix}/bin/flcsound \
        ${destroot}${prefix}/share/info/dir
}
