Ticket #37079: Portfile

File Portfile, 3.1 KB (added by thijsvermeir@…, 12 years ago)
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 97894 2012-09-19 02:07:44Z rmstonecipher@macports.org $
3
4PortSystem  1.0
5
6# https://bugzilla.gnome.org/show_bug.cgi?id=636134
7PortGroup   muniversal 1.0
8
9name                gst-plugins-good
10version             1.0.3
11revision            1
12description         \
13    A set of good-quality plug-ins for GStreamer under GStreamer's preferred \
14    license, LGPL.
15long_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).
20maintainers         rmstonecipher openmaintainer
21categories          gnome
22license             LGPL-2+
23platforms           darwin
24homepage            http://gstreamer.freedesktop.org/modules/${name}.html
25master_sites        http://gstreamer.freedesktop.org/src/${name}/ gnome:sources/${name}/1.0/
26
27checksums           sha256  92ab8bdee2e539a5302c1b0c8d460e638da33ebf89142caee210cb0c9720c68e
28
29depends_build \
30    port:pkgconfig
31depends_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
46use_xz                  yes
47
48post-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
54use_autoreconf          yes
55autoreconf.args         -fvi
56
57configure.args-append   --disable-gtk-doc --disable-schemas-install --with-default-videosink=ximagesink
58
59if {[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
76if {${configure.compiler} == "clang" && [vercmp ${xcodeversion} 4.2] < 0} {
77    configure.compiler llvm-gcc-4.2
78}
79
80post-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
85livecheck.type  regex
86livecheck.url   http://gstreamer.freedesktop.org/src/${name}/
87livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"