Mercurial > mxe-octave
annotate src/ncurses.mk @ 3035:513a8deac0f0
Update ncurses for native mingw build
* src/ncurses.mk: disable shared lib in native mingw
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sun, 09 Jun 2013 19:46:53 -0400 |
parents | bcc26ffe9a0f |
children | 5ef49fb3299d |
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 := | |
7 $(PKG)_CHECKSUM := 3e042e5f2c7223bffdaac9646a533b8c758b65b5 | |
8 $(PKG)_SUBDIR := ncurses-$($(PKG)_VERSION) | |
9 $(PKG)_FILE := ncurses-$($(PKG)_VERSION).tar.gz | |
10 $(PKG)_URL := http://ftp.gnu.org/pub/gnu/ncurses/$($(PKG)_FILE) | |
11 $(PKG)_DEPS := gcc | |
12 | |
13 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2469
diff
changeset
|
14 $(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
|
15 $(SED) -n 's,.*<a href="ncurses-\([0-9][^"]*\)\.tar.*,\1,p' | \ |
2405 | 16 head -1 |
17 endef | |
18 | |
3035
513a8deac0f0
Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3013
diff
changeset
|
19 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
513a8deac0f0
Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3013
diff
changeset
|
20 $(PKG)_CONFIG_OPTS := --with-normal --without-shared |
513a8deac0f0
Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3013
diff
changeset
|
21 else |
513a8deac0f0
Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3013
diff
changeset
|
22 $(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
|
23 endif |
513a8deac0f0
Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3013
diff
changeset
|
24 |
2405 | 25 define $(PKG)_BUILD |
2406
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
26 cd '$(1)' && ./configure \ |
2997 | 27 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
28 $(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
|
29 --prefix=$(HOST_PREFIX) \ |
2406
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
30 --disable-home-terminfo \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
31 --enable-sp-funcs \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
32 --enable-term-driver \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
33 --enable-interop \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
34 --without-debug \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
35 --without-ada \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
36 --without-manpages \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
37 --enable-pc-files \ |
3035
513a8deac0f0
Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3013
diff
changeset
|
38 $($(PKG)_CONFIG_OPTS) |
513a8deac0f0
Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3013
diff
changeset
|
39 |
2406
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
40 $(MAKE) -C '$(1)' -j '$(JOBS)' install |
2405 | 41 endef |