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

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

gstreamer1-gst-plugins-bad: disable applemedia plugin on Sierra.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 7.1 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 153064 2016-09-23 08:36:57Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6# https://bugzilla.gnome.org/show_bug.cgi?id=636134
7PortGroup           muniversal 1.0
8PortGroup           active_variants 1.1
9PortGroup           gobject_introspection 1.0
10
11name                gstreamer1-gst-plugins-bad
12set my_name         gst-plugins-bad
13version             1.8.2
14revision            1
15description         A set of plug-ins for GStreamer that need more quality.
16long_description    GStreamer Bad Plug-ins is a set of plug-ins that aren't up to par compared \
17                    to the rest. They might be close to being good quality, but they're missing \
18                    something - be it a good code review, some documentation, a set of tests, a \
19                    real live maintainer, or some actual wide use.
20license             GPL LGPL
21maintainers         nomaintainer
22categories          gnome
23platforms           darwin
24homepage            http://gstreamer.freedesktop.org/modules/${my_name}.html
25master_sites        http://gstreamer.freedesktop.org/src/${my_name}/
26distname            ${my_name}-${version}
27use_xz              yes
28
29checksums           rmd160  131e186f2872db0ae0f778ee7b20aabefef96678 \
30                    sha256  d7995317530c8773ec088f94d9320909d41da61996b801ebacce9a56af493f97
31
32depends_build       port:pkgconfig
33depends_lib         port:gstreamer1-gst-plugins-base \
34                    port:chromaprint \
35                    port:curl \
36                    port:faad2 \
37                    port:fluidsynth \
38                    port:gnutls \
39                    port:libass \
40                    port:libdca \
41                    port:libdvdread \
42                    port:libdvdnav \
43                    port:libexif \
44                    port:libmms \
45                    port:libmodplug \
46                    port:libmpcdec \
47                    port:librsvg \
48                    port:libssh2 \
49                    port:mesa \
50                    port:libGLU \
51                    port:mpg123 \
52                    port:nettle \
53                    port:openal-soft \
54                    port:openexr \
55                    port:openjpeg15 \
56                    port:orc \
57                    port:rtmpdump \
58                    port:schroedinger \
59                    port:soundtouch \
60                    port:spandsp-devel \
61                    port:neon \
62                    port:webp \
63                    port:x265
64
65gobject_introspection yes
66
67# Teach glibtool about -stdlib=libc++
68use_autoreconf      yes
69autoreconf.args     -fvi
70
71patchfiles          modplug.patch \
72                    openal.patch
73
74post-patch {
75# plugin applemedia: install files from upstream git master, missing from tarball
76    xinstall -m 0644 -W ${filespath} corevideomemory.h iosurfacememory.h ${worksrcpath}/sys/applemedia
77}
78
79#
80# could depend on tons for multimedia stuff +variants
81# the following ports are available but don't configure
82# and/or build correctly
83#
84# port:mjpegtools (mpeg2enc mplex build fails) need to disable mpeg2enc mplex explicitly in case mjpegtools is installed
85# port:faac has a restrictive license, disable faac plugin by default
86# plugin frei0r (no dependency, seqfaults on load)
87# port:opencv (opencv plugin requires opencv >= 2.0.0 opencv < 2.5.0 but current version is 3.0.0)
88# port:slv2 (builds but lv2 plugin fails to load and slv2 is not universal) disable lv2 explicitly in case slv2 is installed
89# port:Xvid plugin xvid not ported in this version
90# plugin opus is now contained in gstreamer1-gst-plugins-base, disable this version
91# plugins gtk, qt disable by default to avoid opportunistic configuration
92#
93# the following plugins build opportunisticly due to missing dependencies
94# explicitly disabled for now
95#
96
97configure.args      --disable-silent-rules \
98                    --disable-fatal-warnings \
99                    --disable-dc1394 \
100                    --disable-faac \
101                    --disable-frei0r \
102                    --disable-gtk3 \
103                    --disable-lv2 \
104                    --disable-mpeg2enc \
105                    --disable-mplex \
106                    --disable-opencv \
107                    --disable-opus \
108                    --disable-qt \
109                    --disable-sdltest \
110                    --enable-experimental \
111                    --enable-static
112
113#
114# port:soundtouch (fails on autoreconf on darwin 8 & 9, see #27533) disable soundtouch on these platforms
115# gl cocoa build continues to fail due to use of API not available on darwin 10 or earlier
116# plugin applemedia (Apple video) now only builds on darwin 14 and later due to use of
117# constant AVQueuedSampleBufferRenderingStatusFailed introduced in OSX 10.10
118# plugin applemedia also fails on Sierra (darwin 16) due to missing QTKit
119#
120
121platform darwin {
122    if {${os.major} < 10} {
123        depends_lib-delete      port:soundtouch port:x265
124        configure.args-append   --disable-soundtouch --disable-x265
125    }
126    if {${os.major} < 11 } {
127        configure.args-append   --disable-cocoa --disable-opengl
128    }
129    if {${os.major} < 14 || ${os.major} > 15} {
130        configure.args-append   --disable-apple_media
131    }
132}
133
134#
135# X11 is only used for examples that are not installed
136# so just disable examples and drop the deprecated +no_x11 variant
137#
138
139configure.args-append       --disable-examples
140
141configure.cppflags-append   "-L${prefix}/lib"
142configure.cflags-append     -std=c99 -funroll-loops -fstrict-aliasing
143configure.env-append        "HAVE_CXX=yes"
144
145variant faac description {Enable faac AAC plugin} {
146    depends_lib-append      port:faac
147    configure.args-delete   --disable-faac
148    notes-append "Use of the +faac variant may affect licensing due to the restrictive license of port faac itself."
149}
150
151variant gtk3 description {Enable GTK3 X11/GL windowing elements} {
152    depends_lib-append      port:gtk3
153    configure.args-delete   --disable-gtk3
154}
155
156# gtk3 elements require gtk3 +x11
157
158if {[variant_isset gtk3]} {
159    require_active_variants gtk3 x11
160}
161
162variant qt description {Enable QT5 MAC windowing elements } {
163    PortGroup               qt5 1.0
164
165    depends_lib-append      port:qt5-qtdeclarative \
166                            port:qt5-qtmacextras
167
168    configure.args-replace  --disable-qt --enable-qt
169}
170
171if {[variant_isset universal]} {
172    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
173    set merger_host(i386) i686-apple-${os.platform}${os.major}
174    set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major}
175    set merger_configure_args(i386) --build=i686-apple-${os.platform}${os.major}
176} else {
177
178    if {${build_arch} eq "i386"} {
179        configure.args-append \
180            --host=i686-apple-${os.platform}${os.major} \
181            --build=i686-apple-${os.platform}${os.major}
182    } elseif {${build_arch} eq "x86_64"} {
183        configure.args-append \
184            --host=${build_arch}-apple-${os.platform}${os.major} \
185            --build=${build_arch}-apple-${os.platform}${os.major}
186    }
187}
188
189livecheck.type      regex
190livecheck.url       ${master_sites}
191livecheck.regex     "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.