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 97224 2012-08-31 03:10:56Z rmstonecipher@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | # https://bugzilla.gnome.org/show_bug.cgi?id=636134 |
---|
7 | PortGroup muniversal 1.0 |
---|
8 | |
---|
9 | name gst-plugins-base |
---|
10 | version 1.0.3 |
---|
11 | revision 1 |
---|
12 | description This is gst-plugins, a set of plug-ins for GStreamer. |
---|
13 | long_description ${description} |
---|
14 | maintainers rmstonecipher openmaintainer |
---|
15 | categories gnome |
---|
16 | platforms darwin |
---|
17 | license LGPL-2+ |
---|
18 | homepage http://gstreamer.freedesktop.org/modules/${name}.html |
---|
19 | |
---|
20 | use_xz yes |
---|
21 | master_sites gnome:sources/gst-plugins-base/1.0/ http://gstreamer.freedesktop.org/src/${name}/ |
---|
22 | |
---|
23 | checksums sha256 066ba8a7fa709a25ad291f7b21329b73f513637aafceee00396e588e723d7f9e |
---|
24 | |
---|
25 | depends_build \ |
---|
26 | port:pkgconfig |
---|
27 | depends_lib \ |
---|
28 | port:gstreamer \ |
---|
29 | port:gnome-vfs \ |
---|
30 | port:libtheora \ |
---|
31 | port:openssl \ |
---|
32 | port:orc \ |
---|
33 | port:xorg-libice \ |
---|
34 | port:xorg-libsm |
---|
35 | |
---|
36 | configure.args-append \ |
---|
37 | --enable-experimental \ |
---|
38 | --disable-examples \ |
---|
39 | --disable-libvisual\ |
---|
40 | --disable-gst_v4l \ |
---|
41 | --disable-alsa \ |
---|
42 | --disable-cdparanoia \ |
---|
43 | --disable-ivorbis \ |
---|
44 | --disable-introspection |
---|
45 | |
---|
46 | variant no_x11 { |
---|
47 | configure.args-append --without-x --disable-x --disable-xvideo --disable-xshm |
---|
48 | } |
---|
49 | |
---|
50 | variant examples description {Build example programs} { |
---|
51 | PortGroup qt4 1.0 |
---|
52 | depends_lib-append port:gtk2 |
---|
53 | configure.args-delete --disable-examples |
---|
54 | } |
---|
55 | |
---|
56 | # users of qt4-x11, which depends on gst-plugins-base but has no use for its |
---|
57 | # deeper gnome-related dependencies may wish to use this variant |
---|
58 | variant no_gnome_vfs description {Remove library dependency on gnome-vfs} { |
---|
59 | depends_lib-delete port:gnome-vfs |
---|
60 | configure.args-append --disable-gnome_vfs |
---|
61 | } |
---|
62 | |
---|
63 | variant no_ogg description {Remove library dependency on libogg and its dependents} { |
---|
64 | depends_lib-delete port:libtheora |
---|
65 | configure.args-append --disable-ogg --disable-vorbis --disable-theora |
---|
66 | } |
---|
67 | # |
---|
68 | # current cdparanoia port (cdparanoia III 10.2) appears to not be API compatible |
---|
69 | # with gst-plugins-base. See #19843. |
---|
70 | # disable by default until this is rectified. |
---|
71 | # |
---|
72 | |
---|
73 | variant cdparanoia description {Enable (currently broken) cdparanoia plugin} { |
---|
74 | depends_lib-append port:cdparanoia |
---|
75 | configure.args-delete --disable-cdparanoia |
---|
76 | } |
---|
77 | |
---|
78 | #-fgcse (from -O2) causes build failures, but -O2 -fno-gcse doesn't seem to work |
---|
79 | if {[string match "*gcc-4.2" ${configure.compiler}]} { |
---|
80 | lappend merger_configure_cflags(i386) -O1 -fexpensive-optimizations |
---|
81 | if {![variant_isset universal] && ${build_arch} == "i386"} { |
---|
82 | configure.cflags-delete -O2 |
---|
83 | configure.cflags-append -O1 -fexpensive-optimizations |
---|
84 | } |
---|
85 | } |
---|
86 | |
---|
87 | if {[variant_isset universal]} { |
---|
88 | set merger_host(x86_64) x86_64-apple-${os.platform}${os.major} |
---|
89 | set merger_host(i386) i686-apple-${os.platform}${os.major} |
---|
90 | set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major} |
---|
91 | set merger_configure_args(i386) --build=i686-apple-${os.platform}${os.major} |
---|
92 | } elseif {${build_arch} == "i386"} { |
---|
93 | configure.args-append \ |
---|
94 | --host=i686-apple-${os.platform}${os.major} \ |
---|
95 | --build=i686-apple-${os.platform}${os.major} |
---|
96 | } elseif {${build_arch} == "x86_64"} { |
---|
97 | configure.args-append \ |
---|
98 | --host=${build_arch}-apple-${os.platform}${os.major} \ |
---|
99 | --build=${build_arch}-apple-${os.platform}${os.major} |
---|
100 | } |
---|
101 | |
---|
102 | livecheck.type regex |
---|
103 | livecheck.url http://gstreamer.freedesktop.org/src/${name}/ |
---|
104 | livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}" |
---|