aboutsummaryrefslogtreecommitdiff
path: root/devel/cgdb
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2005-12-25 17:12:52 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2005-12-25 17:12:52 +0000
commitf1df687c1c7455bfd4f5fe142319d564be0d1fff (patch)
treea3a98f16cb376b62c89b485e13adc1fc961f27a3 /devel/cgdb
parentd8514df4e580278598af05c39301e0aef9ac5d61 (diff)
downloadports-f1df687c1c7455bfd4f5fe142319d564be0d1fff.tar.gz
ports-f1df687c1c7455bfd4f5fe142319d564be0d1fff.zip
Notes
Diffstat (limited to 'devel/cgdb')
-rw-r--r--devel/cgdb/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/devel/cgdb/Makefile b/devel/cgdb/Makefile
index 749af796b0cd..650d99b56347 100644
--- a/devel/cgdb/Makefile
+++ b/devel/cgdb/Makefile
@@ -19,7 +19,17 @@ USE_REINPLACE= yes
PLIST_FILES= bin/cgdb
+.include <bsd.port.pre.mk>
+
+.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 <bsd.port.mk>
+.include <bsd.port.post.mk>