# Created by: Mark Reidel <ports@mark.reidel.info>

PORTNAME=	gmpc
PORTVERSION=	11.8.16
PORTREVISION=	5
PORTEPOCH=	1
CATEGORIES=	audio
MASTER_SITES=	http://download.sarine.nl/Programs/gmpc/${PORTVERSION}/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Full featured GTK2 client for musicpd

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	gob2:devel/gob2 \
		valac:lang/vala
LIB_DEPENDS=	libmpd.so:audio/libmpd \
		libsexy.so:x11-toolkits/libsexy \
		libsoup-2.4.so:devel/libsoup \
		libunique-1.0.so:x11-toolkits/unique \
		libfontconfig.so:x11-fonts/fontconfig \
		libfreetype.so:print/freetype2

GNU_CONFIGURE=	yes
USES=		gettext gmake gnome libtool localbase pathfix pkgconfig sqlite \
		xorg
USE_XORG=	ice sm x11
USE_GNOME=	cairo glib20 gtk20 intltool libglade2
INSTALLS_ICONS=	yes
CONFIGURE_ARGS=	--enable-system-libsexy
LIBS+=		-lm

OPTIONS_DEFINE=	MMKEYS XSPF
OPTIONS_DEFAULT=	MMKEYS

MMKEYS_CONFIGURE_ON=--disable-mmkeys

XSPF_LIB_DEPENDS=	libxspf.so:multimedia/libxspf
XSPF_CONFIGURE_ENABLE=	libxspf

.include <bsd.port.mk>
