genode/repos/ports/src/noux-pkg/vim/target.mk
Norman Feske ca971bbfd8 Move repositories to 'repos/' subdirectory
This patch changes the top-level directory layout as a preparatory
step for improving the tools for managing 3rd-party source codes.
The rationale is described in the issue referenced below.

Issue #1082
2014-05-14 16:08:00 +02:00

62 lines
1.7 KiB
Makefile

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
LIBS += ncurses
include $(REP_DIR)/mk/noux.mk
noux_env.sh: mirror_vim_src.tag flush_config_cache.tag
mirror_vim_src.tag:
$(VERBOSE)cp -af $(NOUX_PKG_DIR)/src $(PWD)
$(VERBOSE)cp -af $(NOUX_PKG_DIR)/Makefile $(PWD)
$(VERBOSE)ln -sf $(NOUX_PKG_DIR)/Filelist $(PWD)
$(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 $@
flush_config_cache.tag:
$(VERBOSE)rm -f $(PWD)/src/auto/config.cache
@touch $@
#
# Make the ncurses linking test succeed
#
Makefile: dummy_libs
NOUX_LDFLAGS += -L$(PWD)
.SECONDARY: dummy_libs
dummy_libs: libncurses.a
libncurses.a:
$(VERBOSE)$(AR) -rc $@