Mercurial > mxe-octave
annotate src/ncurses.mk @ 2863:54464afe91f3
Build shared version of ncurses library by converting static library.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 16 Nov 2012 12:55:45 -0500 |
parents | 47558e958113 |
children | c766e4afd493 |
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 | |
2863
54464afe91f3
Build shared version of ncurses library by converting static library.
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
19 # Building with --enable-shared doesn't seem to work for MinGW systems |
54464afe91f3
Build shared version of ncurses library by converting static library.
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
20 # with this version of ncurses, so fake it. |
54464afe91f3
Build shared version of ncurses library by converting static library.
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
21 |
2405 | 22 define $(PKG)_BUILD |
2406
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
23 cd '$(1)' && ./configure \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
24 --host='$(TARGET)' \ |
2553
1b3b2b00bdb9
fix in build of ncurses if wine was installed
Luis Saavedra <luis94855510@gmail.com>
parents:
2525
diff
changeset
|
25 --build="`config.guess`" \ |
2406
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
26 --prefix=$(PREFIX)/$(TARGET) \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
27 --disable-home-terminfo \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
28 --enable-sp-funcs \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
29 --enable-term-driver \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
30 --enable-interop \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
31 --without-debug \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
32 --without-ada \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
33 --without-manpages \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
34 --enable-pc-files \ |
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
35 --with-normal \ |
2863
54464afe91f3
Build shared version of ncurses library by converting static library.
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
36 --enable-static --disable-shared |
2406
3264ca2f154f
package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents:
2405
diff
changeset
|
37 $(MAKE) -C '$(1)' -j '$(JOBS)' install |
2863
54464afe91f3
Build shared version of ncurses library by converting static library.
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
38 if [ "$(BUILD_SHARED)" = yes ]; then \ |
54464afe91f3
Build shared version of ncurses library by converting static library.
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
39 $(MAKE_SHARED_FROM_STATIC) --ar '$(TARGET)-ar' --ld '$(TARGET)-gcc' '$(1)/lib/libncurses.a'; \ |
54464afe91f3
Build shared version of ncurses library by converting static library.
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
40 $(INSTALL) -d '$(PREFIX)/$(TARGET)/bin/'; \ |
54464afe91f3
Build shared version of ncurses library by converting static library.
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
41 $(INSTALL) -m644 '$(1)/lib/libncurses.dll.a' '$(PREFIX)/$(TARGET)/lib/libncurses.dll.a'; \ |
54464afe91f3
Build shared version of ncurses library by converting static library.
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
42 $(INSTALL) -m644 '$(1)/lib/libncurses.dll' '$(PREFIX)/$(TARGET)/bin/libncurses.dll'; \ |
54464afe91f3
Build shared version of ncurses library by converting static library.
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
43 fi |
2405 | 44 endef |