[23981] trunk/dports/audio/herrie/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Sat Apr 14 02:02:15 PDT 2007


Revision: 23981
          http://trac.macosforge.org/projects/macports/changeset/23981
Author:   pipping at macports.org
Date:     2007-04-14 02:02:15 -0700 (Sat, 14 Apr 2007)

Log Message:
-----------
maintainer update:
 * add variants to make dependencies optional

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

Modified: trunk/dports/audio/herrie/Portfile
===================================================================
--- trunk/dports/audio/herrie/Portfile	2007-04-14 07:45:15 UTC (rev 23980)
+++ trunk/dports/audio/herrie/Portfile	2007-04-14 09:02:15 UTC (rev 23981)
@@ -28,14 +28,21 @@
 		sha1 7e49d091f049e2c118e4a0080b73dc303b4d4ac6
 use_bzip2	yes
 
-depends_lib	port:curl port:glib2 port:libao port:libid3tag port:libmad \
-		port:libsndfile port:libvorbis port:ncurses port:libmodplug \
-		port:libspiff
+depends_lib	port:glib2 port:libao port:ncurses
 depends_build	port:gettext bin:pkg-config:pkgconfig
 
 configure.pre_args
 configure.env-append PREFIX=${prefix}
+configure.args	no_http \
+		no_modplug \
+		no_mp3 \
+		no_scrobbler \
+		no_sndfile \
+		no_vorbis \
+		no_xspf
 
+default_variants +http +mp3 +scrobbler +vorbis +xspf
+
 variant debug {
     configure.env-append    CFLAGS=-g
     # the line below requires the latest version from the trunk (1.5)
@@ -45,3 +52,39 @@
         reinplace "s|install -s|install|g" Makefile
     }
 }
+
+variant http {
+	depends_lib-append	port:curl
+	configure.args-delete	no_http
+}
+
+variant modplug {
+	depends_lib-append	port:libmodplug
+	configure.args-delete	no_modplug
+}
+
+variant mp3 {
+	depends_lib-append	port:libid3tag \
+				port:libmad
+	configure.args-delete	no_mp3
+}
+
+variant scrobbler {
+	depends_lib-append	port:curl
+	configure.args-delete	no_scrobbler
+}
+
+variant sndfile {
+	depends_lib-append	port:libsndfile
+	configure.args-delete	no_sndfile
+}
+
+variant vorbis {
+	depends_lib-append	port:libvorbis
+	configure.args-delete	no_vorbis
+}
+
+variant xspf {
+	depends_lib-append	port:libspiff
+	configure.args-delete	no_xspf
+}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070414/92eaeb1b/attachment.html


More information about the macports-changes mailing list