# New ports collection makefile for:	dico
# Date created:				11 October 2000
# Whom:					Cyrille Lefevre <clefevre@citeweb.net>
#
# $FreeBSD: ports/textproc/dico/Makefile,v 1.9 2003/02/21 13:42:33 knu Exp $
#

PORTNAME=	dico
PORTVERSION= 	1.1
PORTREVISION=	1
CATEGORIES=	textproc
MASTER_SITES=	http://homepages.starnet.fr/dtrystram/
#	http://www.montefiore.ulg.ac.be/~geuzaine/BRONNE/WWW/ftp/ le_dico.tgz
#	ftp://ftp.supelec.fr/lsi/pub/security/			  le_dico.tar.gz
#	http://homepages.starnet.fr/dtrystram/			   ledico.zip
#	http://hpux.cict.fr/ftp/hpux/Text/     dico-1.1/dico-1.1-ss-11.00.tar.gz
DISTNAME=	ledico

MAINTAINER=	cyrille.lefevre@laposte.net
COMMENT=	Interactive dictionary in french

# Global variables
#

USE_REINPLACE=	true
USE_ZIP=	true
WRKSRC=		${WRKDIR}/${PORTNAME}
USE_AUTOMAKE=	true
USE_GMAKE=	true
AUTOMAKE_ARGS=	--add-missing --foreign --include-deps
MAKE_ARGS=	prefix=${PREFIX}
MAN1=		dico.1

# Post-patch
#

post-patch:
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/sources/dico.c

# Pre-configure
#

pre-configure:
	@cd ${WRKSRC} && ${ACLOCAL}

.include <bsd.port.mk>
