diff options
author | vanilla <vanilla@FreeBSD.org> | 2005-12-26 01:12:52 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2005-12-26 01:12:52 +0800 |
commit | 41fe9bdc7ac1e0885666ccb8d35117861b84203a (patch) | |
tree | 82cb35292a46ed1d6d715dbb0b2decafb4e78e57 /devel | |
parent | bb93c6d00f38400af280536c6ffd7ef7405d5f0c (diff) | |
download | freebsd-ports-graphics-41fe9bdc7ac1e0885666ccb8d35117861b84203a.tar.gz freebsd-ports-graphics-41fe9bdc7ac1e0885666ccb8d35117861b84203a.tar.zst freebsd-ports-graphics-41fe9bdc7ac1e0885666ccb8d35117861b84203a.zip |
Fix build on 4-stable.
PR: ports/90900
Submitted by: maintainer
Diffstat (limited to 'devel')
-rw-r--r-- | devel/cgdb/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
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 <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> |