Ticket #23670: Portfile

File Portfile, 1.4 KB (added by gchaynes@…, 15 years ago)

Portfile for portmidi SVN revision 201

Line 
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
3PortSystem 1.0
4name            portmidi
5version         201
6categories      audio devel
7platforms       macosx
8maintainers     nomaintainer
9homepage        http://portmedia.sourceforge.net
10
11description     Free, cross platform, open-source, real-time MIDI I/O library.
12long_description ${description} 
13
14fetch.type      svn
15svn.revision    201
16svn.url         http://portmedia.svn.sourceforge.net/svnroot/portmedia/portmidi/trunk
17use_configure   no
18worksrcdir      trunk
19
20post-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
25build.cmd       make -f pm_mac/Makefile.osx
26
27destroot {
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 -${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}