source: trunk/dports/gnome/gstreamer1/Portfile

Last change on this file was 149596, checked in by devans@…, 17 months ago

gstreamer1*: update to version 1.8.2.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 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 149596 2016-06-27 20:45:11Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           conflicts_build 1.0
6PortGroup           gobject_introspection 1.0
7
8# https://bugzilla.gnome.org/show_bug.cgi?id=636134
9PortGroup           muniversal 1.0
10
11name                gstreamer1
12set my_name         gstreamer
13version             1.8.2
14description         GStreamer is a library for constructing graphs of media-handling components.
15long_description    The applications it supports range from simple Ogg/Vorbis playback, audio/video \
16                    streaming to complex audio (mixing) and video (non-linear editing) processing.
17maintainers         nomaintainer
18categories          gnome
19platforms           darwin
20license             LGPL-2+
21homepage            http://${my_name}.freedesktop.org/
22distname            ${my_name}-${version}
23
24master_sites        http://gstreamer.freedesktop.org/src/${my_name}/
25
26use_xz              yes
27
28checksums           rmd160  97adab1618e15a81a4872d8d17e9c1659643997f \
29                    sha256  9dbebe079c2ab2004ef7f2649fa317cabea1feb4fb5605c24d40744b90918341
30
31depends_build       port:gzip \
32                    port:m4 \
33                    path:bin/perl:perl5 \
34                    port:pkgconfig
35
36depends_lib         port:bison \
37                    port:flex \
38                    port:gettext \
39                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
40                    port:libxml2
41
42gobject_introspection yes
43
44conflicts_build     check
45
46# global_symbol_pipe gets set to "" on Leopard
47use_autoreconf      yes
48autoreconf.args     -fvi
49
50configure.env-append    PERL_PATH=${prefix}/bin/perl
51configure.cflags-append -funroll-loops -fstrict-aliasing -fno-common
52
53if {[string match "*gcc-4.2" ${configure.compiler}]} {
54    configure.cflags-append -std=c99
55}
56
57configure.args-append \
58                    --disable-fatal-warnings \
59                    --disable-silent-rules
60
61if {[variant_isset universal]} {
62    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
63    set merger_host(i386) i686-apple-${os.platform}${os.major}
64    set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major}
65    set merger_configure_args(i386) --build=i686-apple-${os.platform}${os.major}
66} else {
67    if {${build_arch} eq "i386"} {
68        configure.args-append \
69            --host=i686-apple-${os.platform}${os.major} \
70            --build=i686-apple-${os.platform}${os.major}
71    } elseif {${build_arch} eq "x86_64"} {
72        configure.args-append \
73            --host=${build_arch}-apple-${os.platform}${os.major} \
74            --build=${build_arch}-apple-${os.platform}${os.major}
75    }
76}
77
78livecheck.type      regex
79livecheck.url       ${master_sites}
80livecheck.regex     "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.