source: trunk/dports/multimedia/mkvtoolnix/Portfile @ 110263

Last change on this file since 110263 was 110263, checked in by mojca@…, 6 years ago

mkvtoolnix: adapt to new wxWidgets-3.0 (without testing due to problems with boost) (#38375)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
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: Portfile 110263 2013-08-29 10:35:27Z mojca@macports.org $
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6PortGroup           wxWidgets 1.0
7
8name                mkvtoolnix
9version             6.3.0
10revision            1
11categories          multimedia
12maintainers         nomaintainer
13license             GPL-2+ LGPL-2.1+
14
15description         Matroska media files manipulation tools.
16long_description    mkvtoolnix will evolve to a set of tools to create, \
17                    alter and inspect Matroska files under Linux and other \
18                    Unices, just what the OGMtools do for the OGM format.
19homepage            http://www.bunkus.org/videotools/mkvtoolnix/
20platforms           darwin
21master_sites        ${homepage}sources/ \
22                    http://svn.mandriva.com/svn/packages/cooker/mkvtoolnix/releases/${version}/1/SOURCES/
23use_xz              yes
24
25checksums           rmd160  7147271b54cf7ccb1ea9683428f6d9ccd47ae3fb \
26                    sha256  bc05f07d92190d018e901091a07ed5139f4eec833203af04672e4d3a0c619ba1
27
28wxWidgets.use       wxWidgets-3.0
29
30depends_build       port:pkgconfig \
31                    port:libebml \
32                    port:libmatroska
33
34depends_lib         port:boost \
35                    port:bzip2 \
36                    port:curl \
37                    port:expat \
38                    port:file \
39                    port:flac \
40                    port:gettext \
41                    port:libogg \
42                    port:libvorbis \
43                    port:lzo2 \
44                    port:pcre \
45                    port:ruby \
46                    port:zlib
47
48patch.pre_args      -p1
49patchfiles          patch-clang_errors.diff
50# Remove when version > 6.3.0 is released
51patchfiles-append   patch-df750c2.diff
52
53
54platform darwin {
55    if {${os.major} < 13} {
56        # TODO: Need to link against static versions of boost and icu for this to work right
57        #       See: https://trac.macports.org/ticket/40231
58
59        # configure complains about gcc < 4.6 and clang
60        compiler.whitelist macports-gcc-4.7 macports-gcc-4.8 macports-gcc-4.9
61    }
62}
63
64build.cmd           ./drake
65build.target        default
66build.args          -j${build.jobs}
67
68configure.args      --mandir=${prefix}/share/man \
69                    --with-boost=${prefix} \
70                    --with-extra-libs=${prefix}/lib \
71                    --with-extra-includes=${prefix}/include \
72                    --disable-gui \
73                    --disable-wxwidgets
74
75variant wxwidgets description {Build with the wxWidgets GUI} {
76    # TODO: make the GUI application respond by creating an app bundle
77    #       and using http://wiki.wxwidgets.org/WxMac-specific_topics#My_app_can.27t_be_brought_to_the_front.21
78    #
79    # see:  https://trac.macports.org/ticket/17366
80    depends_lib-append port:${wxWidgets.port}
81
82    configure.args-delete \
83        --disable-gui \
84        --disable-wxwidgets
85    configure.args-append \
86        --enable-gui \
87        --enable-wxwidgets \
88        --with-wx-config=${wxWidgets.wxconfig}
89}
Note: See TracBrowser for help on using the repository browser.