# New ports collection makefile for:	deskutils/multi-backgrounds-daemon
# Date created:				16 Jul 2003
# Whom:					Juan Salaverria <rael@vectorstar.net>
#
# $FreeBSD: ports/deskutils/multi-backgrounds-daemon/Makefile,v 1.1 2003/10/10 06:41:58 edwin Exp $

PORTNAME=	multi-backgrounds-daemon
PORTVERSION=	0.1.1
CATEGORIES=	deskutils gnome
MASTER_SITES=	http://jk24.free.fr/multi-backgrounds-daemon/

MAINTAINER=	rael@vectorstar.net
COMMENT=	Change your GNOME2 backgound when you switch to other workspace

USE_X_PREFIX=	yes
USE_REINPLACE=	yes
USE_GMAKE=	yes
USE_LIBTOOL=	yes
USE_GNOME=	gnomehack gnomeprefix libgnomeui libwnck
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"

DOCS=		AUTHORS COPYING ChangeLog INSTALL NEWS README

post-patch:
	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ;' ${WRKSRC}/configure

post-install:
.if !defined(NOPORTDOCS)
	${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
	@${CAT} pkg-message

.include <bsd.port.mk>
