# $Id: Portfile 78762 2011-05-21 15:29:21Z jmr@macports.org $

PortSystem 1.0

name		herrie
version		2.2
categories	audio
maintainers	80386.nl:ed
description	Small command line interface music player
long_description \
	Herrie is a minimalistic music player that uses the command \
	line. It is written to support a variety of operating systems, \
	audio subsystems and file formats, including playlists. \
	\
	Herrie has a split-screen user interface, with a playlist at \
	the top of the screen and a file browser at the bottom. When \
	tracks are added to the playlist, Herrie automatically \
	consumes them one by one. It is thus an application that \
	allows you to batch music for playback. \
	\
	Herrie also has some more exotic features, including support \
	for AudioScrobbler and the ability to chroot() itself into a \
	directory.
homepage	http://herrie.info/
platforms	darwin
master_sites	http://herrie.info/distfiles/ \
		http://www.stack.nl/~ed/projects/${name}/distfiles/
checksums	md5 88832b10298ab89473730eb0c93b6ddf \
		rmd160 e0f70ca4d867cf6cdbb452bd0f0860ef1f5a9f39 \
		sha1 ae5c39be11aeb19898cd3f968580eafc623830b7
use_bzip2	yes

depends_lib	path:lib/pkgconfig/glib-2.0.pc:glib2 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 \
		verbose

default_variants +http +mp3 +scrobbler +vorbis +xspf

variant debug description "Enable debugging symbols" {
	configure.cflags-append	-g
	configure.args-append	no_strip
}

variant http description "Enable HTTP streaming support" {
	depends_lib-append	port:curl
	configure.args-delete	no_http
}

variant modplug description "Enable Modplug support" {
	depends_lib-append	port:libmodplug
	configure.args-delete	no_modplug
}

variant mp3 description "Enable MP3 support" {
	depends_lib-append	port:libid3tag \
				port:libmad
	configure.args-delete	no_mp3
}

variant scrobbler description "Enable AudioScrobbler support" {
	depends_lib-append	port:curl
	configure.args-delete	no_scrobbler
}

variant sndfile description "Enable libsndfile support" {
	depends_lib-append	port:libsndfile
	configure.args-delete	no_sndfile
}

variant vorbis description "Enable Ogg Vorbis support" {
	depends_lib-append	port:libvorbis
	configure.args-delete	no_vorbis
}

variant xspf description "Enable XML Shareable Playlist Format support" {
	depends_lib-append	port:libspiff
	configure.args-delete	no_xspf
}
