annotate src/ncurses.mk @ 5893:53a6c7df43f8

Mesa 3D: Update to version 21.1.8. * src/mesa.mk: Update version and checksum. * src/mesa-2-uninitialized.patch: Remove file. * dist-files.mk: Remove file from list.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 16 Sep 2021 22:37:45 +0200
parents 9fb478d2036b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
3
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
4 # ncurses
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
5 PKG := ncurses
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
4841
96b51259775c ncurses: update to 6.1; use versioned syms on non-windows systems
John W. Eaton <jwe@octave.org>
parents: 4826
diff changeset
7 $(PKG)_VERSION := 6.1
96b51259775c ncurses: update to 6.1; use versioned syms on non-windows systems
John W. Eaton <jwe@octave.org>
parents: 4826
diff changeset
8 $(PKG)_CHECKSUM := 57acf6bc24cacd651d82541929f726f4def780cc
2405
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
9 $(PKG)_SUBDIR := ncurses-$($(PKG)_VERSION)
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
10 $(PKG)_FILE := ncurses-$($(PKG)_VERSION).tar.gz
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
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
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
13
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
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
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
17 head -1
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
18 endef
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
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
4826
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
33 $(PKG)_COMMON_CONFIG_OPTS := \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2876
diff changeset
34 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
35 $(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
36 --prefix=$(HOST_PREFIX) \
2406
3264ca2f154f package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents: 2405
diff changeset
37 --disable-home-terminfo \
3264ca2f154f package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents: 2405
diff changeset
38 --enable-sp-funcs \
3264ca2f154f package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents: 2405
diff changeset
39 --enable-interop \
3264ca2f154f package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents: 2405
diff changeset
40 --without-debug \
3264ca2f154f package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents: 2405
diff changeset
41 --without-ada \
3264ca2f154f package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents: 2405
diff changeset
42 --without-manpages \
3264ca2f154f package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents: 2405
diff changeset
43 --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
44 CONFIG_SITE=/dev/null \
3035
513a8deac0f0 Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3013
diff changeset
45 $($(PKG)_CONFIG_OPTS)
513a8deac0f0 Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3013
diff changeset
46
4826
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
47 define $(PKG)_BUILD
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
48
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
49 ## Normal char version:
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
50
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
51 mkdir '$(1)/.build' && cd '$(1)/.build' && ../configure \
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
52 $($(PKG)_COMMON_CONFIG_OPTS)
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
53
3121
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
54 # 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
55 # command-line flag. Bug is reported. Disable optimization for
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
56 # the time being.
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
57 if test x$(MXE_SYSTEM) = xmsvc; then \
4826
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
58 find '$(1)/.build' -name Makefile \
3121
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
59 -exec $(SED) -i 's,-\<O2\>,,' {} \; ; \
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
60 fi
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
61
4826
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
62 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$(3)'
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
63
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
64 ## Wide char version:
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
65
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
66 mkdir '$(1)/.build-widec' && cd '$(1)/.build-widec' && ../configure \
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
67 --enable-widec \
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
68 $($(PKG)_COMMON_CONFIG_OPTS)
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
69
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
70 # MSVC generates invalid code in panel library when using -O2
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
71 # command-line flag. Bug is reported. Disable optimization for
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
72 # the time being.
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
73 if test x$(MXE_SYSTEM) = xmsvc; then \
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
74 find '$(1)/.build-widec' -name Makefile \
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
75 -exec $(SED) -i 's,-\<O2\>,,' {} \; ; \
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
76 fi
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
77
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
78 $(MAKE) -C '$(1)/.build-widec' -j '$(JOBS)' install DESTDIR='$(3)'
4ee8962905ad ncurses: also build wide char and tinfo libraries
John W. Eaton <jwe@octave.org>
parents: 4214
diff changeset
79
2405
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
80 endef