source: trunk/dports/audio/libsndfile/Portfile @ 65543

Last change on this file since 65543 was 65543, checked in by perry@…, 10 years ago

Updated audio/libsndfile to 1.0.21; and added openmaintainer, license and livecheck.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 65543 2010-03-27 06:55:12Z perry@macports.org $
2
3PortSystem          1.0
4
5name                libsndfile
6version             1.0.21
7categories          audio
8maintainers         perry openmaintainer
9platforms           darwin
10
11description         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.
15long_description    ${description}
16license             LGPLv2.1
17homepage            http://www.mega-nerd.com/libsndfile/
18
19livecheck.regex     {Updates for (.+).}
20livecheck.type      regex
21livecheck.url       ${homepage}/ChangeLog
22
23depends_build       port:pkgconfig
24depends_lib         port:flac port:libogg port:libvorbis
25
26master_sites        ${homepage}/files/
27
28checksums           rmd160 3f4d3472aebf24b02c2ce3f370023f50096c1fbd
29
30configure.args \
31    --disable-alsa \
32    --disable-octave \
33    --disable-sqlite \
34    --enable-external-libs
35
36post-configure {
37    system "ed - ${worksrcpath}/src/config.h < ${filespath}/src__config.h.ed"
38}
39
40if {[variant_isset no_external_libs] && ![variant_isset sqlite]} {
41    depends_build-delete port:pkgconfig
42}
43
44variant no_external_libs description {Disable support for FLAC, Ogg and Vorbis} {
45    depends_lib-delete port:flac port:libogg port:libvorbis
46
47    configure.args-append --disable-external-libs
48    configure.args-delete --enable-external-libs
49}
50
51variant octave description {Enable support for Octave} {
52    depends_build-append port:gsed
53    depends_lib-append   port:octave
54
55    configure.args-append --enable-octave
56    configure.args-delete --disable-octave
57}
58
59variant sqlite description {Enable support for SQLite} {
60    depends_lib-append port:sqlite3
61
62    configure.args-append --enable-sqlite
63    configure.args-delete --disable-sqlite
64}
Note: See TracBrowser for help on using the repository browser.