pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/tmux Make misc/tmux build on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e29dd3bdd434
branches:  trunk
changeset: 394094:e29dd3bdd434
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Thu Jun 04 21:49:18 2009 +0000

description:
Make misc/tmux build on SunOS.

diffstat:

 misc/tmux/distinfo         |   6 ++++--
 misc/tmux/patches/patch-aa |  36 +++++++++++++++++++++++++++---------
 misc/tmux/patches/patch-ab |  14 ++++++++++++++
 misc/tmux/patches/patch-ac |  14 ++++++++++++++
 4 files changed, 59 insertions(+), 11 deletions(-)

diffs (113 lines):

diff -r f82abfeb23c2 -r e29dd3bdd434 misc/tmux/distinfo
--- a/misc/tmux/distinfo        Thu Jun 04 21:38:52 2009 +0000
+++ b/misc/tmux/distinfo        Thu Jun 04 21:49:18 2009 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.4 2009/06/03 06:09:11 minskim Exp $
+$NetBSD: distinfo,v 1.5 2009/06/04 21:49:18 minskim Exp $
 
 SHA1 (tmux-0.8.tar.gz) = 87a9db829ff36cc432114672f7354a74d673832b
 RMD160 (tmux-0.8.tar.gz) = 81f828e0af59a994e0b4ba86ab17421ffd7d7e98
 Size (tmux-0.8.tar.gz) = 175515 bytes
-SHA1 (patch-aa) = 74bbf3eb3a70e54645d3d0eb31cbcdfa7e1f0781
+SHA1 (patch-aa) = c634803fb173803ee7470eb29ad13eb0cb287a17
+SHA1 (patch-ab) = 713c4beb17bf2a250fdd26e458d8621c1bfb2c79
+SHA1 (patch-ac) = d99a96c138d4aea84f8d78ff947d6e5411fc0ecf
diff -r f82abfeb23c2 -r e29dd3bdd434 misc/tmux/patches/patch-aa
--- a/misc/tmux/patches/patch-aa        Thu Jun 04 21:38:52 2009 +0000
+++ b/misc/tmux/patches/patch-aa        Thu Jun 04 21:49:18 2009 +0000
@@ -1,21 +1,28 @@
-$NetBSD: patch-aa,v 1.4 2009/06/03 06:09:11 minskim Exp $
+$NetBSD: patch-aa,v 1.5 2009/06/04 21:49:18 minskim Exp $
 
---- Makefile.orig      2009-04-27 17:38:18.000000000 +0200
+--- Makefile.orig      2009-04-21 13:10:22.000000000 -0700
 +++ Makefile
-@@ -81,6 +81,12 @@ LDFLAGS+= -pg
+@@ -79,7 +79,18 @@ LDFLAGS+= -L/usr/local/lib
+ .ifdef PROFILE
+ LDFLAGS+= -pg
  .endif
- LIBS+= -lutil -lncurses
- 
+-LIBS+= -lutil -lncurses
++.if ${OS} == "SunOS"
++LIBS+= -lsocket -lnsl
++.else
++LIBS+= -lutil
++.endif
++LIBS+= -lncurses
++
 +# Darwin
 +.if ${OS} == "Darwin"
 +SRCS+= compat/strtonum.c compat/vis.c
 +CFLAGS+= -DNO_SETPROCTITLE -DNO_STRTONUM -DNO_QUEUE_H -DNO_TREE_H
 +.endif
-+
+ 
  # FreeBSD and DragonFly
  .if ${OS} == "FreeBSD" || ${OS} == "DragonFly"
- INCDIRS+= -Icompat
-@@ -91,10 +97,10 @@ LIBS+= -lcrypt
+@@ -91,10 +102,21 @@ LIBS+= -lcrypt
  
  # NetBSD
  .if ${OS} == "NetBSD"
@@ -25,10 +32,21 @@
  LIBS+= -lcrypt
 -CFLAGS+=-DNO_STRTONUM
 +CFLAGS+=-DNO_STRTONUM -DNO_QUEUE_H -DNO_TREE_H
++.endif
++
++# SunOS
++.if ${OS} == "SunOS"
++INCDIRS+= -Icompat
++SRCS+= compat/asprintf.c compat/daemon.c compat/fgetln.c \
++      compat/forkpty-sunos.c compat/getopt_long.c compat/strtonum.c \
++      compat/vis.c
++CFLAGS+= -DNO_ASPRINTF -DNO_CDEFS_H -DNO_DAEMON -DNO_FGETLN -DNO_FORKPTY \
++      -DNO_PATHS_H -DNO_PROGNAME -DNO_QUEUE_H -DNO_SETPROCTITLE \
++      -DNO_STRTONUM -DNO_TREE_H
  .endif
  
  OBJS= ${SRCS:S/.c/.o/:S/.y/.o/}
-@@ -152,7 +158,7 @@ update-index.html:
+@@ -152,7 +174,7 @@ update-index.html:
                sed "s/%%VERSION%%/${VERSION}/g" index.html.in >index.html
  
  install:      all
diff -r f82abfeb23c2 -r e29dd3bdd434 misc/tmux/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/tmux/patches/patch-ab        Thu Jun 04 21:49:18 2009 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ab,v 1.3 2009/06/04 21:49:18 minskim Exp $
+
+--- compat/getopt.h.orig       2009-03-31 21:21:36.000000000 +0000
++++ compat/getopt.h
+@@ -33,7 +33,9 @@
+ #ifndef _GETOPT_H_
+ #define _GETOPT_H_
+ 
++#ifndef NO_CDEFS_H
+ #include <sys/cdefs.h>
++#endif
+ 
+ /*
+  * GNU-like getopt_long() and 4.4BSD getsubopt()/optreset extensions
diff -r f82abfeb23c2 -r e29dd3bdd434 misc/tmux/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/tmux/patches/patch-ac        Thu Jun 04 21:49:18 2009 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ac,v 1.3 2009/06/04 21:49:18 minskim Exp $
+
+--- compat/vis.h.orig  2009-03-31 21:21:28.000000000 +0000
++++ compat/vis.h
+@@ -71,7 +71,9 @@
+  */
+ #define       UNVIS_END       1       /* no more characters */
+ 
++#ifndef NO_CDEFS_H
+ #include <sys/cdefs.h>
++#endif
+ 
+ char  *vis(char *, int, int, int);
+ int   strvis(char *, const char *, int);



Home | Main Index | Thread Index | Old Index