freebsd-ports/devel/cgdb/Makefile
Cheng-Lung Sung 3c89502d00 - Unbroken FreeBSD 5.x and 4.x.
- Use BUILD_DEPENDS and RUN_DEPENDS to replace LIB_DEPENDS.
  This will
  1) force install port-base libreadline if OSVERSION < 700016 and
  2) avoid configure broken with misc/compat5x installed.

PR:		ports/98904
Submitted by:	maintainer (Gea-Suan Lin)
2006-06-14 01:25:23 +00:00

33 lines
711 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.3
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= gslin@gslin.org
COMMENT= A curses-based interface to the GNU Debugger
INFO= cgdb
MAN1= cgdb.1
GNU_CONFIGURE= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 700016
BUILD_DEPENDS+= ${LOCALBASE}/lib/readline.so.5:${PORTSDIR}/devel/readline
RUN_DEPENDS= ${BUILD_DEPENDS}
LDFLAGS+= -rpath ${LOCALBASE}/lib
CONFIGURE_ARGS+= --with-readline=${LOCALBASE}
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
.endif
.include <bsd.port.post.mk>