Mercurial > mxe-octave
comparison src/ncurses.mk @ 3121:21f598a028ec
[MSVC] enable ncurses compilation
Compilation uses build-libtool, which must be compiled and installed
properly with MSVC support.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Fri, 05 Jul 2013 22:24:48 -0400 |
parents | 5ef49fb3299d |
children | 20687ac693e8 |
comparison
equal
deleted
inserted
replaced
3120:095898417026 | 3121:21f598a028ec |
---|---|
14 $(WGET) -q -O- 'http://ftp.gnu.org/pub/gnu/ncurses/?C=M;O=D' | \ | 14 $(WGET) -q -O- 'http://ftp.gnu.org/pub/gnu/ncurses/?C=M;O=D' | \ |
15 $(SED) -n 's,.*<a href="ncurses-\([0-9][^"]*\)\.tar.*,\1,p' | \ | 15 $(SED) -n 's,.*<a href="ncurses-\([0-9][^"]*\)\.tar.*,\1,p' | \ |
16 head -1 | 16 head -1 |
17 endef | 17 endef |
18 | 18 |
19 ifeq ($(MXE_SYSTEM),msvc) | |
20 $(PKG)_CONFIG_OPTS := \ | |
21 --without-normal \ | |
22 --with-shared \ | |
23 --with-libtool | |
24 else | |
19 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) | 25 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
20 $(PKG)_CONFIG_OPTS := --with-normal --without-shared | 26 $(PKG)_CONFIG_OPTS := --with-normal --without-shared |
21 else | 27 else |
22 $(PKG)_CONFIG_OPTS := --with-normal $(WITH_SHARED_OR_STATIC) | 28 $(PKG)_CONFIG_OPTS := --with-normal $(WITH_SHARED_OR_STATIC) |
29 endif | |
23 endif | 30 endif |
24 | 31 |
25 define $(PKG)_BUILD | 32 define $(PKG)_BUILD |
26 cd '$(1)' && ./configure \ | 33 cd '$(1)' && ./configure \ |
27 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ | 34 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
35 --without-ada \ | 42 --without-ada \ |
36 --without-manpages \ | 43 --without-manpages \ |
37 --enable-pc-files \ | 44 --enable-pc-files \ |
38 $($(PKG)_CONFIG_OPTS) | 45 $($(PKG)_CONFIG_OPTS) |
39 | 46 |
47 # MSVC generates invalid code in panel library when using -O2 | |
48 # command-line flag. Bug is reported. Disable optimization for | |
49 # the time being. | |
50 if test x$(MXE_SYSTEM) = xmsvc; then \ | |
51 find '$(1)' -name Makefile \ | |
52 -exec $(SED) -i 's,-\<O2\>,,' {} \; ; \ | |
53 fi | |
54 | |
40 $(MAKE) -C '$(1)' -j '$(JOBS)' install | 55 $(MAKE) -C '$(1)' -j '$(JOBS)' install |
41 endef | 56 endef |