# Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD: tags/RELEASE_10_1_0/devel/cgdb/Makefile 362452 2014-07-21 17:15:14Z adamw $

PORTNAME=	cgdb
PORTVERSION=	0.6.7
CATEGORIES=	devel
MASTER_SITES=	http://cgdb.me/files/

MAINTAINER=	clsung@FreeBSD.org
COMMENT=	Curses-based interface to the GNU Debugger

USES=		makeinfo readline

INFO=		cgdb

GNU_CONFIGURE=	yes
MAKE_JOBS_UNSAFE=	yes

# we need this for openpty(3) . It sucks,
# but since cgdb include a libutil itself,
# we have to specify the full path.
LDFLAGS+=	/usr/lib/libutil.so

post-patch:
	@${REINPLACE_CMD} -e 's|dev_ptmx=yes|dev_ptmx=no|' ${WRKSRC}/configure

.include <bsd.port.mk>
