# New ports collection makefile for:	gdome2
# Date created:		7 July 2001
# Whom:			Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD: ports/textproc/gdome2/Makefile,v 1.4 2002/03/31 05:53:19 kris Exp $
#

PORTNAME=	gdome2
PORTVERSION=	0.6.8
CATEGORIES=	textproc
MASTER_SITES=	http://www.cs.unibo.it/~casarini/gdome2/tarball/

MAINTAINER=	knu@FreeBSD.org

LIB_DEPENDS=	xml2.5:${PORTSDIR}/textproc/libxml2

USE_GLIB=	yes

USE_LIBTOOL=	yes
CONFIGURE_ENV=	GLIB_CONFIG="${GLIB_CONFIG}" CPPFLAGS="-I${LOCALBASE}/include"
PLIST_SUB=	DOCSDIR="share/doc/${DISTNAME}"

INSTALLS_SHLIB=	yes

post-patch:
	${PERL} -i -pe 's,^(HTML_DIR *= *).*,$$1\$$(prefix)/share/doc,' ${WRKSRC}/gtk-doc/Makefile.in
	@${FIND} ${WRKSRC} -type f | xargs ${PERL} -i -pe 's,<parser.h>,<libxml/parser.h>,;s,<hash.h>,<libxml/hash.h>,;s,<xmlmemory.h>,<libxml/xmlmemory.h>,;s,<tree.h>,<libxml/tree.h>,;s,<xmlerror.h>,<libxml/xmlerror.h>,;s,<xmlIO.h>,<libxml/xmlIO.h>,;s,<parserInternals.h>,<libxml/parserInternals.h>,;s,<entities.h>,<libxml/entities.h>,'

.include <bsd.port.mk>
