Ticket #3101: Portfile

File Portfile, 1.4 KB (added by sailgreg@…, 20 years ago)

Portfile

Line 
1# $Id: Portfile,v 1.13 2004/12/20 02:48:18 toby Exp $
2
3PortSystem 1.0
4name            mpg123
5version         pre0.59s
6revision        0
7categories      audio
8maintainers     danchr@opendarwin.org
9description     fast mp3 player for linux and unix systems
10long_description        \
11        Mpg123 is a fast, free and portable MPEG audio player for Unix. It \
12        supports MPEG 1.0/2.0 layers 1, 2 and 3. For full CD quality \
13        playback (44 kHz, 16 bit, stereo) a Pentium, SPARCstation10, DEC \
14        Alpha or similar CPU is required. Mono and/or reduced quality \
15        playback (22 kHz or 11 kHz) is even possible on 486 CPUs. \
16        \
17        This version uses EsounD on a pure Darwin install and CoreAudio \
18        on Mac OS X.
19
20homepage        http://www.mpg123.de/
21platforms       darwin
22master_sites    http://www.mpg123.de/mpg123/
23checksums       md5 a63675b0ea7990d4a7d7e7e14f23a3e4
24worksrcdir      ${name}
25depends_lib     lib:libaudiofile.0:audiofile
26post-patch {
27        reinplace "s|PREFIX=/usr/local|PREFIX=${prefix}|g" "${worksrcpath}/Makefile"   
28}
29configure       {}
30build.args      LDFLAGS=-L${prefix}/lib \
31        CPPFLAGS=-I${prefix}/include
32destroot.destdir        PREFIX=${destroot}/${prefix}
33
34variant puredarwin { }
35
36variant darwin {
37        if { ! [variant_isset puredarwin] } {
38                depends_lib-append \
39                                lib:/Library/Frameworks/CoreAudio.framework:XXX
40                patchfiles      patch-audio_macosx.diff patch-makefile.diff
41                build.target    macosx
42        } else {
43               depends_lib-append lib:libesd.0:esound
44               patchfiles       patch-Makefile
45               build.target     darwin-esd
46        }
47}