# -*- 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 # $Id$ PortSystem 1.0 name libsndfile version 1.0.26 categories audio maintainers stare.cz:hans platforms darwin description libsndfile is a C library for reading and writing files \ containing sampled sound (such as MS Windows WAV and the \ Apple/SGI AIFF format) through one standard library \ interface. long_description ${description} license LGPL-2.1+ homepage http://www.mega-nerd.com/libsndfile/ livecheck.regex {Updates for (\d+\.\d+\.\d+)} livecheck.type regex livecheck.url ${homepage}ChangeLog depends_build port:pkgconfig depends_lib port:flac port:libogg port:libvorbis master_sites ${homepage}files/ checksums rmd160 e521b70af27b0a1bd6aebee3b46806d66aac230a \ sha256 cd6520ec763d1a45573885ecb1f8e4e42505ac12180268482a44b28484a25092 patchfiles carbon.patch speex.patch configure.args \ --disable-alsa \ --disable-octave \ --disable-silent-rules \ --disable-sqlite \ --enable-external-libs post-configure { # https://trac.macports.org/changeset/42762 # http://www.mega-nerd.com/libsndfile/FAQ.html#Q018 system "ed - ${worksrcpath}/src/config.h < ${filespath}/config.h.ed" } if {[variant_isset no_external_libs]} { depends_build-delete port:pkgconfig } variant no_external_libs description {Disable support for FLAC, Ogg and Vorbis} { depends_lib-delete port:flac port:libogg port:libvorbis configure.args-append --disable-external-libs configure.args-delete --enable-external-libs } variant octave description {Enable support for Octave} { depends_build-append port:gsed depends_lib-append path:bin/octave:octave configure.args-append --enable-octave configure.args-delete --disable-octave }