source: trunk/dports/gnome/gstreamer1-gst-plugins-good/Portfile @ 131954

Last change on this file since 131954 was 131954, checked in by devans@…, 4 years ago

gstreamer1-gst-plugins-good: update to version 1.4.5, use gobject_introspection portgroup.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.0 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 131954 2015-01-21 21:24:49Z devans@macports.org $
3
4PortSystem          1.0
5
6# https://bugzilla.gnome.org/show_bug.cgi?id=636134
7PortGroup           muniversal 1.0
8PortGroup           compiler_blacklist_versions 1.0
9PortGroup           gobject_introspection 1.0
10
11name                gstreamer1-gst-plugins-good
12set my_name         gst-plugins-good
13version             1.4.5
14description         A set of good-quality plug-ins for GStreamer under GStreamer's preferred \
15                    license, LGPL.
16long_description    GStreamer Good Plug-ins is a set of plug-ins that GStreamer's developers \
17                    consider to have good quality code, correct functionality, and their \
18                    preferred license (LGPL for the plug-in code, LGPL or LGPL-compatible for \
19                    the supporting library).
20maintainers         nomaintainer
21categories          gnome
22license             LGPL-2+
23platforms           darwin
24homepage            http://gstreamer.freedesktop.org/modules/${my_name}.html
25master_sites        http://gstreamer.freedesktop.org/src/${my_name}/
26use_xz              yes
27distname            ${my_name}-${version}
28
29checksums           rmd160  2938db9238330b851a80d21e5f32a23e88f4eac7 \
30                    sha256  79b1b5f3f7bcaa8a615202eb5e176121eeb8336960f70687e536ad78dbc7e641
31
32depends_build       port:pkgconfig
33
34depends_lib         port:gstreamer1-gst-plugins-base \
35                    port:aalib \
36                    port:flac \
37                    port:gdk-pixbuf2 \
38                    port:jack \
39                    port:jpeg \
40                    port:libgnome-keyring \
41                    port:libcaca \
42                    port:libdv \
43                    port:libpng \
44                    port:libshout2 \
45                    port:libsoup \
46                    path:lib/libspeex.dylib:speex \
47                    port:libvpx \
48                    port:taglib \
49                    port:wavpack
50
51gobject_introspection yes
52
53post-patch {
54    # gst/goom is the only thing using this, and its mmx code is buggy (as of 0.10.31)
55    reinplace "s|-DBUILD_MMX|-UBUILD_MMX|" ${worksrcpath}/gst/goom/Makefile.am
56    reinplace "/^MMX_FILES/s|=.*|=|"       ${worksrcpath}/gst/goom/Makefile.am
57}
58
59use_autoreconf      yes
60autoreconf.args     -fvi
61
62configure.args-append   --disable-gtk-doc --with-default-videosink=ximagesink --disable-pulse
63configure.env-append    "HAVE_CXX=yes"
64
65variant pulseaudio description {Enable PulseAudio plugin} {
66    depends_lib-append      port:pulseaudio
67    configure.args-replace  --disable-pulse \
68                            --enable-pulse
69}
70
71default_variants    +pulseaudio
72
73if {[variant_isset universal]} {
74    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
75    set merger_host(i386) i686-apple-${os.platform}${os.major}
76    set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major}
77    set merger_configure_args(i386) --build=i686-apple-${os.platform}${os.major}
78} else {
79    if {${build_arch} eq "i386"} {
80        configure.args-append \
81            --host=i686-apple-${os.platform}${os.major} \
82            --build=i686-apple-${os.platform}${os.major}
83    } elseif {${build_arch} eq "x86_64"} {
84        configure.args-append \
85            --host=${build_arch}-apple-${os.platform}${os.major} \
86            --build=${build_arch}-apple-${os.platform}${os.major}
87    }
88}
89
90# SSE register return with SSE disabled
91# <rdar://problem/9694837> - Fixed in XCode 4.2 (clang 211.10.1)
92compiler.blacklist  {clang < 211.10.1}
93
94pre-activate {
95    if {![catch {set installed [lindex [registry_active gstreamer1-gst-plugins-bad] 0]}]} {
96        set _version [lindex $installed 1]
97        if {[vercmp $_version 1.2.1] < 0} {
98            registry_deactivate_composite gstreamer1-gst-plugins-bad "" [list ports_nodepcheck 1]
99        }
100    }
101}
102
103livecheck.type      regex
104livecheck.url       ${master_sites}
105livecheck.regex     "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.