source: trunk/dports/gnome/gstreamer010-gst-plugins-gl/Portfile

Last change on this file was 150803, checked in by devans@…, 16 months ago

gstreamer010-gst-plugins-gl: increment revision to rebuild with libGLEW.2.0.0.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 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 150803 2016-07-29 16:00:54Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6# https://bugzilla.gnome.org/show_bug.cgi?id=636134
7PortGroup           muniversal 1.0
8
9name                gstreamer010-gst-plugins-gl
10set my_name         gst-plugins-gl
11version             0.10.3
12revision            6
13description         This is gst-plugins, a set of plug-ins for GStreamer.
14long_description    The GStreamer OpenGL module provides helper libraries, base \
15                    classes and elements for integrating with OpenGL and using \
16                    it to perform video display and processing.
17
18maintainers         nomaintainer
19categories          gnome
20platforms           darwin
21license             GPL-2+ LGPL-2+
22homepage            http://gstreamer.freedesktop.org/modules/${my_name}.html
23master_sites        http://gstreamer.freedesktop.org/src/${my_name}/
24distname            ${my_name}-${version}
25
26depends_build \
27    port:pkgconfig
28depends_lib     \
29    port:glew \
30    port:gstreamer010-gst-plugins-base \
31    port:libpng
32
33use_bzip2           yes
34
35checksums           rmd160  7375ad5f4831267d398ff579ce5a96e4020ff128 \
36                    sha256  48340b6a4b8abce16344a7bc33e74a94fdcce4f57ef6342cdf2f941c429bf210
37
38patchfiles          objcflags.patch \
39                    patch-configure.ac.diff
40
41use_autoreconf  yes
42autoreconf.args -fvi
43
44# gst-plugins-gl sees libsdl if it is present and uses it to build examples which
45# fail to build as of 0.10.3
46configure.args-append   --disable-examples
47
48post-extract {
49    reinplace "s|-flat_namespace -undefined suppress|-undefined define_a_way|g" \
50        ${worksrcpath}/configure
51}
52
53post-patch {
54    # Hack to get -arch flags used
55    reinplace "/libgstgl_@GST_MAJORMINOR@_la_OBJCFLAGS =/s/=/= \$(CFLAGS)/" \
56        ${worksrcpath}/gst-libs/gst/gl/Makefile.am
57}
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} eq "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} eq "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
74livecheck.type      none
Note: See TracBrowser for help on using the repository browser.