Created
June 7, 2012 15:26
-
-
Save stash/2889424 to your computer and use it in GitHub Desktop.
Compiling tmux on SmartOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- tmux-1.6/Makefile 2012-06-07 15:23:20.835144809 +0000 | |
| +++ tmux-1.6-modified/Makefile 2012-06-07 15:22:47.803578987 +0000 | |
| @@ -211,7 +211,7 @@ | |
| CPP = gcc -E | |
| # Preprocessor flags. | |
| -CPPFLAGS = -I/opt/local/include -I/opt/local/include/ncurses -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED $(am__append_4) $(am__append_5) \ | |
| +CPPFLAGS = -I/opt/local/include -I/opt/local/include/ncurses $(am__append_4) $(am__append_5) \ | |
| $(am__append_7) $(am__append_8) | |
| CYGPATH_W = echo | |
| DEFS = -DPACKAGE_NAME=\"tmux\" -DPACKAGE_TARNAME=\"tmux\" -DPACKAGE_VERSION=\"1.6\" -DPACKAGE_STRING=\"tmux\ 1.6\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tmux\" -DVERSION=\"1.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_CURSES_H=1 -DHAVE_DIRENT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_NCURSES_H=1 -DHAVE_STDINT_H=1 -DHAVE_TERM_H=1 -DHAVE_B64_NTOP=1 -DHAVE_LIBXNET=1 -DHAVE_CLOSEFROM=1 -DHAVE_DAEMON=1 -DHAVE_SETENV=1 -DHAVE_STRLCPY=1 -DHAVE_STRLCAT=1 -DHAVE_ASPRINTF=1 -DHAVE_STRCASESTR=1 -DHAVE_STRSEP=1 -DHAVE_DECL_OPTARG=0 -DHAVE_DECL_OPTIND=0 -DHAVE_DECL_OPTRESET=0 -DHAVE_BZERO=1 -DHAVE_DIRFD=1 -DHAVE_SYSCONF=1 -DHAVE___PROGNAME=1 -DHAVE_PROC_PID=1 | |
| @@ -250,7 +250,7 @@ | |
| SHELL = /bin/sh | |
| STRIP = | |
| VERSION = 1.6 | |
| -XOPEN_DEFINES = -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED | |
| +XOPEN_DEFINES = | |
| abs_builddir = /home/admin/tmux-1.6 | |
| abs_srcdir = /home/admin/tmux-1.6 | |
| abs_top_builddir = /home/admin/tmux-1.6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| pkgin in libevent-2.0.10nb1 | |
| tar zxf tmux-1.6.tar.gz | |
| cd tmux-1.6 | |
| CPPFLAGS=-I/opt/local/include/ncurses ./configure --prefix=/opt/local | |
| patch -p1 < `dirname $0`/Makefile.patch | |
| make && sudo make install | |
| echo "Be sure to copy /usr/share/terminfo//73/screen-256color off of your mac if it's not in /opt/local/share/lib/terminfo/s/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment