annotate src/ncurses.mk @ 3725:2acaa9943159

qscintilla: update 2.8.4 * src/qscintilla.mk: update to version and checksum for 2.8.4
author John Donoghue
date Mon, 20 Oct 2014 11:01:00 -0400
parents 13be64f9f16d
children c18e196786bb
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 :=
3480
13be64f9f16d move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents: 3293
diff changeset
7 $(PKG)_VERSION := 5.9
2405
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
8 $(PKG)_CHECKSUM := 3e042e5f2c7223bffdaac9646a533b8c758b65b5
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
2405
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
33 define $(PKG)_BUILD
2406
3264ca2f154f package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents: 2405
diff changeset
34 cd '$(1)' && ./configure \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2876
diff changeset
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
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
58 endef