aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2004-09-03 22:30:20 +0800
committervs <vs@FreeBSD.org>2004-09-03 22:30:20 +0800
commit8d7d05d0d61149eadf305346c5cb53a75d9f7ea6 (patch)
treec22002a1e4e5f60703c249fb79de8dc43e376dbb
parent9af11ba6a77797a7d2852d18df34d338d57531df (diff)
downloadfreebsd-ports-gnome-8d7d05d0d61149eadf305346c5cb53a75d9f7ea6.tar.gz
freebsd-ports-gnome-8d7d05d0d61149eadf305346c5cb53a75d9f7ea6.tar.zst
freebsd-ports-gnome-8d7d05d0d61149eadf305346c5cb53a75d9f7ea6.zip
- Link properly with termcap/ncurses
- Add WITHOUT_TERMCAP-knob Submitted by: maintainer
-rw-r--r--devel/readline/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/devel/readline/Makefile b/devel/readline/Makefile
index 44a8b4277b07..30f045f885db 100644
--- a/devel/readline/Makefile
+++ b/devel/readline/Makefile
@@ -20,8 +20,14 @@ COMMENT= A library for editing command lines as they are typed
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
+USE_REINPLACE= yes
INFO= readline rluserman history
MAN3= readline.3 history.3
+pre-configure:
+.if !defined(WITHOUT_TERMCAP)
+ ${REINPLACE_CMD} "s/SHOBJ_LDFLAGS =/SHOBJ_LDFLAGS = -ltermcap/" ${WRKSRC}/shlib/Makefile.in
+.endif
+
.include <bsd.port.mk>