source: freewrt/package/vim/Makefile@ 6fc4520e

freewrt_1_0 freewrt_2_0
Last change on this file since 6fc4520e was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.7 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= vim
10PKG_VERSION:= 5.8
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 89ab05bb5cd39eeb9e259503436c11ed
13
14PKG_SOURCE_URL:= ftp://ftp.vim.org/pub/vim/unix/
15PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION)-src.tar.gz
16
17include $(TOPDIR)/mk/package.mk
18
19$(eval $(call PKG_template,VIM,vim,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21$(WRKBUILD)/.configured:
22 (cd $(WRKBUILD)/src; rm -rf config.cache; \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
25 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
26 ac_cv_c_bigendian=no \
27 ac_cv_sizeof_off_t=8 \
28 ac_cv_sizeof_int=4 \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --prefix=/usr \
34 --exec-prefix=/usr \
35 --bindir=/usr/bin \
36 --sbindir=/usr/sbin \
37 --libexecdir=/usr/lib \
38 --sysconfdir=/etc \
39 --datadir=/usr/share \
40 --localstatedir=/var \
41 --mandir=/usr/man \
42 --infodir=/usr/info \
43 --program-prefix="" \
44 --disable-nls \
45 --enable-min-features \
46 --disable-gui \
47 --without-x \
48 --disable-multibyte \
49 --disable-cscope \
50 --disable-gpm \
51 --with-tlib=ncurses \
52 );
53 touch $@
54
55$(WRKBUILD)/.built: $(WRKBUILD)/.configured
56 $(MAKE) -C $(WRKBUILD) \
57 CC=$(TARGET_CC)
58 touch $@
59
60$(IPKG_VIM):
61 mkdir -p $(IDIR_VIM)/usr/bin
62 mkdir -p $(IDIR_VIM)//usr/share/vim
63 $(CP) ./files/vimrc $(IDIR_VIM)//usr/share/vim
64 $(CP) $(WRKBUILD)/src/$(PKG_NAME) $(IDIR_VIM)/usr/bin/
65 $(RSTRIP) $(IDIR_VIM)
66 $(IPKG_BUILD) $(IDIR_VIM) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.