source: trunk/dports/audio/csound/Portfile

Last change on this file was 90524, checked in by jmr@…, 6 years ago

csound: fix case of CoreMIDI

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 90524 2012-03-08 05:06:29Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name           csound
6set branch     5.16
7version        ${branch}.6
8categories     audio
9license        LGPL-2.1+
10maintainers    nomaintainer
11description    A language that is used to describe sound synthesizers.
12long_description \
13    Csound is a computer programming language for dealing with sound. \
14    It is called Csound because it is written in the C programming language, \
15    as opposed to some of its predecessors. \
16    Csound was written at MIT by Barry Vercoe, \
17    based on an earlier language called Music360.
18
19homepage       http://www.csounds.com/
20platforms      darwin
21master_sites   sourceforge:project/csound/csound5/csound${branch}
22distname       Csound${version}
23# no bz2 for 5.16.6
24#use_bzip2      yes
25checksums      md5 bfca0a5e521781e253fe8ae457bbb9c3 \
26               sha1 28bbf5d34ee5bb11dc1d50fb122b5a706d317c33 \
27               rmd160 49f3f7af3cfca6e129750564822698f4d2433329
28depends_lib    path:bin/fltk-config:fltk port:libsndfile port:gettext
29depends_build  port:scons
30
31# fltk is 32-bit only
32supported_archs i386 ppc
33
34patchfiles     SConstruct.patch pluginSDK_SConstruct.patch \
35               custom-osx.py.patch InOut_widgets.cpp.patch CoreMIDI_case.patch
36post-patch {
37    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/custom-osx.py
38    reinplace "s|__CFLAGS__|${configure.cflags}|" ${worksrcpath}/custom-osx.py
39    reinplace "s|__CXXFLAGS__|${configure.cxxflags}|" ${worksrcpath}/custom-osx.py
40    reinplace "s|__ARCHFLAGS__|'[join ${configure.cc_archflags} "', '"]'|" ${worksrcpath}/custom-osx.py
41    reinplace "s|__FRAMEWORKS_DIR__|${frameworks_dir}|g" ${worksrcpath}/SConstruct
42    platform darwin {
43        copy ${worksrcpath}/custom-osx.py ${worksrcpath}/custom.py
44    }
45}
46
47use_configure  no
48
49build.cmd      ${prefix}/bin/scons
50build.target
51build.args     prefix=${prefix} CC=${configure.cc} CXX=${configure.cxx} \
52               usePortAudio=0 usePortMIDI=0 useJack=0 useFLTK=1 \
53               buildCsound5GUI=1 buildRelease=1 dynamicCsoundLibrary=1 \
54               instdir=${destroot}
55build.post_args install=0
56destroot.args  ${build.args}
57destroot.target install=1 install
58destroot.destdir
59
60post-destroot {
61    copy ${worksrcpath}/frontends/fltk_gui/Csound5GUI.app \
62         ${destroot}${applications_dir}
63}
Note: See TracBrowser for help on using the repository browser.