# New ports collection makefile for:	fluxbg
# Date created:				30 September 2003
# Whom:					Adam Weinberger <adamw@FreeBSD.org>
#
# $FreeBSD: ports/x11/fluxbg/Makefile,v 1.9 2006/09/01 01:57:06 mezz Exp $
#

PORTNAME=	fluxbg
PORTVERSION=	0.7
PORTREVISION=	6
CATEGORIES=	x11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Background changer for fluxbox/blackbox

LIB_DEPENDS=	gtkmm-2.0:${PORTSDIR}/x11-toolkits/gtkmm20

USE_X_PREFIX=	yes
GNU_CONFIGURE=	yes
USE_GNOME=	gnomehack gnometarget

.include <bsd.port.pre.mk>

.if !exists(${X11BASE}/bin/bsetbg) &&  \
    !exists(${LOCALBASE}/bin/fbsetbg) && \
    !exists(${X11BASE}/bin/fbsetbg)
RUN_DEPENDS=	fbsetbg:${PORTSDIR}/x11-wm/fluxbox-devel
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g ; \
		s|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/src/fluxbg_conf.cc

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
