Ticket #20980: Portfile.2

File Portfile.2, 2.5 KB (added by jeptorra@…, 15 years ago)

Portfile for core

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 58908 2009-10-07 02:56:10Z devans@macports.org $
3
4PortSystem 1.0
5
6name            gstreamer
7version         0.10.25
8description     A framework for streaming media.
9long_description        This is GStreamer, a framework for streaming media. \
10                        The fundamental design comes from the video pipeline at \
11                        Oregon Graduate Institute, as well as some ideas from \
12                        DirectMedia.  It's based on plug-ins that will provide \
13                        the various codec and other functionality. The \
14                        interface hopefully is generic enough for various \
15                        companies (ahem, Apple) to release binary codecs for \
16                        Linux, until such time as they get a clue and \
17                        release the source.
18maintainers     rmsfisher openmaintainer
19categories      gnome
20platforms       darwin
21homepage        http://gstreamer.freedesktop.org/
22
23master_sites    gnome:sources/gstreamer/[join [lrange [split ${version} .] 0 1] .]/ \
24        http://gstreamer.freedesktop.org/src/${name}/
25
26checksums           md5     88544e034a051baf472983791d233076 \
27                    sha1    e3cda2dcac9dbbfc2e61ba79fcd3bff1313dc7f4 \
28                    rmd160  79f0d117f46d4138acb35fac6594a7aeba4c4a7e
29
30depends_build   \
31    port:gzip \
32    port:m4 \
33    path:bin/perl:perl5 \
34    port:pkgconfig
35depends_lib \
36    port:bison \
37    port:flex \
38    port:gettext \
39    path:lib/pkgconfig/glib-2.0.pc:glib2 \
40    port:libiconv \
41    port:libxml2 \
42    port:zlib
43
44use_bzip2       yes
45
46configure.env-append  PERL_PATH=${prefix}/bin/perl
47
48configure.cflags-append -funroll-loops -fstrict-aliasing -fno-common
49
50pre-build       {
51        ui_msg "It is likely that this port will fail to build if the 'check'"
52        ui_msg "port is active. If this port fails to build, deactive 'check'"
53        ui_msg "by running:"
54        ui_msg "port deactivate check"
55        ui_msg "Reactivate 'check' after successfully installing gstreamer"
56        ui_msg "by running:"
57        ui_msg "port activate check"
58        ui_msg "If you do not have 'check' installed, ignore this message."
59}
60
61livecheck.type  regex
62livecheck.url   http://gstreamer.freedesktop.org/src/${name}/
63livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
64
65platform darwin i386 {
66        configure.args-append --build=${build_arch}-apple-darwin${os.major}
67}
68
69variant git {
70        version             git   
71        configure.cmd       ./autogen.sh
72        fetch.type          git
73        git.url             git://anongit.freedesktop.org/gstreamer/gstreamer
74        configure.args-append --disable-gtk-doc --disable-docbook
75}