Ticket #37077: Portfile

File Portfile, 2.5 KB (added by thijsvermeir@…, 12 years ago)
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$
3
4PortSystem          1.0
5
6# https://bugzilla.gnome.org/show_bug.cgi?id=636134
7PortGroup   muniversal 1.0
8
9name                gstreamer
10version             1.0.3
11revision            1
12description \
13    GStreamer is a library for constructing graphs of media-handling components.
14long_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.
17maintainers     rmstonecipher openmaintainer
18categories      gnome
19platforms       darwin
20license     LGPL-2+
21homepage        http://gstreamer.freedesktop.org/
22
23master_sites \
24    http://gstreamer.freedesktop.org/src/${name}/
25
26checksums           sha256  69ac49e2ae9cd2ea5f789de641aeb338bb8731961acfced08ae1c76a797fe6b1
27
28depends_build   \
29    port:gzip \
30    port:m4 \
31    path:bin/perl:perl5 \
32    port:pkgconfig
33depends_lib \
34    port:bison \
35    port:flex \
36    port:gettext \
37    path:lib/pkgconfig/glib-2.0.pc:glib2 \
38    port:libxml2
39
40use_xz              yes
41
42configure.env-append    PERL_PATH=${prefix}/bin/perl
43configure.cflags-append -funroll-loops -fstrict-aliasing -fno-common
44configure.args-append   --disable-introspection
45
46if {[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
61pre-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
70livecheck.type      regex
71livecheck.url       http://gstreamer.freedesktop.org/src/${name}/
72livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"