Ticket #3265: vorbis-tools-Portfile

File vorbis-tools-Portfile, 1.8 KB (added by namely_void@…, 19 years ago)

New portfile for vorbis-tools

Line 
1# $Id: Portfile,v 1.12 2004/04/21 05:44:42 toby Exp $
2
3PortSystem 1.0
4name             vorbis-tools
5version          1.0.1
6revision         1
7categories       audio
8maintainers      toby@opendarwin.org
9description      The Ogg Vorbis CODEC tools
10long_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.
18homepage         http://www.xiph.org/ogg/vorbis/
19platforms        darwin
20master_sites     http://www.vorbis.com/files/1.0.1/unix/
21checksums        md5 80d3ae3bbae2a488d433d86b8fd64777
22depends_lib      lib:libogg.0:libogg lib:libvorbis.0:libvorbis \
23                 lib:libcurl.2:curl
24configure.env    LDFLAGS="-L${prefix}/lib" \
25                 CPPFLAGS="-I${prefix}/include -no-cpp-precomp"
26configure.args   --mandir=${prefix}/share/man \
27                        --without-ao \
28                        --disable-ogg123 \
29                        --without-flac \
30                        --without-speex
31
32variant player {
33        depends_lib-append      lib:libao.2:libao
34        configure.args-delete   --without-ao \
35                                --disable-ogg123
36        configure.args-append   --with-ao \
37                                --enable-ogg123
38}
39
40variant flac {
41        depends_lib-append      lib:libFLAC.7:flac
42        configure.args-delete   --without-flac
43        configure.args-append   --with-flac
44}
45
46variant speex {
47        depends_lib-append      lib:libspeex.1:speex
48        configure.args-delete   --without-speex
49        configure.args-append   --with-speex
50}
51
52post-destroot {
53        file delete -force ${destroot}${prefix}/share/locale/locale.alias
54        file delete -force ${destroot}${prefix}/lib/charset.alias
55}
56