summaryrefslogtreecommitdiff
path: root/misc/tmux
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2015-06-23 15:05:02 +0000
committerjperkin <jperkin@pkgsrc.org>2015-06-23 15:05:02 +0000
commit0732542d7dcf4e28c76c9fe633beb8fbd8d9234b (patch)
treebb935791bdef87c620ccaf128813ed442436d4eb /misc/tmux
parent3fc8e1630f4608fd4c30469dc415b68d769358c3 (diff)
downloadpkgsrc-0732542d7dcf4e28c76c9fe633beb8fbd8d9234b.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"