ports/144760: sysutils/tmux: shell not working in tmux any more

wen heping wenheping at gmail.com
Wed Mar 17 00:30:52 UTC 2010


Based on David's message, I modify the Makefile, the diff is as below,
Would you have a test of it ?

And I found in tmux website that tmux require ncurse while the ports did not
depends, is it possible that lacking of ncurse depends caused the run error ?

Regards,
wen





--- Makefile.orig       2010-03-17 08:14:19.000000000 +0800
+++ Makefile    2010-03-17 08:24:37.000000000 +0800
@@ -7,6 +7,7 @@

 PORTNAME=      tmux
 PORTVERSION=   1.2
+PORTREVISION=  1
 CATEGORIES=    sysutils
 MASTER_SITES=  SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

@@ -24,9 +25,14 @@
 PORTDOCS=      CHANGES FAQ NOTES
 PORTEXAMPLES=  *

+.include <bsd.port.pre.mk>
 post-patch:
-       @${REINPLACE_CMD} -e '/^#define HAVE_TREE_H/d' \
+.if ${OSVERSION} <= 800000
+       @${REINPLACE_CMD} -e '/^#undef HAVE_BROKEN_KQUEUE/d' \
                ${WRKSRC}/configure
+.endif
+
+       @${REINPLACE_CMD} -e '/^#define HAVE_TREE_H/d' ${WRKSRC}/configure

 do-install:
        @${INSTALL_PROGRAM} ${WRKSRC}/tmux ${PREFIX}/bin
@@ -45,4 +51,4 @@
        @${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
 .endif

-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the freebsd-ports mailing list