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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | # https://bugzilla.gnome.org/show_bug.cgi?id=636134 |
---|
7 | PortGroup muniversal 1.0 |
---|
8 | |
---|
9 | name gstreamer |
---|
10 | version 1.0.3 |
---|
11 | revision 1 |
---|
12 | description \ |
---|
13 | GStreamer is a library for constructing graphs of media-handling components. |
---|
14 | long_description \ |
---|
15 | The applications it supports range from simple Ogg/Vorbis playback, audio/video \ |
---|
16 | streaming to complex audio (mixing) and video (non-linear editing) processing. |
---|
17 | maintainers rmstonecipher openmaintainer |
---|
18 | categories gnome |
---|
19 | platforms darwin |
---|
20 | license LGPL-2+ |
---|
21 | homepage http://gstreamer.freedesktop.org/ |
---|
22 | |
---|
23 | master_sites \ |
---|
24 | http://gstreamer.freedesktop.org/src/${name}/ |
---|
25 | |
---|
26 | checksums sha256 69ac49e2ae9cd2ea5f789de641aeb338bb8731961acfced08ae1c76a797fe6b1 |
---|
27 | |
---|
28 | depends_build \ |
---|
29 | port:gzip \ |
---|
30 | port:m4 \ |
---|
31 | path:bin/perl:perl5 \ |
---|
32 | port:pkgconfig |
---|
33 | depends_lib \ |
---|
34 | port:bison \ |
---|
35 | port:flex \ |
---|
36 | port:gettext \ |
---|
37 | path:lib/pkgconfig/glib-2.0.pc:glib2 \ |
---|
38 | port:libxml2 |
---|
39 | |
---|
40 | use_xz yes |
---|
41 | |
---|
42 | configure.env-append PERL_PATH=${prefix}/bin/perl |
---|
43 | configure.cflags-append -funroll-loops -fstrict-aliasing -fno-common |
---|
44 | configure.args-append --disable-introspection |
---|
45 | |
---|
46 | if {[variant_isset universal]} { |
---|
47 | set merger_host(x86_64) x86_64-apple-${os.platform}${os.major} |
---|
48 | set merger_host(i386) i686-apple-${os.platform}${os.major} |
---|
49 | set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major} |
---|
50 | set merger_configure_args(i386) --build=i686-apple-${os.platform}${os.major} |
---|
51 | } elseif {${build_arch} == "i386"} { |
---|
52 | configure.args-append \ |
---|
53 | --host=i686-apple-${os.platform}${os.major} \ |
---|
54 | --build=i686-apple-${os.platform}${os.major} |
---|
55 | } elseif {${build_arch} == "x86_64"} { |
---|
56 | configure.args-append \ |
---|
57 | --host=${build_arch}-apple-${os.platform}${os.major} \ |
---|
58 | --build=${build_arch}-apple-${os.platform}${os.major} |
---|
59 | } |
---|
60 | |
---|
61 | pre-build { |
---|
62 | if {[file exists ${prefix}/lib/libcheck.dylib]} { |
---|
63 | ui_msg "Gstreamer will fail to build because the 'check' port is active. Deactivate" |
---|
64 | ui_msg "'check' by running 'port deactivate check' and try again. You may reactivate" |
---|
65 | ui_msg "'check' after installing gstreamer by running 'port activate check'." |
---|
66 | return -code error "check is installed" |
---|
67 | } |
---|
68 | } |
---|
69 | |
---|
70 | livecheck.type regex |
---|
71 | livecheck.url http://gstreamer.freedesktop.org/src/${name}/ |
---|
72 | livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}" |
---|