blob: 81ad970fe8783beea8299b30ce236ffaedf423ca [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001INSTALLmac.txt - Installation of Vim on Macintosh
2
3This file contains instructions for compiling Vim. If you already have an
4executable version of Vim, you don't need this.
5
6An alternate way of building that Benji Fisher uses can be found here:
7
8 http://macvim.swdev.org/OSX/#Developers
9
10----------------------------------------------------------------------------
11Summary
12----------------------------------------------------------------------------
13
141 MacOS X
15 1.1. Carbon interface
16 1.2. X (Athena, GTK, Motif) or plain text.
17
Bram Moolenaar9372a112005-12-06 19:59:18 +000018MacOS Classic is no longer supported. If you really want it use Vim 6.4.
Bram Moolenaar071d4272004-06-13 20:20:40 +000019
20----------------------------------------------------------------------------
211 MacOS X
22----------------------------------------------------------------------------
23
241.0 Considerations
25
26 Only '/' supported as path separator.
27
281.1 Carbon interface (default)
29
30 You can compile vim with the standard Unix routine:
Bram Moolenaarfd2ac762006-03-01 22:09:21 +000031 cd .../src
32 make
Bram Moolenaar071d4272004-06-13 20:20:40 +000033
34 This will create a working Vim.app application bundle in the src
35 directory. You can move this bundle (the Vim.app directory) anywhere
Bram Moolenaarfd2ac762006-03-01 22:09:21 +000036 you want. Or use this command to move it to /Applications:
37 make install
Bram Moolenaar071d4272004-06-13 20:20:40 +000038
Bram Moolenaar7e8fd632006-02-18 22:14:51 +000039 You need at least Xcode 1.5 to compile Vim 7.0.
40
Bram Moolenaarfd2ac762006-03-01 22:09:21 +000041 Configure will create a universal binary if possible. This requires
42 installing the universal SDK (currently for 10.4).
43
44 To overrule the architecture do this before running make:
45
Bram Moolenaarc9b4b052006-04-30 18:54:39 +000046 ./configure --with-mac-arch=intel
Bram Moolenaarfd2ac762006-03-01 22:09:21 +000047 or
Bram Moolenaarc9b4b052006-04-30 18:54:39 +000048 ./configure --with-mac-arch=ppc
Bram Moolenaarfd2ac762006-03-01 22:09:21 +000049
Bram Moolenaar7e8fd632006-02-18 22:14:51 +000050
Bram Moolenaar071d4272004-06-13 20:20:40 +0000511.2 X-Windows or Plain Text
52
53 If you do not want the Carbon interface, you must explicitly tell
54 configure to use a different GUI.
55
Bram Moolenaarfd2ac762006-03-01 22:09:21 +000056 cd .../src
Bram Moolenaar7e8fd632006-02-18 22:14:51 +000057 ./configure --disable-darwin --enable-gui=gtk2
Bram Moolenaar071d4272004-06-13 20:20:40 +000058 make; make install
59
60 NOTE: The following GUI options are supported:
61 no (for text), motif, athena, nextaw
62 gtk, gtk2, gnome, gnome2,
63
64 NOTE: You need to first install XFree86 and XDarwin.
65 Please visit http://www.XDarwin.org
66
Bram Moolenaar071d4272004-06-13 20:20:40 +000067------------------------------------------------------