source: trunk/dports/gnome/gstreamer010-gst-ffmpeg/Portfile

Last change on this file was 141182, checked in by jeremyhu@…, 22 months ago

misc: Remove references to older versions of macports-clang that are no longer used

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 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 141182 2015-10-12 00:05:23Z 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                gstreamer010-gst-ffmpeg
12set my_name         gst-ffmpeg
13version             0.10.13
14description         This is gst-ffmpeg, a set of plug-ins for GStreamer.
15long_description     ${description}
16maintainers         nomaintainer
17categories          gnome
18license             GPL-2+
19platforms           darwin
20homepage            http://www.gnome.org/
21master_sites        http://gstreamer.freedesktop.org/src/${my_name}/
22distname            ${my_name}-${version}
23use_bzip2           yes
24
25checksums           rmd160  3e5e3d44302665214cfde8a908b633f8d0f70d31 \
26                    sha256  76fca05b08e00134e3cb92fa347507f42cbd48ddb08ed3343a912def187fbb62
27
28patchfiles          patch-gst-libs_ext_libav_configure.diff \
29                    patch-configure.ac.diff
30
31post-patch {
32    reinplace "s|%%CONFIGURE.CC%%|${configure.cc}|g" ${worksrcpath}/gst-libs/ext/libav/configure
33}
34
35depends_build       port:pkgconfig
36
37depends_lib         port:gstreamer010-gst-plugins-base
38
39use_autoreconf      yes
40autoreconf.args     -fvi
41
42# This will cause the installed ffmpeg headers to be used, remove it.
43configure.cppflags-delete -I${prefix}/include
44
45if {[lsearch [get_canonical_archs] i386] != -1} {
46    # clang-3.1 hits https://trac.macports.org/ticket/30137 (<rdar://problem/11542429>)
47    # clang-139 hits https://trac.macports.org/ticket/38141
48    compiler.blacklist-append {clang < 422.1.7}
49
50    # https://trac.macports.org/ticket/37802
51    compiler.blacklist-append gcc-4.2 apple-gcc-4.2 llvm-gcc-4.2 macports-llvm-gcc-4.2
52}
53
54if {[variant_isset universal]} { 
55    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
56    set merger_host(i386) i686-apple-${os.platform}${os.major}
57    set merger_host(ppc64) powerpc64-apple-${os.platform}${os.major}
58    set merger_host(ppc) powerpc-apple-${os.platform}${os.major}
59    set merger_configure_args(x86_64) "--build=x86_64-apple-${os.platform}${os.major} --with-ffmpeg-extra-configure=\"--cc=${configure.cc} --arch=x86_64\""
60    set merger_configure_args(i386) "--build=i686-apple-${os.platform}${os.major} --with-ffmpeg-extra-configure=\"--cc=${configure.cc} --arch=i686\""
61    set merger_configure_args(ppc) "--build=powerpc-apple-${os.platform}${os.major} --with-ffmpeg-extra-configure=\"--cc=${configure.cc} --arch=ppc\""
62    set merger_configure_args(ppc64) "--build=powerpc64-apple-${os.platform}${os.major} --with-ffmpeg-extra-configure=\"--cc=${configure.cc} --arch=ppc64\""
63} elseif {${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        --with-ffmpeg-extra-configure="--cc=${configure.cc} --arch=i686"
68} else {
69    configure.args-append \
70        --host=${os.arch}-apple-${os.platform}${os.major} \
71        --build=${os.arch}-apple-${os.platform}${os.major} \
72        --with-ffmpeg-extra-configure="--cc=${configure.cc} --arch=${os.arch}"
73}
74
75#
76# embedded ffmpeg code requires gmake 3.81 to build properly
77#
78platform darwin 8 {
79    depends_build-append port:gmake
80    build.cmd            gmake
81}
82
83livecheck.type      none
Note: See TracBrowser for help on using the repository browser.