source: trunk/dports/gnome/gstreamer010/Portfile

Last change on this file was 133796, checked in by larryv@…, 3 years ago

gstreamer010: Make build work with Bison 3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 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 133796 2015-03-11 17:49:50Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           conflicts_build 1.0
6
7# https://bugzilla.gnome.org/show_bug.cgi?id=636134
8PortGroup           muniversal 1.0
9PortGroup           gobject_introspection 1.0
10
11name                gstreamer010
12set my_name         gstreamer
13version             0.10.36
14revision            1
15description         GStreamer is a library for constructing graphs of media-handling components.
16long_description    The applications it supports range from simple Ogg/Vorbis playback, audio/video \
17                    streaming to complex audio (mixing) and video (non-linear editing) processing.
18maintainers             nomaintainer
19categories              gnome
20platforms               darwin
21license             LGPL-2+
22homepage                http://${my_name}.freedesktop.org/
23distname            ${my_name}-${version}
24
25master_sites        gnome:sources/${my_name}/[join [lrange [split ${version} .] 0 1] .]/ \
26                    http://${my_name}.freedesktop.org/src/${my_name}/
27
28use_bzip2           yes
29
30checksums           rmd160  5dd01d8ea7afe98e96037bf73f995654f469096e \
31                    sha256  e556a529e0a8cf1cd0afd0cab2af5488c9524e7c3f409de29b5d82bb41ae7a30
32
33patchfiles          patch-gst__gstdatetime.c \
34                    bison3.patch
35
36depends_build       port:gzip \
37                    port:m4 \
38                    path:bin/perl:perl5 \
39                    port:pkgconfig
40
41depends_lib         port:bison \
42                    port:flex \
43                    port:gettext \
44                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
45                    port:libxml2
46
47gobject_introspection yes
48
49conflicts_build     check
50
51configure.env-append    PERL_PATH=${prefix}/bin/perl
52configure.cflags-append -funroll-loops -fstrict-aliasing -fno-common
53
54if {[variant_isset universal]} {
55    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
56    set merger_host(i386) i686-apple-${os.platform}${os.major}
57    set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major}
58    set merger_configure_args(i386) --build=i686-apple-${os.platform}${os.major}
59} else {
60    if {${build_arch} eq "i386"} {
61        configure.args-append \
62            --host=i686-apple-${os.platform}${os.major} \
63            --build=i686-apple-${os.platform}${os.major}
64    } elseif {${build_arch} eq "x86_64"} {
65        configure.args-append \
66            --host=${build_arch}-apple-${os.platform}${os.major} \
67            --build=${build_arch}-apple-${os.platform}${os.major}
68    }
69}
70
71livecheck.type      none
Note: See TracBrowser for help on using the repository browser.