genode/repos/ports/src/noux-pkg/vim/target.mk

62 lines
1.7 KiB
Makefile
Raw Normal View History

2011-12-22 16:19:25 +01:00
NOUX_CONFIGURE_ARGS = --disable-selinux --disable-xsmp --disable-xsmp-interact \
--disable-netbeans --disable-gtktest --disable-largefile \
--disable-acl --disable-gpm --disable-sysmouse \
--disable-nls
#
# configure: error: cross-compiling: please set 'vim_cv_toupper_broken'
#
NOUX_CONFIGURE_ARGS += vim_cv_toupper_broken=yes
#
# configure: error: NOT FOUND!
# You need to install a terminal library; for example ncurses.
# Or specify the name of the library with --with-tlib.
#
NOUX_CONFIGURE_ARGS += --with-tlib=ncurses
#
# configure: error: cross-compiling: please set ...
#
NOUX_CONFIGURE_ARGS += vim_cv_terminfo=linux
NOUX_CONFIGURE_ARGS += vim_cv_tty_group=world
NOUX_CONFIGURE_ARGS += vim_cv_tty_mode=0620
NOUX_CONFIGURE_ARGS += vim_cv_getcwd_broken=no
NOUX_CONFIGURE_ARGS += vim_cv_stat_ignores_slash=no
NOUX_CONFIGURE_ARGS += vim_cv_memmove_handles_overlap=yes
NOUX_INSTALL_TARGET = install
2011-12-22 16:19:25 +01:00
LIBS += ncurses
include $(REP_DIR)/mk/noux.mk
2012-06-27 16:11:26 +02:00
noux_env.sh: mirror_vim_src.tag flush_config_cache.tag
2011-12-22 16:19:25 +01:00
2012-06-27 16:11:26 +02:00
mirror_vim_src.tag:
$(VERBOSE)cp -af $(NOUX_PKG_DIR)/src $(PWD)
$(VERBOSE)cp -af $(NOUX_PKG_DIR)/Makefile $(PWD)
2011-12-22 16:19:25 +01:00
$(VERBOSE)ln -sf $(NOUX_PKG_DIR)/Filelist $(PWD)
2012-06-27 16:11:26 +02:00
$(VERBOSE)ln -sf $(NOUX_PKG_DIR)/runtime $(PWD)
# let the configure script update the Makefile time stamp
$(VERBOSE)sed -i "/exit/s/^/touch ..\/Makefile\n/" src/configure
@touch $@
2011-12-22 16:19:25 +01:00
2012-06-27 16:11:26 +02:00
flush_config_cache.tag:
2011-12-22 16:19:25 +01:00
$(VERBOSE)rm -f $(PWD)/src/auto/config.cache
2012-06-27 16:11:26 +02:00
@touch $@
2011-12-22 16:19:25 +01:00
#
# Make the ncurses linking test succeed
#
Makefile: dummy_libs
NOUX_LDFLAGS += -L$(PWD)
2012-06-27 16:11:26 +02:00
.SECONDARY: dummy_libs
2011-12-22 16:19:25 +01:00
dummy_libs: libncurses.a
libncurses.a:
$(VERBOSE)$(AR) -rc $@