source: trunk/dports/audio/libsndfile/Portfile

Last change on this file was 143862, checked in by khindenburg@…, 19 months ago

libsndfile: update to 1.0.26; adjust patches; remove sqlite variant; +universal works; maintainer #49821

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 143862 2015-12-23 16:01:21Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libsndfile
7version             1.0.26
8categories          audio
9maintainers         stare.cz:hans
10platforms           darwin
11
12description         libsndfile is a C library for reading and writing files \
13                    containing sampled sound (such as MS Windows WAV and the \
14                    Apple/SGI AIFF format) through one standard library \
15                    interface.
16long_description    ${description}
17license             LGPL-2.1+
18homepage            http://www.mega-nerd.com/libsndfile/
19
20livecheck.regex     {Updates for (\d+\.\d+\.\d+)}
21livecheck.type      regex
22livecheck.url       ${homepage}ChangeLog
23
24depends_build       port:pkgconfig
25
26depends_lib         port:flac port:libogg port:libvorbis
27
28master_sites        ${homepage}files/
29
30checksums           rmd160 e521b70af27b0a1bd6aebee3b46806d66aac230a \
31                    sha256 cd6520ec763d1a45573885ecb1f8e4e42505ac12180268482a44b28484a25092
32
33patchfiles          carbon.patch speex.patch
34
35configure.args \
36    --disable-alsa \
37    --disable-octave \
38    --disable-silent-rules \
39    --disable-sqlite \
40    --enable-external-libs
41
42post-configure {
43    # https://trac.macports.org/changeset/42762
44    # http://www.mega-nerd.com/libsndfile/FAQ.html#Q018
45    system "ed - ${worksrcpath}/src/config.h < ${filespath}/config.h.ed"
46}
47
48if {[variant_isset no_external_libs]} {
49    depends_build-delete port:pkgconfig
50}
51
52variant no_external_libs description {Disable support for FLAC, Ogg and Vorbis} {
53    depends_lib-delete    port:flac port:libogg port:libvorbis
54
55    configure.args-append --disable-external-libs
56    configure.args-delete --enable-external-libs
57}
58
59variant octave description {Enable support for Octave} {
60    depends_build-append  port:gsed
61    depends_lib-append    path:bin/octave:octave
62
63    configure.args-append --enable-octave
64    configure.args-delete --disable-octave
65}
Note: See TracBrowser for help on using the repository browser.