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

Last change on this file was 153072, checked in by devans@…, 12 months ago

gstreamer1-gst-plugins-good: Sierra build fix, osx_video plugin requires QuickTime framework, removed in Sierra.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.3 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 153072 2016-09-23 16:54:14Z 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                gstreamer1-gst-plugins-good
11set my_name         gst-plugins-good
12version             1.8.2
13description         A set of good-quality plug-ins for GStreamer under GStreamer's preferred \
14                    license, LGPL.
15long_description    GStreamer Good Plug-ins is a set of plug-ins that GStreamer's developers \
16                    consider to have good quality code, correct functionality, and their \
17                    preferred license (LGPL for the plug-in code, LGPL or LGPL-compatible for \
18                    the supporting library).
19maintainers         nomaintainer
20categories          gnome
21license             LGPL-2+
22platforms           darwin
23homepage            http://gstreamer.freedesktop.org/modules/${my_name}.html
24master_sites        http://gstreamer.freedesktop.org/src/${my_name}/
25use_xz              yes
26distname            ${my_name}-${version}
27
28checksums           rmd160  91bddb287b7562fa32f33d0fbfe7611d53f18e23 \
29                    sha256  8d7549118a3b7a009ece6bb38a05b66709c551d32d2adfd89eded4d1d7a23944
30
31depends_build       port:pkgconfig
32
33# libvpx is static only so can be considered a build dependency (#47934)
34
35depends_build-append \
36                    port:libvpx
37
38depends_lib         port:gstreamer1-gst-plugins-base \
39                    port:aalib \
40                    port:flac \
41                    port:gdk-pixbuf2 \
42                    port:jack \
43                    port:jpeg \
44                    path:lib/libcaca.dylib:libcaca \
45                    port:libdv \
46                    port:libpng \
47                    port:libshout2 \
48                    port:libsoup \
49                    path:lib/libspeex.dylib:speex \
50                    port:taglib \
51                    port:wavpack
52
53platform darwin {
54    if {${os.major} < 11} {
55        patchfiles-append snowleopard-strnlen.patch snowleopard-memmem.patch
56    }
57}
58
59post-patch {
60    # gst/goom is the only thing using this, and its mmx code is buggy (as of 0.10.31)
61    reinplace "s|-DBUILD_MMX|-UBUILD_MMX|" ${worksrcpath}/gst/goom/Makefile.am
62    reinplace "/^MMX_FILES/s|=.*|=|"       ${worksrcpath}/gst/goom/Makefile.am
63}
64
65use_autoreconf      yes
66autoreconf.args     -fvi
67
68configure.args-append \
69                    --disable-fatal-warnings \
70                    --disable-silent-rules \
71                    --disable-gtk-doc \
72                    --with-default-videosink=ximagesink \
73                    --disable-pulse
74
75configure.env-append    "HAVE_CXX=yes"
76
77platform darwin {
78    if {${os.major} < 10} {
79        # gstosxcoreaudio.c:419:28: error: use of undeclared identifier 'kLinearPCMFormatFlagsSampleFractionMask'
80        configure.args-append --disable-osx_audio
81    }
82    if {${os.major} > 15} {
83        # QuickTime framework removed in darwin 16 (Sierra)
84        configure.args-append --disable-osx_video
85    }
86}
87
88variant pulseaudio description {Enable PulseAudio plugin} {
89    depends_lib-append      port:pulseaudio
90    configure.args-replace  --disable-pulse \
91                            --enable-pulse
92}
93
94default_variants    +pulseaudio
95
96if {[variant_isset universal]} {
97    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
98    set merger_host(i386) i686-apple-${os.platform}${os.major}
99    set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major}
100    set merger_configure_args(i386) --build=i686-apple-${os.platform}${os.major}
101} else {
102    if {${build_arch} eq "i386"} {
103        configure.args-append \
104            --host=i686-apple-${os.platform}${os.major} \
105            --build=i686-apple-${os.platform}${os.major}
106    } elseif {${build_arch} eq "x86_64"} {
107        configure.args-append \
108            --host=${build_arch}-apple-${os.platform}${os.major} \
109            --build=${build_arch}-apple-${os.platform}${os.major}
110    }
111}
112
113# SSE register return with SSE disabled
114# <rdar://problem/9694837> - Fixed in XCode 4.2 (clang 211.10.1)
115compiler.blacklist  {clang < 211.10.1}
116
117livecheck.type      regex
118livecheck.url       ${master_sites}
119livecheck.regex     "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.