summaryrefslogtreecommitdiff
path: root/misc/tmux
diff options
context:
space:
mode:
authorfhajny <fhajny>2012-06-11 12:52:52 +0000
committerfhajny <fhajny>2012-06-11 12:52:52 +0000
commitd10bc76849ac91d3d4608880fa2d130abc78d3aa (patch)
tree2c32202202bdeb58db8a01bb4c5d9b9853f850b0 /misc/tmux
parent10d96964eaa28db507d40ffc0b0e821b0dd8336a (diff)
downloadpkgsrc-d10bc76849ac91d3d4608880fa2d130abc78d3aa.tar.gz
Fix build on SunOS and GCC>=4.6
Diffstat (limited to 'misc/tmux')
-rw-r--r--misc/tmux/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/misc/tmux/Makefile b/misc/tmux/Makefile
index 58475e3f9d5..ea48b930ac2 100644
--- a/misc/tmux/Makefile
+++ b/misc/tmux/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2012/01/28 23:04:53 christos Exp $
+# $NetBSD: Makefile,v 1.18 2012/06/11 13:00:14 fhajny Exp $
DISTNAME= tmux-1.6
CATEGORIES= misc
@@ -14,6 +14,13 @@ PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
USE_TERMINFO= yes
+.include "../../mk/bsd.prefs.mk"
+.include "../../mk/compiler.mk"
+.if !empty(MACHINE_PLATFORM:MSunOS-5.1[0-9]-*) && \
+ !empty(CC_VERSION:Mgcc-4.[6-9].*)
+BUILDLINK_TRANSFORM+= rename:-D_XPG4_2:-D_XPG6
+.endif
+
.include "../../devel/libevent/buildlink3.mk"
BUILDLINK_API_DEPENDS.libevent+= libevent>=1.1b
.include "../../mk/terminfo.buildlink3.mk"