summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <igor.pashev@nexenta.com>2013-04-16 17:34:44 +0400
committerIgor Pashev <igor.pashev@nexenta.com>2013-04-16 17:34:44 +0400
commit00f444489f3b3bef17182acdbfe6130d89897380 (patch)
tree47ba3bcfd1e84833d1c28e2a3a9dc5f84a1406ae
parentac0f0b121e3438a2f203638f5b8b6ade502227e3 (diff)
downloadcibs-pkgs-00f444489f3b3bef17182acdbfe6130d89897380.tar.gz
Vim in progress
-rw-r--r--vim/Makefile75
1 files changed, 75 insertions, 0 deletions
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 $@
+
+