# New ports collection makefile for:	ngpt
# Date created:				Wed Jul 25 22:10:00 PDT 2001
# Whom:					Arun Sharma <arun@sharmas.dhs.org>
#
# $FreeBSD: ports/devel/ngpt/Makefile,v 1.15 2009/11/20 22:52:58 pav Exp $
#

PORTNAME=	ngpt
PORTVERSION=	1.0.1
PORTREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	http://www.sharma-home.net/people/arun/projects/freebsd/
MASTER_SITE_SUBDIR=	ngpt-${PORTVERSION}.tar.gz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	NGPT is a next generation pthread implementation based on GNU pth

USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-tests=no --enable-maintainer=no \
		--enable-pthread  --disable-kernel-patch \
		--exec-prefix=${PREFIX} --includedir=${PREFIX}/include
USE_GMAKE=	yes
MAKE_JOBS_UNSAFE=	yes

ONLY_FOR_ARCHS=	amd64 i386

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 800000
BROKEN=		does not compile
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/ltconfig

.include <bsd.port.post.mk>
