Ticket #37081: Portfile

File Portfile, 2.8 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 96850 2012-08-20 03:44:10Z ryandesign@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-ugly
10version             1.0.3
11revision            1
12description         \
13    A set of good-quality plug-ins for GStreamer that might pose distribution \
14    problems.
15long_description    \
16    GStreamer Ugly Plug-ins is a set of plug-ins that have good quality and \
17    correct functionality, but distributing them might pose problems. The \
18    license on either the plug-ins or the supporting libraries might not be how \
19    we'd like. The code might be widely known to present patent problems.
20maintainers         rmstonecipher openmaintainer
21categories          gnome
22platforms           darwin
23homepage            http://gstreamer.freedesktop.org/modules/${name}.html
24master_sites        http://gstreamer.freedesktop.org/src/${name}/
25license             GPL-2+ LGPL-2+
26
27checksums           rmd160  a550c1727d0c370546e96efd7ca7161eed7d9539 \
28                    sha256  b8f4cfef12201f19c53a4cde7bc4fef995740c566ea45921d4473f3714e4d8c0
29
30depends_build       port:pkgconfig
31depends_lib         port:gst-plugins-base \
32                    port:a52dec \
33                    port:lame \
34                    port:libcdio \
35                    port:libdvdread \
36                    port:libid3tag \
37                    port:libmad \
38                    port:libmpeg2 \
39                    port:twolame \
40                    port:x264
41
42use_xz              yes
43
44configure.args              mandir=${prefix}/share/man --enable-static
45configure.cppflags-append   "-L${prefix}/lib"
46configure.cflags-append     -funroll-loops -fstrict-aliasing
47
48post-extract {
49    reinplace "s|-flat_namespace -undefined suppress|-undefined define_a_way|g" \
50    ${worksrcpath}/configure
51}
52
53if {[variant_isset universal]} {
54    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
55    set merger_host(i386) i686-apple-${os.platform}${os.major}
56    set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major}
57    set merger_configure_args(i386) --build=i686-apple-${os.platform}${os.major}
58} elseif {${build_arch} == "i386"} {
59    configure.args-append \
60        --host=i686-apple-${os.platform}${os.major} \
61        --build=i686-apple-${os.platform}${os.major}
62} elseif {${build_arch} == "x86_64"} {
63    configure.args-append \
64        --host=${build_arch}-apple-${os.platform}${os.major} \
65        --build=${build_arch}-apple-${os.platform}${os.major}
66}
67
68livecheck.type      regex
69livecheck.url       ${master_sites}
70livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"