summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/p5-ReadLine-Gnu/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/devel/p5-ReadLine-Gnu/Makefile b/devel/p5-ReadLine-Gnu/Makefile
index 3fa52da55a5e..c4f48e08981b 100644
--- a/devel/p5-ReadLine-Gnu/Makefile
+++ b/devel/p5-ReadLine-Gnu/Makefile
@@ -18,6 +18,13 @@ COMMENT= Perl 5 module that allows Term::ReadLine to use GNU readline
PERL_CONFIGURE= yes
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/lib/libreadline.so)
+CONFIGURE_ARGS+=--includedir=${LOCALBASE}/include
+LIB_DEPENDS+= readline.5:${PORTSDIR}/deve/readline
+.endif
+
MAN3= Term::ReadLine::Gnu.3
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>