1 | # $Id: Portfile,v 1.13 2004/12/20 02:48:18 toby Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name mpg123 |
---|
5 | version pre0.59s |
---|
6 | revision 0 |
---|
7 | categories audio |
---|
8 | maintainers danchr@opendarwin.org |
---|
9 | description fast mp3 player for linux and unix systems |
---|
10 | long_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 | |
---|
20 | homepage http://www.mpg123.de/ |
---|
21 | platforms darwin |
---|
22 | master_sites http://www.mpg123.de/mpg123/ |
---|
23 | checksums md5 a63675b0ea7990d4a7d7e7e14f23a3e4 |
---|
24 | worksrcdir ${name} |
---|
25 | depends_lib lib:libaudiofile.0:audiofile |
---|
26 | post-patch { |
---|
27 | reinplace "s|PREFIX=/usr/local|PREFIX=${prefix}|g" "${worksrcpath}/Makefile" |
---|
28 | } |
---|
29 | configure {} |
---|
30 | build.args LDFLAGS=-L${prefix}/lib \ |
---|
31 | CPPFLAGS=-I${prefix}/include |
---|
32 | destroot.destdir PREFIX=${destroot}/${prefix} |
---|
33 | |
---|
34 | variant puredarwin { } |
---|
35 | |
---|
36 | variant 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 | } |
---|