source: trunk/dports/gnome/gstreamer1-gst-libav/Portfile

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

gstreamer1*: update to version 1.8.2.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 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
9PortGroup           compiler_blacklist_versions 1.0
10
11name                gstreamer1-gst-libav
12set my_name         gst-libav
13version             1.8.2
14description         This is gst-libav, a set of plug-ins for GStreamer.
15long_description    ${description}
16maintainers         nomaintainer
17categories          gnome
18license             GPL-2+
19platforms           darwin
20homepage            http://gstreamer.freedesktop.org/
21master_sites        http://gstreamer.freedesktop.org/src/${my_name}/
22distname            ${my_name}-${version}
23use_xz              yes
24
25checksums           rmd160  72a213982a74e9517585d89d28819fd9ebf992dc \
26                    sha256  b5f3c7a27b39b5f5c2f0bfd546b0c655020faf6b38d27b64b346c43e5ebf687a
27
28depends_build       port:pkgconfig \
29                    port:yasm
30
31depends_lib         port:gstreamer1-gst-plugins-base
32
33# This will cause the installed ffmpeg headers to be used, remove it.
34configure.cppflags-delete -I${prefix}/include
35
36if {[lsearch [get_canonical_archs] i386] != -1} {
37    # clang-139 hits https://trac.macports.org/ticket/38141
38    compiler.blacklist-append {clang < 422.1.7}
39
40    # https://trac.macports.org/ticket/37802
41    compiler.blacklist-append gcc-4.2 apple-gcc-4.2 llvm-gcc-4.2 macports-llvm-gcc-4.2
42}
43
44configure.args-append \
45                    --disable-fatal-warnings \
46                    --disable-silent-rules
47
48if {[variant_isset universal]} {
49    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
50    set merger_host(i386) i686-apple-${os.platform}${os.major}
51    set merger_host(ppc64) powerpc64-apple-${os.platform}${os.major}
52    set merger_host(ppc) powerpc-apple-${os.platform}${os.major}
53    set merger_configure_args(x86_64) "--build=x86_64-apple-${os.platform}${os.major}"
54    set merger_configure_args(i386) "--build=i686-apple-${os.platform}${os.major}"
55    set merger_configure_args(ppc) "--build=powerpc-apple-${os.platform}${os.major}"
56    set merger_configure_args(ppc64) "--build=powerpc64-apple-${os.platform}${os.major}"
57} elseif {${build_arch} eq "i386"} {
58    configure.args-append \
59        --host=i686-apple-${os.platform}${os.major} \
60        --build=i686-apple-${os.platform}${os.major}
61} else {
62    configure.args-append \
63        --host=${os.arch}-apple-${os.platform}${os.major} \
64        --build=${os.arch}-apple-${os.platform}${os.major}
65}
66
67use_autoreconf  yes
68autoreconf.args -fvi
69
70#
71# embedded ffmpeg code requires gmake 3.81 to build properly
72#
73platform darwin 8 {
74    depends_build-append port:gmake
75    build.cmd            gmake
76}
77
78livecheck.type      regex
79livecheck.url       ${master_sites}
80livecheck.regex     "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.