1 | # $Id: Portfile 14131 2006-10-02 23:45:21Z lefevre $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name vorbis-tools |
---|
5 | version 1.1.1 |
---|
6 | revision 1 |
---|
7 | categories audio |
---|
8 | maintainers toby@opendarwin.org |
---|
9 | description The Ogg Vorbis CODEC tools |
---|
10 | long_description \ |
---|
11 | Ogg Vorbis is a fully Open, non-proprietary, patent-and-royalty-free, \ |
---|
12 | general-purpose compressed audio format for mid to high quality \ |
---|
13 | (8kHz-48.0kHz, 16+ bit, polyphonic) audio and music at fixed and \ |
---|
14 | variable bitrates from 16 to 128 kbps/channel. This places Vorbis in \ |
---|
15 | the same competetive class as audio representations such as MPEG-4 \ |
---|
16 | (AAC), and similar to, but higher performance than MPEG-1/2 audio \ |
---|
17 | layer 3, MPEG-4 audio (TwinVQ), WMA and PAC. |
---|
18 | homepage http://www.xiph.org/ogg/vorbis/ |
---|
19 | platforms darwin |
---|
20 | master_sites http://downloads.xiph.org/releases/vorbis/ |
---|
21 | checksums sha1 a1394b39905b389d72f12c2a9f0c86a33d07a487 |
---|
22 | depends_lib lib:libogg.0:libogg lib:libvorbis.0:libvorbis \ |
---|
23 | lib:libcurl.2:curl |
---|
24 | configure.env LDFLAGS="-L${prefix}/lib" \ |
---|
25 | CPPFLAGS="-I${prefix}/include -no-cpp-precomp" |
---|
26 | configure.args --mandir=${prefix}/share/man \ |
---|
27 | --without-ao \ |
---|
28 | --disable-ogg123 \ |
---|
29 | --without-flac \ |
---|
30 | --without-speex |
---|
31 | |
---|
32 | # Patches from the Debian vorbis-tools package (version 1.1.1-6). |
---|
33 | patchfiles debian-patches |
---|
34 | patch.pre_args -p1 |
---|
35 | |
---|
36 | variant player { |
---|
37 | depends_lib-append lib:libao.2:libao |
---|
38 | configure.args-delete --without-ao --disable-ogg123 |
---|
39 | configure.args-append --with-ao --enable-ogg123 |
---|
40 | } |
---|
41 | |
---|
42 | variant flac { |
---|
43 | depends_lib-append lib:libFLAC.7:flac |
---|
44 | configure.args-delete --without-flac |
---|
45 | configure.args-append --with-flac |
---|
46 | } |
---|
47 | |
---|
48 | variant speex { |
---|
49 | depends_lib-append lib:libspeex.1:speex |
---|
50 | configure.args-delete --without-speex |
---|
51 | configure.args-append --with-speex |
---|
52 | } |
---|
53 | |
---|
54 | post-destroot { |
---|
55 | file delete -force ${destroot}${prefix}/share/locale/locale.alias |
---|
56 | file delete -force ${destroot}${prefix}/lib/charset.alias |
---|
57 | } |
---|