Ticket #19364: Portfile

File Portfile, 2.2 KB (added by ruud@…, 15 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem          1.0
5
6name                mkvtoolnix
7version             2.7.0
8categories          multimedia
9maintainers         <nomaintainer>
10description         Matroska media files manipulation tools.
11long_description    mkvtoolnix will evolve to a set of tools to create, \
12                    alter and inspect Matroska files under Linux and other \
13                    Unices, just what the OGMtools do for the OGM format.
14homepage            http://www.bunkus.org/videotools/mkvtoolnix/
15platforms           darwin
16master_sites        ${homepage}sources/
17use_bzip2           yes
18checksums           md5 68448f25eeb1e65384de4979cfdc8ac9 \
19                    sha1 d444986d68f1bc243cc6443b3e37f8c0d6d3a670 \
20                    rmd160 b068108ef81fd6d0ea9143a9c460dff281dd2ef1
21depends_lib         port:boost \
22                    port:expat \
23                    port:libogg \
24                    port:libmatroska \
25                    port:libvorbis \
26                    port:pcre \
27                    port:zlib
28configure.args      --mandir=${prefix}/share/man \
29                    --with-boost-regex=boost_regex-mt \
30                    --with-extra-libs=${prefix}/lib \
31                    --with-extra-includes=${prefix}/include \
32                    --without-flac \
33                    --disable-gui \
34                    --disable-wxwidgets
35default_variants    +flac
36
37variant wxwidgets description {Build with the wxWidgets GUI} {
38    depends_lib-append port:wxWidgets
39    configure.args-delete \
40        --diable-gui \
41        --disable-wxwidgets
42    configure.args-append \
43        --enable-gui \
44        --enable-wxwidgets
45}
46
47variant flac description {FLAC support} {
48    depends_lib-append port:flac
49    configure.args-delete --without-flac
50    configure.args-append --with-flac
51}
52
53variant bzip2 description {bzip2 compression support, zlib is more common} {
54    depends_lib-append port:bzip2
55    configure.args-append --enable-bzip2
56}
57
58variant lzo description {lzo compression support, zlib is more common} {
59    depends_lib-append port:lzo
60    configure.args-append --enable-lzo
61}