From 00f444489f3b3bef17182acdbfe6130d89897380 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Tue, 16 Apr 2013 17:34:44 +0400 Subject: Vim in progress --- vim/Makefile | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 vim/Makefile (limited to 'vim') diff --git a/vim/Makefile b/vim/Makefile new file mode 100644 index 0000000..1d0193a --- /dev/null +++ b/vim/Makefile @@ -0,0 +1,75 @@ +package ?= ips +include /usr/share/cibs/rules/$(package).mk +include /usr/share/cibs/rules/hg.mk +bits = 64 + +summary := the Editor +license := +license-file := symlinks.license + +hg-url := https://vim.googlecode.com/hg/ +home := http://www.vim.org +name := vim +version := 7.3.905 +# hg update $(hg-update) +hg-update := v$(subst .,-,$(version)) + +build-depends += \ + developer/build/autoconf \ + developer/python + +pre-configure-stamp: autoconf-stamp +autoconf-stamp: patch-stamp + cp $(sourcedir)/src/config.mk.dist $(sourcedir)/src/auto/config.mk + $(MAKE) -C $(sourcedir)/src autoconf + $(MAKE) -C $(sourcedir) distclean + touch $@ + +$(eval $(call add-variant,nox)) +$(eval $(call add-variant,tiny)) +$(eval $(call add-variant,basic)) + +configure-options := \ + --prefix=/usr \ + --mandir='$${prefix}'/share/man \ + --without-local-dir \ + --enable-fail-if-missing \ + +configure-options.nox := $(configure-options) \ + --without-x --enable-gui=no \ + --enable-pythoninterp \ + +configure-options.tiny := $(configure-options) \ + --with-features=small \ + --disable-gui \ + --disable-xsmp \ + --disable-xsmp-interact \ + --disable-netbeans \ + --enable-nls \ + --enable-multibyte \ + --enable-acl \ + +configure-options.basic := $(configure-options.nox) \ + --disable-luainterp \ + --disable-mzschemeinterp \ + --disable-perlinterp \ + --disable-pythoninterp \ + --disable-python3interp \ + --disable-rubyinterp \ + --disable-tclinterp \ + + +# We are building in source dir, but within subdirs: +configure-%-stamp: + $(MAKE) -C $(sourcedir)/src shadow SHADOWDIR=$(*) + cd $(sourcedir) && if test -f src/auto/config.cache; then make distclean; fi + cd $(sourcedir)/src/$(*) && \ + LDFLAGS="$(LDFLAGS)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" CC="$(CC)"\ + ./configure $(configure-options.$*) + touch $@ + +build-%-stamp: + $(MAKE) -C $(sourcedir)/src/$(*) + touch $@ + + -- cgit v1.2.3