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 97894 2012-09-19 02:07:44Z 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-good |
---|
10 | version 1.0.3 |
---|
11 | revision 1 |
---|
12 | description \ |
---|
13 | A set of good-quality plug-ins for GStreamer under GStreamer's preferred \ |
---|
14 | license, LGPL. |
---|
15 | long_description \ |
---|
16 | GStreamer Good Plug-ins is a set of plug-ins that GStreamer's developers \ |
---|
17 | consider to have good quality code, correct functionality, and their \ |
---|
18 | preferred license (LGPL for the plug-in code, LGPL or LGPL-compatible for \ |
---|
19 | the supporting library). |
---|
20 | maintainers rmstonecipher openmaintainer |
---|
21 | categories gnome |
---|
22 | license LGPL-2+ |
---|
23 | platforms darwin |
---|
24 | homepage http://gstreamer.freedesktop.org/modules/${name}.html |
---|
25 | master_sites http://gstreamer.freedesktop.org/src/${name}/ gnome:sources/${name}/1.0/ |
---|
26 | |
---|
27 | checksums sha256 92ab8bdee2e539a5302c1b0c8d460e638da33ebf89142caee210cb0c9720c68e |
---|
28 | |
---|
29 | depends_build \ |
---|
30 | port:pkgconfig |
---|
31 | depends_lib \ |
---|
32 | port:gst-plugins-base \ |
---|
33 | port:aalib \ |
---|
34 | port:esound \ |
---|
35 | port:flac \ |
---|
36 | port:libgnome-keyring \ |
---|
37 | port:libcaca \ |
---|
38 | port:libcdio \ |
---|
39 | port:libdv \ |
---|
40 | port:libshout2 \ |
---|
41 | port:libsoup \ |
---|
42 | path:lib/libspeex.dylib:speex \ |
---|
43 | port:taglib \ |
---|
44 | port:wavpack |
---|
45 | |
---|
46 | use_xz yes |
---|
47 | |
---|
48 | post-patch { |
---|
49 | # gst/goom is the only thing using this, and its mmx code is buggy (as of 0.10.31) |
---|
50 | reinplace "s|-DBUILD_MMX|-UBUILD_MMX|" ${worksrcpath}/gst/goom/Makefile.am |
---|
51 | reinplace "/^MMX_FILES/s|=.*|=|" ${worksrcpath}/gst/goom/Makefile.am |
---|
52 | } |
---|
53 | |
---|
54 | use_autoreconf yes |
---|
55 | autoreconf.args -fvi |
---|
56 | |
---|
57 | configure.args-append --disable-gtk-doc --disable-schemas-install --with-default-videosink=ximagesink |
---|
58 | |
---|
59 | if {[variant_isset universal]} { |
---|
60 | set merger_host(x86_64) x86_64-apple-${os.platform}${os.major} |
---|
61 | set merger_host(i386) i686-apple-${os.platform}${os.major} |
---|
62 | set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major} |
---|
63 | set merger_configure_args(i386) --build=i686-apple-${os.platform}${os.major} |
---|
64 | } elseif {${build_arch} == "i386"} { |
---|
65 | configure.args-append \ |
---|
66 | --host=i686-apple-${os.platform}${os.major} \ |
---|
67 | --build=i686-apple-${os.platform}${os.major} |
---|
68 | } elseif {${build_arch} == "x86_64"} { |
---|
69 | configure.args-append \ |
---|
70 | --host=${build_arch}-apple-${os.platform}${os.major} \ |
---|
71 | --build=${build_arch}-apple-${os.platform}${os.major} |
---|
72 | } |
---|
73 | |
---|
74 | # SSE register return with SSE disabled |
---|
75 | # <rdar://problem/9694837> - Fixed in XCode 4.2 |
---|
76 | if {${configure.compiler} == "clang" && [vercmp ${xcodeversion} 4.2] < 0} { |
---|
77 | configure.compiler llvm-gcc-4.2 |
---|
78 | } |
---|
79 | |
---|
80 | post-activate { |
---|
81 | system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \ |
---|
82 | gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas" |
---|
83 | } |
---|
84 | |
---|
85 | livecheck.type regex |
---|
86 | livecheck.url http://gstreamer.freedesktop.org/src/${name}/ |
---|
87 | livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}" |
---|