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

Last change on this file was 153094, checked in by devans@…, 14 months ago

gstreamer010-gst-plugins-bad: disable plugin applemedia on Sierra due to removal of QTKit.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.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 153094 2016-09-24 09:10:01Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6# https://bugzilla.gnome.org/show_bug.cgi?id=636134
7PortGroup           muniversal 1.0
8
9name                gstreamer010-gst-plugins-bad
10set my_name         gst-plugins-bad
11version             0.10.23
12revision            15
13description         A set of plug-ins for GStreamer that need more quality.
14long_description    \
15    GStreamer Bad Plug-ins is a set of plug-ins that aren't up to par compared \
16    to the rest. They might be close to being good quality, but they're missing \
17    something - be it a good code review, some documentation, a set of tests, a \
18    real live maintainer, or some actual wide use.
19license             GPL LGPL
20maintainers         nomaintainer
21categories          gnome
22platforms           darwin
23homepage            http://gstreamer.freedesktop.org/modules/${my_name}.html
24master_sites        http://gstreamer.freedesktop.org/src/${my_name}/
25distname            ${my_name}-${version}
26use_bzip2           yes
27
28checksums           md5     fcb09798114461955260e4d940db5987 \
29                    sha1    46208d7bcebaac31310e2a884cc840c51034781a \
30                    rmd160  3a837843b8aa941ff7c81b90d37930ccb1ddb0be
31
32depends_build       port:pkgconfig
33
34# libvpx is static only so can be considered a build dependency (#47934)
35
36depends_build-append \
37                    port:libvpx
38
39depends_lib         port:gstreamer010-gst-plugins-base \
40                    port:XviD \
41                    port:curl \
42                    port:dirac \
43                    port:exempi \
44                    port:faad2 \
45                    port:jasper \
46                    port:libass \
47                    port:libdc1394 \
48                    port:libdca \
49                    port:libdvdread port:libdvdnav \
50                    port:libexif \
51                    port:libglade2 \
52                    port:libmms \
53                    port:libmodplug \
54                    port:libmpcdec \
55                    port:libmusicbrainz2 \
56                    port:libopus \
57                    port:libpng \
58                    port:librsvg \
59                    port:libsndfile \
60                    port:openal-soft \
61                    port:soundtouch \
62                    port:spandsp-devel \
63                    port:neon \
64                    port:rtmpdump \
65                    port:schroedinger
66
67patchfiles          openal.patch \
68                    modplug.patch \
69                    po.patch \
70                    objcflags.patch \
71                    patch-libvpx-1.40.diff
72
73#
74# could depend on tons for multimedia stuff +variants
75# the following ports are available but don't configure
76# and/or build correctly
77#
78# port:mjpegtools (mpeg2enc mplex build fails) need to disable mpeg2enc mplex explicitly in case mjpegtools is installed
79# port:faac has a restrictive license, disable faac plugin by default
80# port:libsdl (builds but sdlvideosink is broken)
81# port:slv2 (builds but lv2 plugin fails to load and slv2 is not universal) disable lv2 explicitly in case slv2 is installed
82# port:swfdec (configure wants pkg-config swfdec-0.3, we have swfdec-0.8)
83#
84
85configure.args      --disable-silent-rules \
86                    --disable-faac \
87                    --disable-quicktime \
88                    --disable-mpeg2enc \
89                    --disable-mplex \
90                    --disable-opencv \
91                    --disable-lv2 \
92                    --disable-sdl \
93                    --disable-sdltest \
94                    --disable-schemas-compile \
95                    --enable-experimental \
96                    --enable-static
97
98platform darwin {
99    # port:soundtouch (fails on autoreconf on darwin 8 & 9, see #27533) disable soundtouch on these platforms
100    if { ${os.major} < 10 } {
101        depends_lib-delete port:soundtouch
102        configure.args-append --disable-soundtouch
103    }
104    # plugin applemedia fails on Sierra (darwin 16) due to removal of QTKit
105    if {${os.major} > 15} {
106        configure.args-append   --disable-apple_media
107    }
108}
109
110#
111# X11 is only used for examples that are not installed
112# so just disable examples and drop the deprecated +no_x11 variant
113#
114
115configure.args-append       --disable-examples
116
117configure.cppflags-append   "-L${prefix}/lib"
118configure.cflags-append     -funroll-loops -fstrict-aliasing
119configure.env-append        "HAVE_CXX=yes"
120
121use_autoreconf      yes
122autoreconf.args     -fvi
123
124variant faac description {Enable faac AAC plugin} {
125    depends_lib-append      port:faac
126    configure.args-delete   --disable-faac
127    notes-append "Use of the +faac variant may affect licensing due to the restrictive license of port faac itself."
128}
129
130# osxvideosrc is disabled by configure on 64 bit archs so disable if universal variant is set
131
132if {[variant_isset universal]} {
133    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
134    set merger_host(i386) i686-apple-${os.platform}${os.major}
135    set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major}
136    set merger_configure_args(i386) --build=i686-apple-${os.platform}${os.major}
137    configure.args-append \
138        --disable-osx_video
139} elseif {${build_arch} eq "i386"} {
140    configure.args-append \
141        --host=i686-apple-${os.platform}${os.major} \
142        --build=i686-apple-${os.platform}${os.major}
143} elseif {${build_arch} eq "x86_64"} {
144    configure.args-append \
145        --host=${build_arch}-apple-${os.platform}${os.major} \
146        --build=${build_arch}-apple-${os.platform}${os.major}
147}
148
149post-activate {
150    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
151}
152
153livecheck.type      none
Note: See TracBrowser for help on using the repository browser.