Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 2010 08:30:51 +0800
From:      wen heping <wenheping@gmail.com>
To:        Erwan David <erwan@rail.eu.org>
Cc:        ports@freebsd.org, me@barakmich.com
Subject:   Re: ports/144760: sysutils/tmux: shell not working in tmux any more
Message-ID:  <7be7a2801003161730v6fc3b525q61563921ab1e86a8@mail.gmail.com>
In-Reply-To: <20100316221624.GC3099@rail.eu.org>
References:  <7be7a2801003151736m633f6503n81fab99617a6a9b4@mail.gmail.com> <20100316221624.GC3099@rail.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7be7a2801003161730v6fc3b525q61563921ab1e86a8>