source: trunk/dports/gnome/gstreamer1-gst-plugins-ugly/Portfile

Last change on this file was 149596, checked in by devans@…, 13 months ago

gstreamer1*: update to version 1.8.2.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 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 149596 2016-06-27 20:45:11Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6# https://bugzilla.gnome.org/show_bug.cgi?id=636134
7PortGroup           muniversal 1.0
8
9name                gstreamer1-gst-plugins-ugly
10set my_name         gst-plugins-ugly
11version             1.8.2
12description         A set of good-quality plug-ins for GStreamer that might pose distribution \
13                    problems.
14long_description    GStreamer Ugly Plug-ins is a set of plug-ins that have good quality and \
15                    correct functionality, but distributing them might pose problems. The \
16                    license on either the plug-ins or the supporting libraries might not be how \
17                    we'd like. The code might be widely known to present patent problems.
18maintainers         nomaintainer
19categories          gnome
20platforms           darwin
21homepage            http://gstreamer.freedesktop.org/modules/${my_name}.html
22master_sites        http://gstreamer.freedesktop.org/src/${my_name}/
23distname            ${my_name}-${version}
24license             GPL-2+ LGPL-2+
25use_xz              yes
26
27checksums           rmd160  26d4452c373b5984a1800a29a508b1b060e1082b \
28                    sha256  9c5b33a2a98fc1d6d6c99a1b536b1fb2de45f53cc8bf8ab85a8b8141fed1a8ac
29
30depends_build       port:pkgconfig
31depends_lib         port:gstreamer1-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:mpg123 \
40                    port:opencore-amr \
41                    port:twolame \
42                    port:x264
43
44configure.args-append \
45                    --disable-fatal-warnings \
46                    --disable-silent-rules \
47                    --enable-static
48
49configure.cflags-append     -funroll-loops -fstrict-aliasing
50
51# pkg-config --cflags opencore-amr* incorrectly returns just -I${prefix}/include
52configure.env-append \
53                    AMRNB_CFLAGS=-I${prefix}/include/opencore-amrnb \
54                    AMRWB_CFLAGS=-I${prefix}/include/opencore-amrwb
55
56if {[variant_isset universal]} {
57    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
58    set merger_host(i386) i686-apple-${os.platform}${os.major}
59    set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major}
60    set merger_configure_args(i386) --build=i686-apple-${os.platform}${os.major}
61} else {
62
63    if {${build_arch} eq "i386"} {
64        configure.args-append \
65            --host=i686-apple-${os.platform}${os.major} \
66            --build=i686-apple-${os.platform}${os.major}
67    } elseif {${build_arch} eq "x86_64"} {
68        configure.args-append \
69            --host=${build_arch}-apple-${os.platform}${os.major} \
70            --build=${build_arch}-apple-${os.platform}${os.major}
71    }
72}
73
74# in version 1.8.0 plugin mpg123 has moved from bad to ugly
75
76pre-activate {
77    if {![catch {set installed [lindex [registry_active gstreamer1-gst-plugins-bad] 0]}]} {
78        set _version [lindex $installed 1]
79        if {[vercmp $_version 1.8.0] < 0} {
80            registry_deactivate_composite gstreamer1-gst-plugins-bad "" [list ports_nodepcheck 1]
81        }
82    }
83}
84
85livecheck.type      regex
86livecheck.url       ${master_sites}
87livecheck.regex     "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.