GARNAME = banshee
GARVERSION = 0.11.6
CATEGORIES = mono
DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz

MASTER_SITES = http://banshee-project.org/files/banshee/

LIBDEPS = platform/gtk+ platform/gnome-vfs mono/gnome-sharp mono/ipod-sharp 

DESCRIPTION = banshee
MAINTAINER = Joseph Sacco <joseph_sacco@comcast.net>
define BLURB
Banshee is an audio management and playback application for the GNOME Desktop, 
allowing users to import audio from CDs, search their library, create playlists 
of selections of their library, sync music to/from iPods, and burn selections 
to a CD
endef

CONFIGURE_SCRIPTS = $(WORKSRC)/configure
BUILD_SCRIPTS = $(WORKSRC)/Makefile
INSTALL_SCRIPTS = $(WORKSRC)/Makefile

CONFIGURE_ARGS = $(DIRPATHS) --with-gstreamer-0-10 --disable-helix
BUILD_ARGS = -j1

include ../category.mk

pre-configure:
	@echo -n "Fixing hard-wired value of SYSTEM_BUS_ADDRESS..."
	@cd $(WORKSRC)/ext/dbus-sharp/dbus-sharp; \
	if [ ! -f Address.cs- ]; then mv Address.cs Address.cs-; fi; \
	$(SED) -e 's?/var/?$(localstatedir)/?' Address.cs- > Address.cs
	@echo "done"
	@echo ""
	@echo -n " ==> Does avahi need to be rebuilt with mono extensions? "
	@if test ! -e $(libdir)/pkgconfig/avahi-sharp.pc; then \
		echo "Yes." ; \
		$(MAKE) -C ../../../freedesktop/avahi cookieclean ; \
		$(MAKE) -C ../../../freedesktop/avahi install ; \
	else \
		echo "No." ; \
	fi
	$(MAKECOOKIE)
