1 | # $Id: Portfile 57378 2009-09-10 08:38:23Z ryandesign@macports.org $ |
---|
2 | # -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 |
---|
3 | PortSystem 1.0 |
---|
4 | name portmidi |
---|
5 | version 201 |
---|
6 | categories audio devel |
---|
7 | platforms macosx |
---|
8 | maintainers nomaintainer |
---|
9 | homepage http://portmedia.sourceforge.net |
---|
10 | |
---|
11 | description Free, cross platform, open-source, real-time MIDI I/O library. |
---|
12 | long_description ${description} |
---|
13 | |
---|
14 | fetch.type svn |
---|
15 | svn.revision 201 |
---|
16 | svn.url http://portmedia.svn.sourceforge.net/svnroot/portmedia/portmidi/trunk |
---|
17 | use_configure no |
---|
18 | worksrcdir trunk |
---|
19 | |
---|
20 | post-patch { |
---|
21 | reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/pm_mac/Makefile.osx |
---|
22 | reinplace "s|^ARCH|#ARCH|" ${worksrcpath}/pm_mac/Makefile.osx |
---|
23 | } |
---|
24 | |
---|
25 | build.cmd make -f pm_mac/Makefile.osx |
---|
26 | |
---|
27 | destroot { |
---|
28 | xinstall -c -m 644 ${worksrcpath}/pm_common/portmidi.h ${destroot}/${prefix}/include |
---|
29 | xinstall -c -m 644 ${worksrcpath}/porttime/porttime.h ${destroot}/${prefix}/include |
---|
30 | xinstall -c -m 644 ${worksrcpath}/Release/libportmidi_s.a ${destroot}/${prefix}/lib/libportmidi.a |
---|
31 | # xinstall -c -m 644 ${worksrcpath}/Release/libportmidi.dylib ${destroot}/${prefix}/lib |
---|
32 | xinstall -c -d ${destroot}/${prefix}/share/doc/${name} |
---|
33 | xinstall -c -m 644 -W ${worksrcpath} \ |
---|
34 | README.txt license.txt pm_mac/README_MAC.txt CHANGELOG.txt \ |
---|
35 | ${destroot}/${prefix}/share/doc/${name} |
---|
36 | } |
---|