1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/devel/cgdb/Makefile
Pietro Cerutti 4d2b983a20 - Link against base libutil for openpty(3)
PR:		169785
Submitted by:	gahr
Approved by:	maintainer (timeout > 1.5 month)
2012-08-29 10:04:07 +00:00

41 lines
989 B
Makefile

# New ports collection makefile for: cgdb
# Date created: 2005-12-18
# Whom: Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD$
#
PORTNAME= cgdb
PORTVERSION= 0.6.6
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= clsung@FreeBSD.org
COMMENT= A curses-based interface to the GNU Debugger
INFO= cgdb
MAN1= cgdb.1
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
.include <bsd.port.pre.mk>
# at this time we can not use LIB_DEPENDS, please read ports/99327
.if ${OSVERSION} < 700016
BUILD_DEPENDS+= ${LOCALBASE}/lib/libreadline.so.6:${PORTSDIR}/devel/readline
RUN_DEPENDS:= ${BUILD_DEPENDS}
LDFLAGS+= -rpath ${LOCALBASE}/lib
CONFIGURE_ARGS+= --with-readline=${LOCALBASE}
.endif
post-patch:
@${REINPLACE_CMD} -e 's|dev_ptmx=yes|dev_ptmx=no|' ${WRKSRC}/configure
.include <bsd.port.post.mk>