Mercurial > mxe-octave
annotate src/ncurses.mk @ 4451:f81858aaddc8
of-mapping: re-allow checking of rad2deg, deg2rad in configure when cross compiling (Bug #47494)
* src/of-mapping-1-cross-fixes.patch: remove cross compile patch
author | John D |
---|---|
date | Tue, 15 Aug 2017 08:04:34 -0400 |
parents | c18e196786bb |
children | 4ee8962905ad |
rev | line source |
---|---|
2469
51a4ed33302d
various packages: fix references to mingw-cross-env and doc/index.html
Tony Theodore <tonyt@logyst.com>
parents:
2408
diff
changeset
|
1 # This file is part of MXE. |
51a4ed33302d
various packages: fix references to mingw-cross-env and doc/index.html
Tony Theodore <tonyt@logyst.com>
parents:
2408
diff
changeset
|
2 # See index.html for further information. |
2405 | 3 |
4 # ncurses | |
5 PKG := ncurses | |
6 $(PKG)_IGNORE := | |
4214
c18e196786bb
ncurses: update to 6.0
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents:
3480
diff
changeset
|
7 $(PKG)_VERSION := 6.0 |
c18e196786bb
ncurses: update to 6.0
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents:
3480
diff
changeset
|
8 $(PKG)_CHECKSUM := acd606135a5124905da770803c05f1f20dd3b21c |
2405 | 9 $(PKG)_SUBDIR := ncurses-$($(PKG)_VERSION) |
10 $(PKG)_FILE := ncurses-$($(PKG)_VERSION).tar.gz | |
11 $(PKG)_URL := http://ftp.gnu.org/pub/gnu/ncurses/$($(PKG)_FILE) | |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3035
diff
changeset
|
12 $(PKG)_DEPS := |
2405 | 13 |
14 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2469
diff
changeset
|
15 $(WGET) -q -O- 'http://ftp.gnu.org/pub/gnu/ncurses/?C=M;O=D' | \ |
2407
0a2707497afa
package ncurses:fix update macro
Tony Theodore <tonyt@logyst.com>
parents:
2406
diff
changeset
|
16 $(SED) -n 's,.*<a href="ncurses-\([0-9][^"]*\)\.tar.*,\1,p' | \ |
2405 | 17 head -1 |
18 endef | |
19 | |
3121
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
20 ifeq ($(MXE_SYSTEM),msvc) |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
21 $(PKG)_CONFIG_OPTS := \ |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
22 --without-normal \ |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
23 --with-shared \ |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
24 --with-libtool |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
25 else |
3035
513a8deac0f0
Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3013
diff
changeset
|
26 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
513a8deac0f0
Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3013
diff
changeset
|
27 $(PKG)_CONFIG_OPTS := --with-normal --without-shared |
513a8deac0f0
Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3013
diff
changeset
|
28 else |
513a8deac0f0
Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3013
diff
changeset
|
29 $(PKG)_CONFIG_OPTS := --with-normal $(WITH_SHARED_OR_STATIC) |
513a8deac0f0
Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3013
diff
changeset
|
30 endif |
3121
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
31 endif |
3035
513a8deac0f0
Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3013
diff
changeset
|
32 |
2405 | 33 define $(PKG)_BUILD |
2406
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
34 cd '$(1)' && ./configure \ |
2997 | 35 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
36 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
37 --prefix=$(HOST_PREFIX) \ |
2406
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
38 --disable-home-terminfo \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
39 --enable-sp-funcs \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
40 --enable-term-driver \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
41 --enable-interop \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
42 --without-debug \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
43 --without-ada \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
44 --without-manpages \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
45 --enable-pc-files \ |
3206
863a239f0685
set CONFIG_SITE, not CONFIG_CACHE, for ncurses configure command
John W. Eaton <jwe@octave.org>
parents:
3191
diff
changeset
|
46 CONFIG_SITE=/dev/null \ |
3035
513a8deac0f0
Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3013
diff
changeset
|
47 $($(PKG)_CONFIG_OPTS) |
513a8deac0f0
Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3013
diff
changeset
|
48 |
3121
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
49 # MSVC generates invalid code in panel library when using -O2 |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
50 # command-line flag. Bug is reported. Disable optimization for |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
51 # the time being. |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
52 if test x$(MXE_SYSTEM) = xmsvc; then \ |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
53 find '$(1)' -name Makefile \ |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
54 -exec $(SED) -i 's,-\<O2\>,,' {} \; ; \ |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
55 fi |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
56 |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3206
diff
changeset
|
57 $(MAKE) -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)' |
2405 | 58 endef |