From 41fe9bdc7ac1e0885666ccb8d35117861b84203a Mon Sep 17 00:00:00 2001 From: vanilla Date: Sun, 25 Dec 2005 17:12:52 +0000 Subject: Fix build on 4-stable. PR: ports/90900 Submitted by: maintainer --- devel/cgdb/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'devel') diff --git a/devel/cgdb/Makefile b/devel/cgdb/Makefile index 749af796b0c..650d99b5634 100644 --- a/devel/cgdb/Makefile +++ b/devel/cgdb/Makefile @@ -19,7 +19,17 @@ USE_REINPLACE= yes PLIST_FILES= bin/cgdb +.include + +.if ${OSVERSION} < 500018 +# This port requires readline 4.2 or newer, which is only available +# in the base system in FreeBSD 5.x or later. +BUILD_DEPENDS+= ${LOCALBASE}/lib/libreadline.so.5:${PORTSDIR}/devel/readline +RUN_DEPENDS+= ${LOCALBASE}/lib/libreadline.so.5:${PORTSDIR}/devel/readline +CONFIGURE_ARGS+= --with-readline=${LOCALBASE} +.endif + post-patch: ${REINPLACE_CMD} -e 's,libutil\.h,,g' ${WRKSRC}/configure -.include +.include -- cgit