7
|
1 INSTALLmac.txt - Installation of Vim on Macintosh
|
|
2
|
|
3 This file contains instructions for compiling Vim. If you already have an
|
|
4 executable version of Vim, you don't need this.
|
|
5
|
|
6 An alternate way of building that Benji Fisher uses can be found here:
|
|
7
|
|
8 http://macvim.swdev.org/OSX/#Developers
|
|
9
|
|
10 ----------------------------------------------------------------------------
|
|
11 Summary
|
|
12 ----------------------------------------------------------------------------
|
|
13
|
|
14 1 MacOS X
|
|
15 1.1. Carbon interface
|
|
16 1.2. X (Athena, GTK, Motif) or plain text.
|
|
17
|
|
18 2 MacOS Classic
|
|
19 2.1. CodeWarrior
|
|
20 2.2. MPW
|
|
21
|
|
22 NOTE: The Carbon version can only be compiled properly under
|
|
23 MacOS X.
|
|
24
|
|
25 ----------------------------------------------------------------------------
|
|
26 1 MacOS X
|
|
27 ----------------------------------------------------------------------------
|
|
28
|
|
29 1.0 Considerations
|
|
30
|
|
31 Only '/' supported as path separator.
|
|
32
|
|
33 1.1 Carbon interface (default)
|
|
34
|
|
35 You can compile vim with the standard Unix routine:
|
|
36 cd ..
|
|
37 ./configure
|
|
38 make; make install
|
|
39
|
|
40 This will create a working Vim.app application bundle in the src
|
|
41 directory. You can move this bundle (the Vim.app directory) anywhere
|
|
42 you want, for example, /Applications.
|
|
43
|
|
44 1.2 X-Windows or Plain Text
|
|
45
|
|
46 If you do not want the Carbon interface, you must explicitly tell
|
|
47 configure to use a different GUI.
|
|
48
|
|
49 cd ..
|
|
50 ./configure --enable-gui=gtk2
|
|
51 make; make install
|
|
52
|
|
53 NOTE: The following GUI options are supported:
|
|
54 no (for text), motif, athena, nextaw
|
|
55 gtk, gtk2, gnome, gnome2,
|
|
56
|
|
57 NOTE: You need to first install XFree86 and XDarwin.
|
|
58 Please visit http://www.XDarwin.org
|
|
59
|
|
60 ----------------------------------------------------------------------------
|
|
61 MacOS 9
|
|
62 ----------------------------------------------------------------------------
|
|
63
|
|
64 Both ':' and '/' supported as path separator.
|
|
65
|
|
66 2.1: Compiling with CodeWarior
|
|
67
|
|
68 1. Expand the resource file:
|
|
69 open ../src/os_mac.rsr.hqx to produce ../src/gui_mac.rsrc:
|
|
70 % cd vim62/src
|
|
71 % open -a StuffIt\ Expander os_mac.rsr.hqx
|
|
72
|
|
73 2. Expand the project file:
|
|
74 - ../src/os_mac.sit.hqx (to produce ../src/vim.mcp)
|
|
75
|
|
76 3. Open vim.mcp with CodeWarior
|
|
77
|
|
78 This is a CodeWarior 9 project file. When using a newer version,
|
|
79 you need to convert the file. you may also need to change some
|
|
80 access path.
|
|
81
|
|
82 NOTE: the current project file is old, you need to add a few files:
|
|
83 (ex_cmds2.c, fold.c, mbyte.c, move.c)
|
|
84
|
|
85 4. Select the target PPC, 68k FAT (with/without debugger)
|
|
86
|
|
87 5. Compile
|
|
88
|
|
89 2.2: Compiling with MPW.
|
|
90
|
|
91 0. You will need a recent version of the MPW and the Universal Interfaces.
|
|
92 You can get both at:
|
|
93 ftp://ftp.apple.com/developer/Tool_Chest/Interfaces-Libraries/
|
|
94 ftp://ftp.apple.com/developer/Tool_Chest/Core_Mac_OS_Tools/
|
|
95 For a Carbon version you will need a recent Carbon SDK as well.
|
|
96 (When you have an older version already installed you not be able to
|
|
97 compile a carbon version. Update "CreateMake" which is available at
|
|
98 Apple.
|
|
99
|
|
100 1. Expand the resource file:
|
|
101 open ../src/os_mac.rsr.hqx to produce ../src/gui_mac.rsrc:
|
|
102 % cd vim62/src
|
|
103 % open -a StuffIt\ Expander os_mac.rsr.hqx
|
|
104
|
|
105 3. Double click on os_make.make, the MPW will now open in the correct
|
|
106 folder and load the CreateVimMake script. Change to the Worksheet
|
|
107 window. Type "os_mac.build" and hit Enter (not Return). A dialog box
|
|
108 will appear. Select the target you want. (Vim-68k, Vim-ppc, Vim-carbon)
|
|
109
|
|
110 4. Select "Build" from the menu (or type command-B). Type the program name
|
|
111 into the dialog box.
|
|
112
|
|
113 ------------------------------------------------------
|
|
114
|
|
115 OLD FILE: SOME INFO MAY STILL BE USEFUL
|
|
116
|
|
117 NOTE: Users of more recent CodeWarrior version may have to reset the library
|
|
118 path, and change the mch_delay in os_mac.c so the finalTick is unsigned.
|
|
119
|
|
120 Compilation instructions:
|
|
121
|
|
122 1. Visit the Vim ftp site (see ftp://ftp.vim.org/pub/vim/MIRRORS)
|
|
123 and obtain the following five files:
|
|
124
|
|
125 unix/vim-X.X-src1.tar.gz
|
|
126 unix/vim-X.X-src2.tar.gz
|
|
127 unix/vim-X.X-rt1.tar.gz
|
|
128 unix/vim-X.X-rt2.tar.gz
|
|
129 extra/vim-X.X-extra.tar.gz
|
|
130
|
|
131 where X.X is the version number.
|
|
132
|
|
133 NOTE: the language support is not yet supported
|
|
134
|
|
135 2. Expand the archives.
|
|
136
|
|
137 3. Apply patches if they exist. (Patch files are found in the ftp
|
|
138 site in the "patches" directory.)
|
|
139
|
|
140 4. Edit vim-X.X/src/feature.h for your preference. (You can skip
|
|
141 this, then you will get the default behavior as is documented,
|
|
142 which should be fine for most people.)
|
|
143
|
|
144 For example, if you want to add the FEAT_MBYTE feature, turn on
|
|
145 #define FEAT_MBYTE
|
|
146
|
|
147 5. Expand the resource file:
|
|
148
|
|
149 - vim-X.X/src/os_mac.rsr.hqx (to produce vim-X.X/src/gui_mac.rsrc)
|
|
150
|
|
151 6. If using CodeWarrior, expand the project file:
|
|
152
|
|
153 - vim-X.X/src/os_mac.sit.hqx (to produce vim-X.X/src/vim.mcp)
|
|
154
|
|
155 The latter file is the CodeWarrior project file to be used.
|
|
156
|
|
157 7. Launch CodeWarrior by double clicking vim.mcp.
|
|
158
|
|
159 8. Check additional files if you include non-standard features.
|
|
160
|
|
161 For example, if you added the MULTI_BYTE feature, check
|
|
162 Extras/mbyte.c in the project window.
|
|
163
|
|
164 9. Compile and you will obtain binaries: vimPPC, Vim 68k, and/or vimFAT.
|