# ex:ts=8
# New ports collection makefile for:	gxmlviewer
# Date created:			Nov 8, 2001
# Whom:				ijliao
#
# $FreeBSD: ports/textproc/gxmlviewer/Makefile,v 1.26 2009/01/10 02:45:40 mezz Exp $
#

PORTNAME=	gxmlviewer
PORTVERSION=	1.3.3
PORTREVISION=	8
CATEGORIES=	textproc
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	An xmlviewer with a netscape plugin, and now a bonobo control as well

USE_GNOME=	bonobo gnomehack gnomelibs gnomeprefix libxml2
USE_GETTEXT=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-libiconv-prefix="${LOCALBASE}"

USE_WEBPLUGINS=	native
WEBPLUGINS_DIR=	${PREFIX}/lib/gxmlviewer/plugins
WEBPLUGINS_FILES=npgxmlviewer.so

.include <bsd.port.pre.mk>
.include "${PORTSDIR}/www/firefox/Makefile.webplugins"

post-patch:
	@${REINPLACE_CMD} -e 's|intl||g' ${WRKSRC}/Makefile.in
	@${REINPLACE_CMD} -e 's|= -DXP_UNIX|= -fPIC -DXP_UNIX|g ; \
		s|/netscape/|/gxmlviewer/|g ; \
		s|@LIBS@|@LIBS@ -lXt -lXext|g' \
			${WRKSRC}/src/nsplugin/Makefile.in

.include <bsd.port.post.mk>
