summaryrefslogtreecommitdiff
path: root/misc/tmux
diff options
context:
space:
mode:
authorjperkin <jperkin>2015-06-23 15:05:02 +0000
committerjperkin <jperkin>2015-06-23 15:05:02 +0000
commit620ddbf032b16d17f6cbd272501e67af27fc68d5 (patch)
treebb935791bdef87c620ccaf128813ed442436d4eb /misc/tmux
parent90c1d064e55e5a57fca0fa6a4f3b0d68aef49626 (diff)
downloadpkgsrc-620ddbf032b16d17f6cbd272501e67af27fc68d5.tar.gz
Apply build change from MacPorts to fix open(1) behaviour from within a
tmux session on Darwin. Noticed by Cesar Crusius in joyent/pkgsrc#246. Bump PKGREVISION.
Diffstat (limited to 'misc/tmux')
-rw-r--r--misc/tmux/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/misc/tmux/Makefile b/misc/tmux/Makefile
index e77812bc9ec..8160f438448 100644
--- a/misc/tmux/Makefile
+++ b/misc/tmux/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.28 2015/05/16 20:27:49 ryoon Exp $
+# $NetBSD: Makefile,v 1.29 2015/06/23 15:05:02 jperkin Exp $
DISTNAME= tmux-2.0
+PKGREVISION= 1
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tmux/}
@@ -19,6 +20,11 @@ USE_TERMINFO= yes
BUILDLINK_TRANSFORM+= opt:-D_XPG4_2:-D_XPG6
.endif
+# https://trac.macports.org/changeset/127986
+.if !empty(MACHINE_PLATFORM:MDarwin-1[0-9]*)
+CPPFLAGS+= -D__DARWIN_VERS_1050=0
+.endif
+
.include "../../devel/libevent/buildlink3.mk"
BUILDLINK_API_DEPENDS.libevent+= libevent>=2.0.10
.include "../../mk/terminfo.buildlink3.mk"