comparison src/readline.mk @ 3652:7af3dec1ab50

link readline with ncurses for native builds
author John W. Eaton <jwe@octave.org>
date Tue, 08 Jul 2014 10:03:56 -0400
parents 13be64f9f16d
children c1c5dd2cc2f2
comparison
equal deleted inserted replaced
3651:8d3f34484fda 3652:7af3dec1ab50
11 11
12 ifeq ($(MXE_SYSTEM),mingw) 12 ifeq ($(MXE_SYSTEM),mingw)
13 $(PKG)_TERMCAP_LIB := termcap 13 $(PKG)_TERMCAP_LIB := termcap
14 else 14 else
15 $(PKG)_TERMCAP_LIB := ncurses 15 $(PKG)_TERMCAP_LIB := ncurses
16 ifeq ($(MXE_NATIVE_BUILD),yes)
17 $(PKG)_CONFIGURE_OPTIONS := --with-curses bash_cv_termcap_lib="-lncurses"
18 $(PKG)_MAKE_OPTIONS := SHLIB_LIBS="-lncurses"
19 endif
16 endif 20 endif
17 21
18 $(PKG)_DEPS := $($(PKG)_TERMCAP_LIB) 22 $(PKG)_DEPS := $($(PKG)_TERMCAP_LIB)
19 23
20 define $(PKG)_UPDATE 24 define $(PKG)_UPDATE
33 fi 37 fi
34 cd '$(1)' && ./configure \ 38 cd '$(1)' && ./configure \
35 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ 39 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
36 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ 40 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
37 $(ENABLE_SHARED_OR_STATIC) \ 41 $(ENABLE_SHARED_OR_STATIC) \
42 $($(PKG)_CONFIGURE_OPTIONS) \
38 --prefix='$(HOST_PREFIX)' \ 43 --prefix='$(HOST_PREFIX)' \
39 --enable-multibyte \ 44 --enable-multibyte \
40 --without-purify 45 --without-purify
41 $(MAKE) -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)' 46 $(MAKE) -C '$(1)' -j '$(JOBS)' $($(PKG)_MAKE_OPTIONS) install DESTDIR='$(3)'
42 endef 47 endef