Ticket #37545: gstreamer-1.0.patch

File gstreamer-1.0.patch, 27.2 KB (added by jeremyhu (Jeremy Huddleston Sequoia), 11 years ago)

patchfile to update gst* ports to 1.0.4

  • gst-ffmpeg/Portfile

     
    22# $Id$
    33
    44PortSystem          1.0
     5replaced_by         gst-libav
     6PortGroup           obsolete 1.0
    57
    6 # https://bugzilla.gnome.org/show_bug.cgi?id=636134
    7 PortGroup   muniversal 1.0
    8 
    98name                gst-ffmpeg
    10 version             0.10.13
    11 revision            2
    12 description         This is gst-ffmpeg, a set of plug-ins for GStreamer.
    13 long_description     ${description}
    14 maintainers         rmstonecipher openmaintainer
    15 categories          gnome
    16 license             GPL-2+
    17 platforms           darwin
    18 homepage            http://www.gnome.org/
    19 master_sites        http://gstreamer.freedesktop.org/src/${name}/
    20 
    21 checksums           md5     7f5beacaf1312db2db30a026b36888c4 \
    22                     sha1    8de5c848638c16c6c6c14ce3b22eecd61ddeed44 \
    23                     rmd160  3e5e3d44302665214cfde8a908b633f8d0f70d31
    24 
    25 patchfiles          patch-gst-libs_ext_libav_configure.diff \
    26                     patch-configure.ac.diff
    27 
    28 post-patch {
    29     reinplace "s|%%CONFIGURE.CC%%|${configure.cc}|g" ${worksrcpath}/gst-libs/ext/libav/configure
    30 }
    31 
    32 depends_build       port:pkgconfig
    33 
    34 depends_lib         port:gst-plugins-base
    35 
    36 use_bzip2           yes
    37 
    38 use_autoreconf      yes
    39 autoreconf.args     -fvi
    40 
    41 # This will cause the installed ffmpeg headers to be used, remove it.
    42 configure.cppflags-delete -I${prefix}/include
    43 
    44 if {[variant_isset universal]} {
    45     set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
    46     set merger_host(i386) i686-apple-${os.platform}${os.major}
    47     set merger_host(ppc64) powerpc64-apple-${os.platform}${os.major}
    48     set merger_host(ppc) powerpc-apple-${os.platform}${os.major}
    49     set merger_configure_args(x86_64) "--build=x86_64-apple-${os.platform}${os.major} --with-ffmpeg-extra-configure=\"--cc=${configure.cc} --arch=x86_64\""
    50     set merger_configure_args(ppc) "--build=powerpc-apple-${os.platform}${os.major} --with-ffmpeg-extra-configure=\"--cc=${configure.cc} --arch=ppc\""
    51     set merger_configure_args(ppc64) "--build=powerpc64-apple-${os.platform}${os.major} --with-ffmpeg-extra-configure=\"--cc=${configure.cc} --arch=ppc64\""
    52 
    53     if {[string match "*gcc-4.2" ${configure.compiler}] && [lsearch ${universal_archs} i386] != -1} {
    54         if {[vercmp ${xcodeversion} 3.2] >= 0} {
    55             set merger_configure_compiler(i386) clang
    56             set merger_configure_args(i386) "--build=i686-apple-${os.platform}${os.major} --with-ffmpeg-extra-configure=\"--cc=[portconfigure::find_developer_tool clang] --arch=i686\""
    57         } else {
    58             # i386 in +universal needs MacPorts base 2.1 on Leopard
    59             depends_build port:clang-3.0
    60             depends_skip_archcheck-append clang-3.0
    61 
    62             set merger_configure_compiler(i386) macports-clang-3.0
    63 
    64             set merger_configure_args(i386) "--build=i686-apple-${os.platform}${os.major} --with-ffmpeg-extra-configure=\"--cc=${prefix}/bin/clang-mp-3.0 --arch=i686\""
    65         }
    66     } else {
    67        set merger_configure_args(i386) "--build=i686-apple-${os.platform}${os.major} --with-ffmpeg-extra-configure=\"--cc=${configure.cc} --arch=i686\""
    68     }
    69 } elseif {${build_arch} == "i386"} {
    70     if {${configure.compiler} == "gcc-4.2"} {
    71         if {[vercmp ${xcodeversion} 3.2] >= 0} {
    72             configure.compiler clang
    73         } else {
    74             depends_build port:clang-3.0
    75             depends_skip_archcheck-append clang-3.0
    76 
    77             # FIXME: Use macports-clang-3.0 once 2.1 is out
    78             configure.cc ${prefix}/bin/clang-mp-3.0
    79         }
    80     }
    81     configure.args-append \
    82         --host=i686-apple-${os.platform}${os.major} \
    83         --build=i686-apple-${os.platform}${os.major} \
    84         --with-ffmpeg-extra-configure="--cc=${configure.cc} --arch=i686"
    85 } else {
    86     configure.args-append \
    87         --host=${os.arch}-apple-${os.platform}${os.major} \
    88         --build=${os.arch}-apple-${os.platform}${os.major} \
    89         --with-ffmpeg-extra-configure="--cc=${configure.cc} --arch=${os.arch}"
    90 }
    91 
    92 #
    93 # embedded ffmpeg code requires gmake 3.81 to build properly
    94 #
    95 platform darwin 8 {
    96     depends_build-append port:gmake
    97     depends_skip_archcheck-append gmake
    98 
    99     build.cmd            gmake
    100     destroot.cmd         gmake
    101 }
    102 
    103 livecheck.type      regex
    104 livecheck.url       http://gstreamer.freedesktop.org/src/${name}/
    105 livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
     9version             1.0.4
  • gst-ffmpeg/files/patch-configure.ac.diff

     
    1 --- configure.ac.orig   2013-01-01 19:26:32.000000000 -0600
    2 +++ configure.ac        2013-01-01 19:28:06.000000000 -0600
    3 @@ -22,7 +22,7 @@
    4  AC_CONFIG_SRCDIR([ext/ffmpeg/gstffmpeg.c])
    5  
    6  dnl define the output header for config
    7 -AM_CONFIG_HEADER([config.h])
    8 +AC_CONFIG_HEADERS([config.h])
    9  
    10  dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
    11  AM_MAINTAINER_MODE
  • gst-ffmpeg/files/patch-gst-libs_ext_libav_configure.diff

     
    1 --- gst-libs/ext/libav/configure.orig   2011-03-20 23:39:25.000000000 -0500
    2 +++ gst-libs/ext/libav/configure        2011-03-20 23:40:10.000000000 -0500
    3 @@ -1456,9 +1456,9 @@
    4  
    5  # toolchain
    6  ar_default="ar"
    7 -cc_default="gcc"
    8 +cc_default="%%CONFIGURE.CC%%"
    9  cc_version=\"unknown\"
    10 -host_cc_default="gcc"
    11 +host_cc_default="%%CONFIGURE.CC%%"
    12  ln_s="ln -sf"
    13  nm_default="nm"
    14  objformat="elf"
  • gst-libav/Portfile

     
     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$
     3
     4PortSystem          1.0
     5
     6# https://bugzilla.gnome.org/show_bug.cgi?id=636134
     7PortGroup   muniversal 1.0
     8
     9name                gst-libav
     10version             1.0.4
     11description         This is gst-libav, a set of plug-ins for GStreamer.
     12long_description     ${description}
     13maintainers         rmstonecipher openmaintainer
     14categories          gnome
     15license             GPL-2+
     16platforms           darwin
     17homepage            http://www.gnome.org/
     18master_sites        http://gstreamer.freedesktop.org/src/${name}/
     19
     20checksums           md5     34d98f4c7a875950525996262bf7dccf \
     21                    sha1    4d856e9265b1ffec4171b2e3575557db4c53ed4f \
     22                    rmd160  7d850ff47569c8fa08c2adbb054233767d9c4c34
     23
     24depends_build       port:pkgconfig
     25
     26depends_lib         port:gst-plugins-base
     27
     28use_xz              yes
     29
     30# This will cause the installed ffmpeg headers to be used, remove it.
     31configure.cppflags-delete -I${prefix}/include
     32
     33if {[variant_isset universal]} {
     34    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
     35    set merger_host(i386) i686-apple-${os.platform}${os.major}
     36    set merger_host(ppc64) powerpc64-apple-${os.platform}${os.major}
     37    set merger_host(ppc) powerpc-apple-${os.platform}${os.major}
     38    set merger_configure_args(x86_64) "--build=x86_64-apple-${os.platform}${os.major} --with-ffmpeg-extra-configure=\"--cc=${configure.cc} --arch=x86_64\""
     39    set merger_configure_args(ppc) "--build=powerpc-apple-${os.platform}${os.major} --with-ffmpeg-extra-configure=\"--cc=${configure.cc} --arch=ppc\""
     40    set merger_configure_args(ppc64) "--build=powerpc64-apple-${os.platform}${os.major} --with-ffmpeg-extra-configure=\"--cc=${configure.cc} --arch=ppc64\""
     41
     42    if {[string match "*gcc-4.2" ${configure.compiler}] && [lsearch ${universal_archs} i386] != -1} {
     43        if {[vercmp ${xcodeversion} 3.2] >= 0} {
     44            set merger_configure_compiler(i386) clang
     45            set merger_configure_args(i386) "--build=i686-apple-${os.platform}${os.major} --with-ffmpeg-extra-configure=\"--cc=[portconfigure::find_developer_tool clang] --arch=i686\""
     46        } else {
     47            depends_build port:clang-3.0
     48            depends_skip_archcheck-append clang-3.0
     49
     50            set merger_configure_compiler(i386) macports-clang-3.0
     51
     52            set merger_configure_args(i386) "--build=i686-apple-${os.platform}${os.major} --with-ffmpeg-extra-configure=\"--cc=${prefix}/bin/clang-mp-3.0 --arch=i686\""
     53        }
     54    } else {
     55       set merger_configure_args(i386) "--build=i686-apple-${os.platform}${os.major} --with-ffmpeg-extra-configure=\"--cc=${configure.cc} --arch=i686\""
     56    }
     57} elseif {${build_arch} == "i386"} {
     58    if {${configure.compiler} == "gcc-4.2"} {
     59        if {[vercmp ${xcodeversion} 3.2] >= 0} {
     60            configure.compiler clang
     61        } else {
     62            depends_build port:clang-3.0
     63            depends_skip_archcheck-append clang-3.0
     64            configure.compiler macports-clang-3.0
     65        }
     66    }
     67    configure.args-append \
     68        --host=i686-apple-${os.platform}${os.major} \
     69        --build=i686-apple-${os.platform}${os.major} \
     70        --with-ffmpeg-extra-configure="--cc=${configure.cc} --arch=i686"
     71} else {
     72    configure.args-append \
     73        --host=${os.arch}-apple-${os.platform}${os.major} \
     74        --build=${os.arch}-apple-${os.platform}${os.major} \
     75        --with-ffmpeg-extra-configure="--cc=${configure.cc} --arch=${os.arch}"
     76}
     77
     78# TODO: Is this still needed?
     79# embedded ffmpeg code requires gmake 3.81 to build properly
     80#
     81platform darwin 8 {
     82    depends_build-append port:gmake
     83    depends_skip_archcheck-append gmake
     84
     85    build.cmd            gmake
     86    destroot.cmd         gmake
     87}
     88
     89livecheck.type      regex
     90livecheck.url       http://gstreamer.freedesktop.org/src/${name}/
     91livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
  • gst-plugins-bad/Portfile

    Property changes on: gst-libav/Portfile
    ___________________________________________________________________
    Added: svn:eol-style
    ## -0,0 +1 ##
    +native
    \ No newline at end of property
    Added: svn:keywords
    ## -0,0 +1 ##
    +Id
    \ No newline at end of property
     
    77PortGroup   muniversal 1.0
    88
    99name                    gst-plugins-bad
    10 version                 0.10.23
    11 revision                    5
     10version                 1.0.4
    1211description         A set of plug-ins for GStreamer that need more quality.
    1312long_description    \
    1413    GStreamer Bad Plug-ins is a set of plug-ins that aren't up to par compared \
     
    2120platforms           darwin
    2221homepage            http://gstreamer.freedesktop.org/modules/${name}.html
    2322master_sites        http://gstreamer.freedesktop.org/src/${name}/
    24 use_bzip2           yes
     23use_xz              yes
    2524
    26 checksums           md5     fcb09798114461955260e4d940db5987 \
    27                     sha1    46208d7bcebaac31310e2a884cc840c51034781a \
    28                     rmd160  3a837843b8aa941ff7c81b90d37930ccb1ddb0be
     25checksums           md5     5f8dce09342c26bd916affbab5a6a7ff \
     26                    sha1    0871580df518da73fd34fc694d79bba98a62b3d6 \
     27                    rmd160  d4f99bab7a910a88f6925b1c16786d2d81c040b0
    2928
    3029depends_build port:pkgconfig
    3130depends_lib port:gst-plugins-base \
     
    7069                            --enable-experimental \
    7170                            --enable-static
    7271
     72# TODO: osxvideosrc.c:47:10: fatal error: 'gst/interfaces/propertyprobe.h' file not found
     73configure.args-append       --disable-osx_video
     74
    7375#
    7476# port:soundtouch (fails on autoreconf on darwin 8 & 9, see #27533) disable soundtouch on these platforms
    7577#
     
    7981        configure.args-append --disable-soundtouch
    8082}
    8183
    82 configure.cppflags-append   "-L${prefix}/lib"
    83 configure.cflags-append     -funroll-loops -fstrict-aliasing
    8484configure.env-append        "HAVE_CXX=yes"
    8585
    86 patchfiles  modplug.patch \
    87             patch-sys-applemedia-Makefile.in.diff
    88 
    89 post-patch {
    90     reinplace "s|-flat_namespace -undefined suppress|-undefined define_a_way|g" \
    91         ${worksrcpath}/configure
    92     reinplace "s|libSoundTouch|soundtouch-1.0|g" \
    93         ${worksrcpath}/configure
    94 }
    95 
    9686variant no_x11 {
    9787        configure.args-append --disable-examples
    9888}
  • gst-plugins-bad/files/modplug.patch

     
    1 --- ext/modplug/gstmodplug.h.orig       2009-04-19 14:37:08.000000000 -0700
    2 +++ ext/modplug/gstmodplug.h    2009-04-19 14:37:24.000000000 -0700
    3 @@ -22,6 +22,7 @@
    4  #define __GST_MODPLUG_H__
    5  
    6  #include <gst/gst.h>
    7 +#include <libmodplug/sndfile.h>
    8  
    9  G_BEGIN_DECLS
    10          
  • gst-plugins-bad/files/patch-sys-applemedia-Makefile.in.diff

     
    1 --- sys/applemedia/Makefile.in.orig     2012-11-01 21:03:54.000000000 -0500
    2 +++ sys/applemedia/Makefile.in  2012-11-01 21:06:40.000000000 -0500
    3 @@ -246,6 +246,7 @@
    4  CELT_CFLAGS = @CELT_CFLAGS@
    5  CELT_LIBS = @CELT_LIBS@
    6  CFLAGS = @CFLAGS@
    7 +OBJCFLAGS = @CFLAGS@
    8  COG_CFLAGS = @COG_CFLAGS@
    9  COG_LIBS = @COG_LIBS@
    10  CPP = @CPP@
  • gst-plugins-base/Portfile

     
    77PortGroup           muniversal 1.0
    88
    99name                gst-plugins-base
    10 version             0.10.36
    11 revision            2
     10version             1.0.4
    1211description         This is gst-plugins, a set of plug-ins for GStreamer.
    1312long_description    ${description}
    1413maintainers         rmstonecipher openmaintainer
     
    1716license             LGPL-2+
    1817homepage            http://gstreamer.freedesktop.org/modules/${name}.html
    1918
    20 use_bzip2           yes
    21 master_sites        gnome:sources/gst-plugins-base/0.10/ http://gstreamer.freedesktop.org/src/${name}/
     19use_xz              yes
     20master_sites        gnome:sources/gst-plugins-base/1.0/ http://gstreamer.freedesktop.org/src/${name}/
    2221
    23 checksums           md5     776c73883e567f67b9c4a2847d8d041a \
    24                     sha1    e675401b62a6bf2e5ea966e833afd005a585e978 \
    25                     rmd160  b601372b3a1c04de63f69ba350c5010c99dbc6ae
     22checksums           md5     3ee91b59cb23632e5a0aa8d36bb5c129 \
     23                    sha1    6d4174e5f08c178c02acb1135b7b7fdd17bde848 \
     24                    rmd160  023515676c3238e86070f67b0d825401fabe83ff
    2625
     26# TODO: Add libvisual (?)
     27
    2728depends_build \
    2829    port:pkgconfig
    2930depends_lib     \
    3031    port:gstreamer \
    3132    port:gnome-vfs \
    3233    port:libtheora \
     34    port:libvorbis \
     35    port:libogg \
    3336    port:openssl \
    3437    port:orc \
     38    port:pango \
    3539    port:xorg-libice \
    3640    port:xorg-libsm
    3741
     
    3943    --enable-experimental \
    4044    --disable-examples \
    4145    --disable-libvisual\
    42     --disable-gst_v4l \
    4346    --disable-alsa \
    4447    --disable-cdparanoia \
    4548    --disable-ivorbis \
  • gst-plugins-good/Portfile

     
    44PortSystem  1.0
    55
    66# https://bugzilla.gnome.org/show_bug.cgi?id=636134
    7 PortGroup   muniversal 1.0
     7PortGroup           muniversal 1.0
     8PortGroup           compiler_blacklist_versions 1.0
    89
    910name                gst-plugins-good
    10 version             0.10.31
    11 revision            6
     11version             1.0.4
    1212description         \
    1313    A set of good-quality plug-ins for GStreamer under GStreamer's preferred \
    1414    license, LGPL.
     
    2424homepage            http://gstreamer.freedesktop.org/modules/${name}.html
    2525master_sites        http://gstreamer.freedesktop.org/src/${name}/ gnome:sources/${name}/0.10/
    2626
    27 checksums           md5     24f98a294a2b521e1b29412bdadae2e6 \
    28                     sha1    b45fc01b133fc23617fa501dd9307a90f467b396 \
    29                     rmd160  d9fed957ba26d055f7bccb9079bd43faae15b7e5
     27checksums           md5     7a3f76b68cadafd1588af36f5f261bb8 \
     28                    sha1    4afaa6be62cb271b8f086e64aa1dc9d21b807782 \
     29                    rmd160  3c00805286bac79ff36fd1c878f221c8e69eecf5
    3030
    3131depends_build \
    3232    port:pkgconfig
     
    4545    port:taglib \
    4646    port:wavpack
    4747     
    48 use_bzip2   yes
     48use_xz   yes
    4949
    5050post-patch {
    5151    # gst/goom is the only thing using this, and its mmx code is buggy (as of 0.10.31)
     
    5353    reinplace "/^MMX_FILES/s|=.*|=|"       ${worksrcpath}/gst/goom/Makefile.am
    5454}
    5555
    56 use_autoreconf          yes
    57 autoreconf.args         -fvi
     56configure.args-append   --disable-gtk-doc --with-default-videosink=ximagesink
     57configure.env-append    "HAVE_CXX=yes"
    5858
    59 configure.args-append   --disable-gtk-doc --disable-schemas-install --with-default-videosink=ximagesink
    60 
    6159if {[variant_isset universal]} {
    6260    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
    6361    set merger_host(i386) i686-apple-${os.platform}${os.major}
     
    7472}
    7573
    7674# SSE register return with SSE disabled
    77 # <rdar://problem/9694837> - Fixed in XCode 4.2
    78 if {${configure.compiler} == "clang" && [vercmp ${xcodeversion} 4.2] < 0} {
    79     configure.compiler llvm-gcc-4.2
    80 }
     75# <rdar://problem/9694837> - Fixed in XCode 4.2 (clang 211.10.1)
     76compiler.blacklist  {clang < 211.10.1}
    8177
    8278post-activate {
    8379        system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
  • gst-plugins-ugly/Portfile

     
    77PortGroup   muniversal 1.0
    88
    99name                gst-plugins-ugly
    10 version             0.10.19
    11 revision            5
     10version             1.0.4
    1211description         \
    1312    A set of good-quality plug-ins for GStreamer that might pose distribution \
    1413    problems.
     
    2423master_sites        http://gstreamer.freedesktop.org/src/${name}/
    2524license             GPL-2+ LGPL-2+
    2625
    27 checksums           md5     1d81c593e22a6cdf0f2b4f57eae93df2 \
    28                     sha1    a28e4e8962f1fe385a098b13249a2b817c44fe63 \
    29                     rmd160  39fadcf4205bbe0fd2dc079296c816d8668cc59d
     26checksums           md5     a40f3da59e420b4efb29f4d69ea324d3 \
     27                    sha1    7626b4645733ba98ea7168ce4cf6b09322b5c2ac \
     28                    rmd160  62ab3deab853de251d1e172e6d16fe2229b358fd
    3029
    3130depends_build       port:pkgconfig
    3231depends_lib         port:gst-plugins-base \
     
    4140                    port:twolame \
    4241                    port:x264
    4342
    44 use_bzip2           yes
     43use_xz              yes
    4544
    46 patchfiles          libcdio.patch
    47 patch.pre_args      -p1
    48 
    49 configure.args              mandir=${prefix}/share/man --enable-static
    50 configure.cppflags-append   "-L${prefix}/lib"
    51 configure.cflags-append     -funroll-loops -fstrict-aliasing
    52 
    53 # I'm not sure if the pkg-config data is wrong or if gst-plugin is wrong, meh.
    54 configure.cppflags-append -I${prefix}/include/opencore-amrnb -I${prefix}/include/opencore-amrwb
    55 
    56 post-extract {
    57     reinplace "s|-flat_namespace -undefined suppress|-undefined define_a_way|g" \
    58     ${worksrcpath}/configure
    59 }
    60 
    6145if {[variant_isset universal]} {
    6246    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
    6347    set merger_host(i386) i686-apple-${os.platform}${os.major}
  • gst-plugins-ugly/files/libcdio.patch

     
    1 From 649bd92cd2600719862ad5189899212409dd0a67 Mon Sep 17 00:00:00 2001
    2 From: Leon Merten Lohse <leon@green-side.de>
    3 Date: Thu, 03 May 2012 22:50:30 +0000
    4 Subject: cdio: compensate for libcdio's recent cd-text api changes
    5 
    6 https://bugzilla.gnome.org/show_bug.cgi?id=675112
    7 
    8 Conflicts:
    9 
    10         ext/cdio/gstcdiocddasrc.c
    11 ---
    12 diff --git a/ext/cdio/gstcdio.c b/ext/cdio/gstcdio.c
    13 index 2f58d18..483ebf5 100644
    14 --- a/ext/cdio/gstcdio.c
    15 +++ b/ext/cdio/gstcdio.c
    16 @@ -30,12 +30,16 @@
    17  GST_DEBUG_CATEGORY (gst_cdio_debug);
    18  
    19  void
    20 -gst_cdio_add_cdtext_field (GstObject * src, cdtext_t * cdtext,
    21 +gst_cdio_add_cdtext_field (GstObject * src, cdtext_t * cdtext, track_t track,
    22      cdtext_field_t field, const gchar * gst_tag, GstTagList ** p_tags)
    23  {
    24    const gchar *txt;
    25  
    26 +#if LIBCDIO_VERSION_NUM > 83
    27 +  txt = cdtext_get_const (cdtext, field, track);
    28 +#else
    29    txt = cdtext_get_const (field, cdtext);
    30 +#endif
    31    if (txt == NULL || *txt == '\0') {
    32      GST_DEBUG_OBJECT (src, "empty CD-TEXT field %u (%s)", field, gst_tag);
    33      return;
    34 @@ -57,6 +61,12 @@ gst_cdio_add_cdtext_field (GstObject * src, cdtext_t * cdtext,
    35  }
    36  
    37  GstTagList *
    38 +#if LIBCDIO_VERSION_NUM > 83
    39 +gst_cdio_get_cdtext (GstObject * src, cdtext_t * t, track_t track)
    40 +{
    41 +  GstTagList *tags = NULL;
    42 +
    43 +#else
    44  gst_cdio_get_cdtext (GstObject * src, CdIo * cdio, track_t track)
    45  {
    46    GstTagList *tags = NULL;
    47 @@ -67,14 +77,22 @@ gst_cdio_get_cdtext (GstObject * src, CdIo * cdio, track_t track)
    48      GST_DEBUG_OBJECT (src, "no CD-TEXT for track %u", track);
    49      return NULL;
    50    }
    51 +#endif
    52  
    53 -  gst_cdio_add_cdtext_field (src, t, CDTEXT_PERFORMER, GST_TAG_ARTIST, &tags);
    54 -  gst_cdio_add_cdtext_field (src, t, CDTEXT_TITLE, GST_TAG_TITLE, &tags);
    55 +  gst_cdio_add_cdtext_field (src, t, track, CDTEXT_FIELD_PERFORMER,
    56 +      GST_TAG_ARTIST, &tags);
    57 +  gst_cdio_add_cdtext_field (src, t, track, CDTEXT_FIELD_TITLE, GST_TAG_TITLE,
    58 +      &tags);
    59  
    60    return tags;
    61  }
    62  
    63  void
    64 +#if LIBCDIO_VERSION_NUM > 83
    65 +gst_cdio_add_cdtext_album_tags (GstObject * src, cdtext_t * t,
    66 +    GstTagList * tags)
    67 +{
    68 +#else
    69  gst_cdio_add_cdtext_album_tags (GstObject * src, CdIo * cdio, GstTagList * tags)
    70  {
    71    cdtext_t *t;
    72 @@ -84,11 +102,14 @@ gst_cdio_add_cdtext_album_tags (GstObject * src, CdIo * cdio, GstTagList * tags)
    73      GST_DEBUG_OBJECT (src, "no CD-TEXT for album");
    74      return;
    75    }
    76 +#endif
    77  
    78 -  /* FIXME: map CDTEXT_PERFORMER to GST_TAG_ALBUM_ARTIST once we have that */
    79 -  gst_cdio_add_cdtext_field (src, t, CDTEXT_TITLE, GST_TAG_ALBUM, &tags);
    80 -  gst_cdio_add_cdtext_field (src, t, CDTEXT_GENRE, GST_TAG_GENRE, &tags);
    81 -
    82 +  gst_cdio_add_cdtext_field (src, t, 0, CDTEXT_FIELD_PERFORMER,
    83 +      GST_TAG_ALBUM_ARTIST, &tags);
    84 +  gst_cdio_add_cdtext_field (src, t, 0, CDTEXT_FIELD_TITLE, GST_TAG_ALBUM,
    85 +      &tags);
    86 +  gst_cdio_add_cdtext_field (src, t, 0, CDTEXT_FIELD_GENRE, GST_TAG_GENRE,
    87 +      &tags);
    88    GST_DEBUG ("CD-TEXT album tags: %" GST_PTR_FORMAT, tags);
    89  }
    90  
    91 diff --git a/ext/cdio/gstcdio.h b/ext/cdio/gstcdio.h
    92 index ef31ed0..c6da580 100644
    93 --- a/ext/cdio/gstcdio.h
    94 +++ b/ext/cdio/gstcdio.h
    95 @@ -24,22 +24,38 @@
    96  #include <gst/gst.h>
    97  #include <cdio/cdio.h>
    98  #include <cdio/cdtext.h>
    99 +#include <cdio/version.h>
    100 +
    101 +#if LIBCDIO_VERSION_NUM <= 83
    102 +  #define CDTEXT_FIELD_PERFORMER CDTEXT_PERFORMER
    103 +  #define CDTEXT_FIELD_GENRE     CDTEXT_GENRE
    104 +  #define CDTEXT_FIELD_TITLE     CDTEXT_TITLE
    105 +#endif
    106  
    107  GST_DEBUG_CATEGORY_EXTERN (gst_cdio_debug);
    108  #define GST_CAT_DEFAULT gst_cdio_debug
    109  
    110  void     gst_cdio_add_cdtext_field (GstObject      * src,
    111                                      cdtext_t       * cdtext,
    112 +                                    track_t          track,
    113                                      cdtext_field_t   field,
    114                                      const gchar    * gst_tag,
    115                                      GstTagList    ** p_tags);
    116  
    117  GstTagList  * gst_cdio_get_cdtext  (GstObject      * src,
    118 +#if LIBCDIO_VERSION_NUM > 83
    119 +                                    cdtext_t       * t,
    120 +#else
    121                                      CdIo           * cdio,
    122 +#endif
    123                                      track_t          track);
    124  
    125  void      gst_cdio_add_cdtext_album_tags (GstObject  * src,
    126 +#if LIBCDIO_VERSION_NUM > 83
    127 +                                          cdtext_t   * t,
    128 +#else
    129                                            CdIo       * cdio,
    130 +#endif
    131                                            GstTagList * tags);
    132  
    133  #endif /* __GST_CDIO_H__ */
    134 diff --git a/ext/cdio/gstcdiocddasrc.c b/ext/cdio/gstcdiocddasrc.c
    135 index 615a0c8..830839e 100644
    136 --- a/ext/cdio/gstcdiocddasrc.c
    137 +++ b/ext/cdio/gstcdiocddasrc.c
    138 @@ -218,6 +218,9 @@ gst_cdio_cdda_src_open (GstCddaBaseSrc *
    139    GstCdioCddaSrc *src;
    140    discmode_t discmode;
    141    gint first_track, num_tracks, i;
    142 +#if LIBCDIO_VERSION_NUM > 83
    143 +  cdtext_t *cdtext;
    144 +#endif
    145  
    146    src = GST_CDIO_CDDA_SRC (cddabasesrc);
    147  
    148 @@ -244,8 +247,18 @@ gst_cdio_cdda_src_open (GstCddaBaseSrc *
    149    if (src->read_speed != -1)
    150      cdio_set_speed (src->cdio, src->read_speed);
    151  
    152 +#if LIBCDIO_VERSION_NUM > 83
    153 +  cdtext = cdio_get_cdtext (src->cdio);
    154 +
    155 +  if (NULL == cdtext)
    156 +    GST_DEBUG_OBJECT (src, "no CD-TEXT on disc");
    157 +  else
    158 +    gst_cdio_add_cdtext_album_tags (GST_OBJECT_CAST (src), cdtext,
    159 +        cddabasesrc->tags);
    160 +#else
    161    gst_cdio_add_cdtext_album_tags (GST_OBJECT_CAST (src), src->cdio,
    162        cddabasesrc->tags);
    163 +#endif
    164  
    165    GST_LOG_OBJECT (src, "%u tracks, first track: %d", num_tracks, first_track);
    166  
    167 @@ -262,8 +275,14 @@ gst_cdio_cdda_src_open (GstCddaBaseSrc *
    168       * the right thing here (for cddb id calculations etc. as well) */
    169      track.start = cdio_get_track_lsn (src->cdio, i + first_track);
    170      track.end = track.start + len_sectors - 1;  /* -1? */
    171 +#if LIBCDIO_VERSION_NUM > 83
    172 +    if (NULL != cdtext)
    173 +      track.tags = gst_cdio_get_cdtext (GST_OBJECT (src), cdtext,
    174 +          i + first_track);
    175 +#else
    176      track.tags = gst_cdio_get_cdtext (GST_OBJECT (src), src->cdio,
    177          i + first_track);
    178 +#endif
    179  
    180      gst_cdda_base_src_add_track (GST_CDDA_BASE_SRC (src), &track);
    181    }
  • gstreamer/Portfile

     
    77PortGroup   muniversal 1.0
    88
    99name                gstreamer
    10 version             0.10.36
    11 revision            2
     10version             1.0.4
    1211description \
    1312    GStreamer is a library for constructing graphs of media-handling components.
    1413long_description \
     
    2423    gnome:sources/gstreamer/[join [lrange [split ${version} .] 0 1] .]/ \
    2524    http://gstreamer.freedesktop.org/src/${name}/
    2625
    27 checksums           md5     a0cf7d6877f694a1a2ad2b4d1ecb890b \
    28                     sha1    ff95b5316b920e7c2836588bba18fa61395fbd03 \
    29                     rmd160  5dd01d8ea7afe98e96037bf73f995654f469096e
     26checksums           md5     781431fac34d63b49ec6ec6b789aba19 \
     27                    sha1    2b426321520dfefcd69eeb40e5b68911c31f5287 \
     28                    rmd160  7676ca3e2a3499645d79f08aa2a43c0d717e8212
    3029
    3130depends_build   \
    3231    port:gzip \
     
    4039    path:lib/pkgconfig/glib-2.0.pc:glib2 \
    4140    port:libxml2
    4241
    43 use_bzip2           yes
     42use_xz           yes
    4443
    4544configure.env-append    PERL_PATH=${prefix}/bin/perl
    4645configure.cflags-append -funroll-loops -fstrict-aliasing -fno-common