# New ports collection makefile for:	jags
# Date created:				Thu Jul  5 17:13:11 EDT 2001
# Whom:					Patrick Li <pat@databits.net>
#
# $FreeBSD$
#

PORTNAME=	jags
PORTVERSION=	0.20
CATEGORIES=	net
MASTER_SITES=	http://sumpan.campus.luth.se/software/jags/download/

MAINTAINER=	pat@databits.net

USE_GMAKE=	yes
USE_XPM=	yes
USE_GTK=	yes
USE_GLIB=	yes
GNU_CONFIGURE=	yes

.include <bsd.port.mk>

patch:
	@${PERL} -pi.fbsd -e 's@/usr/local/share/jags/@${PREFIX}/share/jags/@g' \
		${WRKSRC}/src/jagsconfig.cpp
	@${PERL} -pi.fbsd -e 's@/usr/local/share/jags/pixmaps/@${PREFIX}/share/jags/pixmaps/@g' \
		${WRKSRC}/src/gtk_common.cpp