source: trunk/dports/multimedia/mlt/Portfile @ 117964

Last change on this file since 117964 was 117964, checked in by macsforever2000@…, 7 years ago

mlt: clang build fix. (#42869)

  • 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 117964 2014-03-17 20:13:52Z macsforever2000@macports.org $
3
4PortSystem          1.0
5PortGroup           qt4 1.0
6
7name                mlt
8epoch               3
9version             0.9.0
10revision            4
11categories          multimedia
12maintainers         dennedy.org:dan
13license             GPL-2+
14
15description         Open source multimedia framework - core libraries
16long_description    MLT is an open source multimedia framework, designed and developed for \
17                    television broadcasting. It provides a toolkit for broadcasters, video \
18                    editors, media players, transcoders, web streamers and many more types of \
19                    applications. The functionality of the system is provided via an assortment \
20                    of ready to use tools, xml authoring components, and an extendible plug-in \
21                    based API. \
22                    \
23                    This package contains the files necessary for running applications that use \
24                    the MLT multimedia framework.
25homepage            http://www.mltframework.org/
26master_sites        sourceforge:project/mlt/mlt
27platforms           darwin
28
29checksums           sha1    76bf18f4442801fae963c5a676d6626e383d1617 \
30                    rmd160  c58b21463562367ad1fad46fa3e524f283bd4c82
31
32# frei0r-plugins is not universal
33universal_variant   no
34
35depends_build-append port:git-core \
36                    port:doxygen
37
38depends_lib-append  port:atk \
39                    port:frei0r-plugins \
40                    path:lib/libavcodec.dylib:ffmpeg \
41                    port:libdv \
42                    port:libsamplerate \
43                    port:libsdl \
44                    port:libvorbis \
45                    port:sox \
46                    port:libxml2
47
48configure.args      --enable-gpl \
49                    --qimage-libdir=${qt_libs_dir} \
50                    --qimage-includedir=${qt_includes_dir}/Qt \
51                    --disable-jackrack \
52                    --disable-mmx \
53                    --disable-gtk2 \
54                    --disable-swfdec
55
56platform darwin 10 {
57    if {${build_arch} eq "x86_64"} {
58        configure.args-delete --disable-mmx
59    }
60}
61
62platform darwin {
63    patch.pre_args  -p1
64    patchfiles      patch-src-modules-qimage-configure.diff \
65                    patch-configure-clang.diff
66}
67
68configure.cflags-append     "-I${prefix}/include"
69configure.cflags-append     "-I${qt_includes_dir}"
70configure.ldflags-delete    "-L${prefix}/lib"
71configure.ldflags-append    "-L${worksrcpath}/src/framework"
72configure.ldflags-append    "-L${prefix}/lib"
73build.env-append            CFLAGS="${configure.cflags}" LDFLAGS="${configure.ldflags}"
74build.args-append           CC="${configure.cc}" CXX="${configure.cxx}" CPP="${configure.cpp}"
75
76
77variant gtk2 description {include the gtk2 module (for additional image and text producers)} {
78    configure.args-delete   --disable-gtk2
79    depends_lib-append      port:gtk2
80}
81
82livecheck.type      regex
83livecheck.url       http://sourceforge.net/projects/${name}/files/
84livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.