# Created by: Yuri Pankov <yuri@darklight.org.ru>
# $FreeBSD: net-im/pidgin-rhythmbox/Makefile 327756 2013-09-20 22:13:34Z bapt $

PORTNAME=	pidgin-rhythmbox
PORTVERSION=	2.0
PORTREVISION=	6
CATEGORIES=	net-im audio
MASTER_SITES=	http://jon.oberheide.org/pidgin-rhythmbox/downloads/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Plugin to update your status with info from Rhythmbox

BUILD_DEPENDS=	pidgin:${PORTSDIR}/net-im/pidgin
LIB_DEPENDS=	dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
RUN_DEPENDS=	pidgin:${PORTSDIR}/net-im/pidgin \
		rhythmbox:${PORTSDIR}/audio/rhythmbox

USES=		gmake pkgconfig
USE_GNOME=	gtk20
GNU_CONFIGURE=	yes

PLIST_FILES=	lib/pidgin/pidgin-rhythmbox.la \
		lib/pidgin/pidgin-rhythmbox.so

NO_STAGE=	yes
post-patch:
		@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} \
			-e 's#\([@(]\)PIDGIN_INSTALL\([@)]\)#\1libdir\2/pidgin#' \
			-e 's#-g -g3 -O2##'

.include <bsd.port.mk>
