[48101] trunk/dports/audio/libsndfile/Portfile

perry at macports.org perry at macports.org
Sat Mar 14 02:40:20 PDT 2009


Revision: 48101
          http://trac.macports.org/changeset/48101
Author:   perry at macports.org
Date:     2009-03-14 02:40:17 -0700 (Sat, 14 Mar 2009)
Log Message:
-----------
audio/libsndfile - --enable-external-libs by default; disable them with a variant.

Modified Paths:
--------------
    trunk/dports/audio/libsndfile/Portfile

Modified: trunk/dports/audio/libsndfile/Portfile
===================================================================
--- trunk/dports/audio/libsndfile/Portfile	2009-03-14 09:01:27 UTC (rev 48100)
+++ trunk/dports/audio/libsndfile/Portfile	2009-03-14 09:40:17 UTC (rev 48101)
@@ -4,7 +4,7 @@
 
 name                libsndfile
 version             1.0.19
-revision            0
+revision            1
 categories          audio
 maintainers         perry
 platforms           darwin
@@ -15,25 +15,28 @@
 long_description    ${description}
 homepage            http://www.mega-nerd.com/libsndfile/
 
+depends_build       port:pkgconfig
+depends_lib         port:flac port:libogg port:libvorbis
+
 master_sites        ${homepage}
 
 checksums           rmd160 027d53e55b6d01c78aba31ed239fd2f0d2f752b5
 
-configure.args      --disable-alsa --disable-external-libs --disable-sqlite
+configure.args      --disable-alsa --disable-sqlite --enable-external-libs
 
 post-configure {
     system "ed - ${worksrcpath}/src/config.h < ${filespath}/src__config.h.ed"
 }
 
-if {[variant_isset external_libs] || [variant_isset sqlite]} {
-    depends_build-append port:pkgconfig
+if {[variant_isset no_external_libs] && ![variant_isset sqlite]} {
+    depends_build-delete port:pkgconfig
 }
 
-variant external_libs description {Enable support for FLAC, Ogg and Vorbis} {
-    depends_lib-append port:flac port:libogg port:libvorbis
+variant no_external_libs description {Disable support for FLAC, Ogg and Vorbis} {
+    depends_lib-delete port:flac port:libogg port:libvorbis
 
-    configure.args-append --enable-external-libs
-    configure.args-delete --disable-external-libs
+    configure.args-append --disable-external-libs
+    configure.args-delete --enable-external-libs
 }
 
 variant sqlite description {Enable support for SQLite} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090314/c5ba25af/attachment.html>


More information about the macports-changes mailing list