# New ports collection makefile for:	osb-nrcore
# Date created:		2004-11-29
# Whom:			Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD: ports/www/osb-nrcore/Makefile,v 1.24 2010/12/04 07:33:59 ade Exp $
#

PORTNAME=	osb-nrcore
PORTVERSION=	0.5.2
PORTREVISION=	6
CATEGORIES=	www
MASTER_SITES=	SF/gtk-webcore/gtk-webcore/${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Gtk+ WebCore html rendering engine

BUILD_DEPENDS=	osb-jscore>=0.5.2:${PORTSDIR}/lang/osb-jscore
RUN_DEPENDS=	osb-jscore>=0.5.2:${PORTSDIR}/lang/osb-jscore

USE_XORG=	x11 xt
USE_GNOME=	gnomehack gnometarget gtk20
USE_AUTOTOOLS=	libtool
CONFIGURE_ENV=	CPPFLAGS="${PTHREAD_CFLAGS}" \
		LDFLAGS="${PTHREAD_LIBS}"
USE_LDCONFIG=	yes

.include <bsd.port.pre.mk>

.if ${ARCH} == "alpha"
BROKEN=		Does not compile on alpha
.endif

post-patch:
	@${REINPLACE_CMD} -e '/test/s|==|=|g ; \
		 s|-nostdinc++||g ; \
		 s|-nodefaultlibs -lgcc -lc||g; \
		 s|-D.*_DISABLE_DEPRECATED||g' ${WRKSRC}/configure

.include <bsd.port.post.mk>
