Ticket #53896: libsndfile.diff

File libsndfile.diff, 2.6 KB (added by janstary (Jan Starý), 7 years ago)

upgrade libsndfile to 1.0.27

  • audio/libsndfile/Portfile

    diff --git a/audio/libsndfile/Portfile b/audio/libsndfile/Portfile
    index d3dd8cb6b0..9d9d2d1f45 100644
    a b  
    33PortSystem          1.0
    44
    55name                libsndfile
    6 version             1.0.26
     6version             1.0.27
    77categories          audio
    88maintainers         stare.cz:hans
    99platforms           darwin
    1010
    11 description         libsndfile is a C library for reading and writing files \
    12                     containing sampled sound (such as MS Windows WAV and the \
    13                     Apple/SGI AIFF format) through one standard library \
    14                     interface.
     11description         a C library for reading and writing files containing \
     12                    sampled sound through one standard library interface.
    1513long_description    ${description}
    1614license             LGPL-2.1+
    17 homepage            http://www.mega-nerd.com/libsndfile/
    1815
    1916depends_build       port:pkgconfig
    20 
    2117depends_lib         port:flac port:libogg port:libvorbis
    2218
     19homepage            http://www.mega-nerd.com/libsndfile/
    2320master_sites        ${homepage}files/
    24 
    25 checksums           rmd160 e521b70af27b0a1bd6aebee3b46806d66aac230a \
    26                     sha256 cd6520ec763d1a45573885ecb1f8e4e42505ac12180268482a44b28484a25092
    27 
    28 patchfiles          carbon.patch speex.patch
     21checksums           \
     22        rmd160  df7b8931cb96faa815add7abc43b482fb62ebf67 \
     23        sha256  a391952f27f4a92ceb2b4c06493ac107896ed6c76be9a613a4731f076d30fac0
    2924
    3025configure.args \
    3126    --disable-alsa \
    3227    --disable-octave \
    3328    --disable-silent-rules \
    3429    --disable-sqlite \
     30    --disable-test-coverage \
    3531    --enable-external-libs
    3632
    37 post-configure {
    38     # https://trac.macports.org/changeset/42762
    39     # http://www.mega-nerd.com/libsndfile/FAQ.html#Q018
    40     system "ed - ${worksrcpath}/src/config.h < ${filespath}/config.h.ed"
    41 }
    42 
    43 if {[variant_isset no_external_libs]} {
    44     depends_build-delete port:pkgconfig
    45 }
    46 
    47 variant no_external_libs description {Disable support for FLAC, Ogg and Vorbis} {
     33variant no_external_libs description {Disable FLAC, Ogg and Vorbis support} {
     34    depends_build-delete  port:pkgconfig
    4835    depends_lib-delete    port:flac port:libogg port:libvorbis
    49 
    5036    configure.args-append --disable-external-libs
    5137    configure.args-delete --enable-external-libs
    5238}
    variant no_external_libs description {Disable support for FLAC, Ogg and Vorbis} 
    5440variant octave description {Enable support for Octave} {
    5541    depends_build-append  port:gsed
    5642    depends_lib-append    path:bin/octave:octave
    57 
    5843    configure.args-append --enable-octave
    5944    configure.args-delete --disable-octave
    6045}