clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 873009c was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago |
r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure
|
-
Property mode
set to
100755
|
File size:
1.3 KB
|
Rev | Line | |
---|
[617118d] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | # cross-lfs native vim build
|
---|
| 4 | # --------------------------
|
---|
| 5 | # $LastChangedBy$
|
---|
| 6 | # $LastChangedDate$
|
---|
| 7 | # $LastChangedRevision$
|
---|
| 8 | # $HeadURL$
|
---|
| 9 | #
|
---|
| 10 |
|
---|
| 11 | cd ${SRC}
|
---|
| 12 | LOG=vim-native.log
|
---|
| 13 |
|
---|
| 14 | set_libdirname
|
---|
| 15 | setup_multiarch
|
---|
| 16 |
|
---|
| 17 | unpack_tarball vim-${VIM_VER}
|
---|
| 18 | cd ${PKGDIR}
|
---|
| 19 |
|
---|
| 20 | case ${VIM_VER} in
|
---|
| 21 | 6.[23] )
|
---|
| 22 | # Set location for vimrc and gvimrc files
|
---|
| 23 | # ( for < 6.1 we use CPPFLAGS to set this )
|
---|
| 24 | echo "#define SYS_VIMRC_FILE \"/etc/vimrc\"" >> src/feature.h
|
---|
| 25 | echo "#define SYS_GVIMRC_FILE \"/etc/gvimrc\"" >> src/feature.h
|
---|
| 26 | # here for consistency only
|
---|
| 27 | makeopts=""
|
---|
| 28 | ;;
|
---|
| 29 | 6.1 )
|
---|
| 30 | # Remove checks for -I/usr/local/include when setting CPPFLAGS
|
---|
| 31 | apply_patch vim-${VIM_VER}
|
---|
| 32 | # Set location for vimrc file
|
---|
| 33 | makeopts="CPPFLAGS='-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\"'"
|
---|
| 34 | ;;
|
---|
| 35 | esac
|
---|
| 36 |
|
---|
| 37 |
|
---|
| 38 | max_log_init vim ${VIM_VER} "native (shared)" ${CONFLOGS} ${LOG}
|
---|
| 39 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
| 40 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
| 41 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
---|
| 42 | CXXFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
---|
| 43 | ./configure --prefix=/usr \
|
---|
| 44 | >> ${LOGFILE} 2>&1 &&
|
---|
| 45 | echo " o Configure OK" &&
|
---|
| 46 |
|
---|
| 47 | min_log_init ${BUILDLOGS} &&
|
---|
| 48 | make ${PMFLAGS} ${makeopts} \
|
---|
| 49 | >> ${LOGFILE} 2>&1 &&
|
---|
| 50 | echo " o Build OK" &&
|
---|
| 51 |
|
---|
| 52 | min_log_init ${INSTLOGS} &&
|
---|
| 53 | make install \
|
---|
| 54 | >> ${LOGFILE} 2>&1 &&
|
---|
| 55 | echo " o ALL OK" || barf
|
---|
| 56 |
|
---|
| 57 | ln -sf vim /usr/bin/vi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.