update motion package, add a patch to honor CPPFLAGS,
[openwrt.git] / openwrt / package / vim / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=vim
6 PKG_VERSION:=5.8
7 PKG_RELEASE:=1
8
9 PKG_SOURCE_URL:=ftp://ftp.vim.org/pub/vim/unix/
10 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz
11 PKG_MD5SUM:=
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,VIM,vim,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured:
21 (cd $(PKG_BUILD_DIR)/src; rm -rf config.cache; \
22 $(TARGET_CONFIGURE_OPTS) \
23 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
24 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
25 ac_cv_c_bigendian=no \
26 ac_cv_sizeof_off_t=8 \
27 ac_cv_sizeof_int=4 \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --prefix=/usr \
33 --exec-prefix=/usr \
34 --bindir=/usr/bin \
35 --sbindir=/usr/sbin \
36 --libexecdir=/usr/lib \
37 --sysconfdir=/etc \
38 --datadir=/usr/share \
39 --localstatedir=/var \
40 --mandir=/usr/man \
41 --infodir=/usr/info \
42 --program-prefix="" \
43 $(DISABLE_NLS) \
44 --enable-min-features \
45 --disable-gui \
46 --without-x \
47 --disable-multibyte \
48 --disable-cscope \
49 --disable-gpm \
50 --with-tlib=ncurses \
51 );
52 touch $@
53
54 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
55 $(MAKE) -C $(PKG_BUILD_DIR) \
56 CC=$(TARGET_CC)
57 touch $@
58
59 $(IPKG_VIM):
60 mkdir -p $(IDIR_VIM)/usr/bin
61 mkdir -p $(IDIR_VIM)//usr/share/vim
62 $(CP) ./files/vimrc $(IDIR_VIM)//usr/share/vim
63 $(CP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(IDIR_VIM)/usr/bin/
64 $(RSTRIP) $(IDIR_VIM)
65 $(IPKG_BUILD) $(IDIR_VIM) $(PACKAGE_DIR)
This page took 0.046242 seconds and 5 git commands to generate.