PortSystem 1.0
PortGroup       github 1.0

github.setup    EdSchouten herrie 2.2 herrie-
revision        3
checksums       rmd160  e0f70ca4d867cf6cdbb452bd0f0860ef1f5a9f39 \
                sha256  142341072920f86b6eb570b8f13bf5fd87c06cf801543dc7d1a819e39eb9fb2b \
                size    71596

categories	audio
maintainers	nomaintainer
license         BSD

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.

github.tarball_from releases
use_bzip2	yes

depends_build   port:gettext \
                path:bin/pkg-config:pkgconfig

depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2 \
                port:gettext-runtime \
                port:ncurses

patchfiles      libsndfile.patch \
                libxspf.patch

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:libxspf
	configure.args-delete	no_xspf
}
