# New ports collection makefile for:	gmpc
# Date created:		May 12 2004
# Whom:			Mark Reidel <ports@mark.reidel.info>
#
# $FreeBSD: ports/audio/gmpc/Makefile,v 1.18 2008/06/06 13:06:37 edwin Exp $
#

PORTNAME=	gmpc
PORTVERSION=	0.15.5.0
PORTREVISION=	2
PORTEPOCH=	1
CATEGORIES=	audio
MASTER_SITES=	http://download.sarine.nl/gmpc-${PORTVERSION:C/\.0$//}/ \
		http://download.gna.org/kanicule/freebsd/distfiles/

MAINTAINER=	mathias@monnerville.com
COMMENT=	Full featured GTK2 client for musicpd

LIB_DEPENDS=	mpd:${PORTSDIR}/audio/libmpd \
		curl.4:${PORTSDIR}/ftp/curl

GNU_CONFIGURE=	yes
USE_XORG=	x11 sm
USE_GMAKE=	yes
USE_GNOME=	libglade2 gnomevfs2 gnomehack
USE_GETTEXT=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"

OPTIONS=	SESSION "Enable session support" on \
		MMKEYS "Enable multimedia keys support" on \
		TRAY "Enable tray icon support" on

.include <bsd.port.pre.mk>

pre-configure:
.if defined(WITHOUT_SESSION)
CONFIGURE_ARGS+=	--disable-sm
.endif

.if defined(WITHOUT_MMKEYS)
CONFIGURE_ARGS+=	--disable-mmkeys
.endif

.if defined(WITHOUT_TRAY)
CONFIGURE_ARGS+=	--disable-trayicon
.endif

.include <bsd.port.post.mk>
