source: trunk/dports/gnome/gstreamer010-gst-plugins-good/Portfile

Last change on this file was 153093, checked in by devans@…, 10 months ago

gstreamer010-gst-plugins-good: Sierra build fix, osxvideosink plugin requires QuickTime removed in Sierra (#52344).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.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 153093 2016-09-24 08:35:42Z ryandesign@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
9
10name                gstreamer010-gst-plugins-good
11set my_name         gst-plugins-good
12version             0.10.31
13revision            9
14description         \
15    A set of good-quality plug-ins for GStreamer under GStreamer's preferred \
16    license, LGPL.
17long_description    \
18    GStreamer Good Plug-ins is a set of plug-ins that GStreamer's developers \
19    consider to have good quality code, correct functionality, and their \
20    preferred license (LGPL for the plug-in code, LGPL or LGPL-compatible for \
21    the supporting library).
22maintainers         nomaintainer
23categories          gnome
24license             LGPL-2+
25platforms           darwin
26homepage            http://gstreamer.freedesktop.org/modules/${my_name}.html
27master_sites        http://gstreamer.freedesktop.org/src/${my_name}/ gnome:sources/${my_name}/0.10/
28use_bzip2           yes
29distname            ${my_name}-${version}
30
31checksums           rmd160  d9fed957ba26d055f7bccb9079bd43faae15b7e5 \
32                    sha256  7e27840e40a7932ef2dc032d7201f9f41afcaf0b437daf5d1d44dc96d9e35ac6
33
34depends_build \
35    port:pkgconfig
36
37depends_lib     \
38    port:gstreamer010-gst-plugins-base \
39    port:aalib \
40    port:esound \
41    port:flac \
42    port:jack \
43    port:libgnome-keyring \
44    path:lib/libcaca.dylib:libcaca \
45    port:libcdio \
46    port:libdv \
47    port:libshout2 \
48    port:libsoup \
49    path:lib/libspeex.dylib:speex \
50    port:taglib \
51    port:wavpack
52
53patchfiles  automake.patch po.patch
54
55post-patch {
56    # gst/goom is the only thing using this, and its mmx code is buggy (as of 0.10.31)
57    reinplace "s|-DBUILD_MMX|-UBUILD_MMX|" ${worksrcpath}/gst/goom/Makefile.am
58    reinplace "/^MMX_FILES/s|=.*|=|"       ${worksrcpath}/gst/goom/Makefile.am
59}
60
61use_autoreconf          yes
62autoreconf.args         -fvi
63
64configure.args-append   --disable-gtk-doc --disable-schemas-install --with-default-videosink=ximagesink --disable-pulse
65configure.env-append    "HAVE_CXX=yes"
66
67platform darwin {
68    if {${os.major} > 15} {
69        # QuickTime framework removed in darwin 16 (Sierra)
70        configure.args-append --disable-osx_video
71    }
72}
73
74variant pulseaudio description {Enable PulseAudio plugin} {
75    depends_lib-append      port:pulseaudio
76    configure.args-replace  --disable-pulse \
77                            --enable-pulse
78}
79
80default_variants    +pulseaudio
81
82if {[variant_isset universal]} {
83    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
84    set merger_host(i386) i686-apple-${os.platform}${os.major}
85    set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major}
86    set merger_configure_args(i386) --build=i686-apple-${os.platform}${os.major}
87} elseif {${build_arch} eq "i386"} {
88    configure.args-append \
89        --host=i686-apple-${os.platform}${os.major} \
90        --build=i686-apple-${os.platform}${os.major}
91} elseif {${build_arch} eq "x86_64"} {
92    configure.args-append \
93        --host=${build_arch}-apple-${os.platform}${os.major} \
94        --build=${build_arch}-apple-${os.platform}${os.major}
95}
96
97# SSE register return with SSE disabled
98# <rdar://problem/9694837> - Fixed in XCode 4.2 (clang 211.10.1)
99compiler.blacklist  {clang < 211.10.1}
100
101post-activate {
102        system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
103                gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
104}
105
106livecheck.type  none
Note: See TracBrowser for help on using the repository browser.