Mercurial > vim
comparison src/main.aap @ 1407:26b0b2f606d2 v7.1.122
updated for version 7.1-122
author | vimboss |
---|---|
date | Tue, 25 Sep 2007 20:13:54 +0000 |
parents | 2a276274c592 |
children | 76406c9cbbaa |
comparison
equal
deleted
inserted
replaced
1406:396a9b65abe6 | 1407:26b0b2f606d2 |
---|---|
54 # NOTE: we can only build for one architecture, because -MM doesn't work | 54 # NOTE: we can only build for one architecture, because -MM doesn't work |
55 # when building for both. | 55 # when building for both. |
56 config {virtual} auto/config.h auto/config.aap : | 56 config {virtual} auto/config.h auto/config.aap : |
57 auto/configure.aap configure.aap | 57 auto/configure.aap configure.aap |
58 config.arg config.h.in config.aap.in | 58 config.arg config.h.in config.aap.in |
59 # Use "uname -a" to detect the architecture of the system. | |
60 @ok, uname = redir_system('uname -a', 0) | |
61 @if string.find(uname, "i386") >= 0: | |
62 @ arch = "i386" | |
63 @else: | |
64 @ arch = "ppc" | |
65 :print Building for $arch system | |
59 :sys CONFIG_STATUS=auto/config.status | 66 :sys CONFIG_STATUS=auto/config.status |
60 ./configure.aap `file2string("config.arg")` | 67 ./configure.aap `file2string("config.arg")` |
61 --with-mac-arch=ppc | 68 --with-mac-arch=$arch |
62 --cache-file=auto/config.cache | 69 --cache-file=auto/config.cache |
63 | 70 |
64 # Configure arguments: create an empty "config.arg" file when its missing | 71 # Configure arguments: create an empty "config.arg" file when its missing |
65 config.arg: | 72 config.arg: |
66 :touch {exist} config.arg | 73 :touch {exist} config.arg |
1165 :execute main.aap PREFIX=$DESTDIR$prefix/$RESDIR/vim VIMRTLOC=$DESTDIR$prefix/$RESDIR/vim/runtime installruntime | 1172 :execute main.aap PREFIX=$DESTDIR$prefix/$RESDIR/vim VIMRTLOC=$DESTDIR$prefix/$RESDIR/vim/runtime installruntime |
1166 # Put the link back. | 1173 # Put the link back. |
1167 :symlink `os.getcwd()`/../runtime $RESDIR/vim/runtime | 1174 :symlink `os.getcwd()`/../runtime $RESDIR/vim/runtime |
1168 # TODO: Create the vimtutor application. | 1175 # TODO: Create the vimtutor application. |
1169 | 1176 |
1170 gui_bundle {virtual}: $(RESDIR) bundle-dir bundle-executable bundle-info | 1177 gui_bundle {virtual}: $(RESDIR) bundle-dir bundle-executable bundle-info \ |
1171 bundle-resource bundle-language | 1178 bundle-resource bundle-language |
1172 | 1179 |
1173 bundle-dir {virtual}: $(APPDIR)/Contents $(VIMTARGET) | 1180 bundle-dir {virtual}: $(APPDIR)/Contents $(VIMTARGET) |
1174 # Make a link to the runtime directory, so that we can try out the executable | 1181 # Make a link to the runtime directory, so that we can try out the executable |
1175 # without installing it. | 1182 # without installing it. |
1185 :print "APPLVIM!" >! $(APPDIR)/Contents/PkgInfo | 1192 :print "APPLVIM!" >! $(APPDIR)/Contents/PkgInfo |
1186 :print Creating Info.plist | 1193 :print Creating Info.plist |
1187 :sys m4 $(M4FLAGSX) infplist.xml > $(APPDIR)/Contents/Info.plist | 1194 :sys m4 $(M4FLAGSX) infplist.xml > $(APPDIR)/Contents/Info.plist |
1188 | 1195 |
1189 bundle-resource {virtual}: bundle-dir bundle-rsrc | 1196 bundle-resource {virtual}: bundle-dir bundle-rsrc |
1190 :copy {force} $(RSRC_DIR)/*.icns $(RESDIR) | 1197 :copy {force} $(RSRC_DIR)/*.icns $(RESDIR) |
1191 | 1198 |
1192 ### Classic resources | 1199 ### Classic resources |
1193 # Resource fork (in the form of a .rsrc file) for Classic Vim (Mac OS 9) | 1200 # Resource fork (in the form of a .rsrc file) for Classic Vim (Mac OS 9) |
1194 # This file is also required for OS X Vim. | 1201 # This file is also required for OS X Vim. |
1195 bundle-rsrc {virtual}: os_mac.rsr.hqx | 1202 bundle-rsrc {virtual}: os_mac.rsr.hqx |