# New ports collection makefile for:	gfax
# Date created:			20 January 2002
# Whom:				John Merryweather Cooper <jmcoopr@webmail.bmi.net>
#
# $Id: Makefile,v 1.8 2005/06/15 02:10:28 tmclau02 Exp $
# $FreeBSD: ports/comms/gfax/Makefile,v 1.18 2005/07/10 21:46:05 mezz Exp $
#

PORTNAME=	gfax
PORTVERSION=	0.7.3
PORTREVISION=	2
CATEGORIES=	comms print gnome
MASTER_SITES=	http://gfax.cowlug.org/
DISTNAME=	${PORTNAME}-${PORTVERSION}-1

MAINTAINER=	bsd-sharp-list@forge.novell.com
COMMENT=	A Mono based pop-up fax manager

BUILD_DEPENDS=	${X11BASE}/lib/mono/gtk-sharp/gtk-sharp.dll:${PORTSDIR}/x11-toolkits/gtk-sharp \
		bash:${PORTSDIR}/shells/bash2
RUN_DEPENDS=	${X11BASE}/lib/mono/gtk-sharp/gtk-sharp.dll:${PORTSDIR}/x11-toolkits/gtk-sharp \
		${LOCALBASE}/bin/sendfax:${PORTSDIR}/comms/hylafax \
		bash:${PORTSDIR}/shells/bash2

WRKSRC=		${WRKDIR}/${PORTNAME}

USE_X_PREFIX=	yes
USE_GMAKE=	yes
USE_LIBTOOL_VER=15
USE_REINPLACE=	yes
USE_GNOME=	gnomeprefix gnomehier libgnomeprint
STRIP=

GCONF_SCHEMAS=gfax.schemas

post-patch:
	@${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|' \
		${WRKSRC}/gfax.in \
		${WRKSRC}/gfaxlpr.in \
		${WRKSRC}/scripts/printer-setup.sh
	@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' \
		${WRKSRC}/scripts/printer-setup.sh

.include <bsd.port.mk>
