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

Last change on this file was 142117, checked in by mojca@…, 21 months ago

gstreamer010-gst-plugins-base: remove no_x11 no_ogg no_gnome_vfs (#39383)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.2 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 142117 2015-11-04 07:48:20Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6# https://bugzilla.gnome.org/show_bug.cgi?id=636134
7PortGroup           muniversal 1.0
8PortGroup           gobject_introspection 1.0
9
10name                gstreamer010-gst-plugins-base
11set my_name         gst-plugins-base
12version             0.10.36
13revision            3
14description         This is gst-plugins, a set of plug-ins for GStreamer.
15long_description    ${description}
16maintainers         nomaintainer
17categories          gnome
18platforms           darwin
19license             LGPL-2+
20homepage            http://gstreamer.freedesktop.org/modules/${my_name}.html
21
22use_bzip2           yes
23master_sites        gnome:sources/${my_name}/0.10/ http://gstreamer.freedesktop.org/src/${my_name}/
24distname            ${my_name}-${version}
25
26checksums           rmd160  b601372b3a1c04de63f69ba350c5010c99dbc6ae \
27                    sha256  2cd3b0fa8e9b595db8f514ef7c2bdbcd639a0d63d154c00f8c9b609321f49976
28
29depends_build \
30    port:pkgconfig
31
32depends_lib \
33    port:gstreamer010 \
34    port:orc \
35    path:lib/pkgconfig/pango.pc:pango \
36    port:libxml2 \
37    port:iso-codes \
38    port:zlib
39
40gobject_introspection no
41
42configure.args-append \
43    --enable-experimental \
44    --disable-examples \
45    --disable-libvisual \
46    --disable-gst_v4l \
47    --disable-alsa \
48    --disable-cdparanoia \
49    --disable-gnome_vfs \
50    --disable-ogg \
51    --disable-vorbis \
52    --disable-theora \
53    --disable-ivorbis \
54    --without-x \
55    --disable-x \
56    --disable-xvideo \
57    --disable-xshm
58
59post-destroot {
60    # Workaround a bug in the empathy build which tries to create this file if it has
61    # a timestamp older than .../audio.h
62    system "touch ${destroot}${prefix}/include/gstreamer-0.10/gst/audio/audio-enumtypes.h"
63}
64
65variant x11 {
66    depends_lib-append port:xorg-libice \
67                       port:xorg-libsm \
68                       port:xorg-libXv
69
70    configure.args-delete --without-x --disable-x --disable-xvideo --disable-xshm
71}
72
73variant ogg description {Build with support for libogg, libvorbis, libtheora} {
74    depends_lib-append    port:libogg port:libvorbis port:libtheora
75    configure.args-delete --disable-ogg --disable-vorbis --disable-theora
76}
77
78# users of qt4-x11, which depends on gst-plugins-base but has no use for its
79# deeper gnome-related dependencies may wish to disable this variant
80variant gnome_vfs description {Enable gnome-vfs support} {
81    depends_lib-append    port:gnome-vfs
82    configure.args-delete --disable-gnome_vfs
83}
84
85variant examples description {Build example programs} {
86    PortGroup qt4 1.0
87    depends_lib-append port:gtk2
88    configure.args-delete --disable-examples
89}
90
91#
92# current cdparanoia port (cdparanoia III 10.2) appears to not be API compatible
93# with gst-plugins-base.  See #19843.
94# disable by default until this is rectified.
95#
96
97variant cdparanoia description {Enable (currently broken) cdparanoia plugin} {
98    depends_lib-append port:cdparanoia
99    configure.args-delete --disable-cdparanoia
100}
101
102default_variants +gnome_vfs +ogg +x11
103
104#-fgcse (from -O2) causes build failures, but -O2 -fno-gcse doesn't seem to work
105if {[string match "*gcc-4.2" ${configure.compiler}]} {
106    lappend merger_configure_cflags(i386) -O1 -fexpensive-optimizations
107    if {![variant_isset universal] && ${build_arch} eq "i386"} {
108        configure.cflags-delete -O2
109        configure.cflags-append -O1 -fexpensive-optimizations
110    }
111}
112
113if {[variant_isset universal]} {
114    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
115    set merger_host(i386) i686-apple-${os.platform}${os.major}
116    set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major}
117    set merger_configure_args(i386) --build=i686-apple-${os.platform}${os.major}
118} elseif {${build_arch} eq "i386"} {
119    configure.args-append \
120        --host=i686-apple-${os.platform}${os.major} \
121        --build=i686-apple-${os.platform}${os.major}
122} elseif {${build_arch} eq "x86_64"} {
123    configure.args-append \
124        --host=${build_arch}-apple-${os.platform}${os.major} \
125        --build=${build_arch}-apple-${os.platform}${os.major}
126}
127
128livecheck.type      none
Note: See TracBrowser for help on using the repository browser.