# Created by: Matthieu Guegan <matt.guegan@free.fr>
# $FreeBSD: tags/RELEASE_10_3_0/audio/gimmix/Makefile 394778 2015-08-19 13:29:59Z mat $

PORTNAME=	gimmix
PORTVERSION=	0.5.7.2
CATEGORIES=	audio
MASTER_SITES=	BERLIOS

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Gimmix is a graphical MPD client written in C using GTK+2

LIB_DEPENDS=	libmpd.so:${PORTSDIR}/audio/libmpd \
		libtag.so:${PORTSDIR}/audio/taglib \
		libnxml.so:${PORTSDIR}/textproc/libnxml

LICENSE=	GPLv2

OPTIONS_DEFINE=	NLS
OPTIONS_SUB=	yes

USE_GNOME=	gtk20 intltool libglade2

GNU_CONFIGURE=	yes
USES=		tar:bzip2 desktop-file-utils gmake pkgconfig

CONFIGURE_ENV=	DATADIRNAME=share

NLS_CPPFLAGS=	-I${LOCALBASE}/include
NLS_LDFLAGS=	-L${LOCALBASE}/lib -lintl
NLS_CONFIGURE_ENABLE=	nls
NLS_USES=		gettext

post-patch:
	@${LN} -sf ${LOCALBASE}/share/intltool/Makefile.in.in ${WRKSRC}/po/Makefile.in.in
	@${REINPLACE_CMD} -e '/<curl\/types.h>/d' ${WRKSRC}/src/gimmix-covers.c ${WRKSRC}/src/gimmix-lyrics.c

.include <bsd.port.mk>
