annotate src/ncurses.mk @ 3293:cf6f40cededb

Support file list generation in packages. For the following modules: - arpack - blas - build-autoconf - build-automake - build-cmake - build-gperf - build-libtool - build-msvctools - build-pkg-config - build-texinfo - bzip2 - curl - dbus - expat - fftw - fltk - fontconfig - freetype - gettext - glpk - gmp - gnuplot - gnutls - graphicsmagick - hdf5 - jasper - jpeg - lapack - lcms - libgcrypt - libgpg_error - libiconv - libidn - libpng - libssh2 - libxml2 - ncurses - nettle - openssl - pcre - pstoedit - zlib - qhull - qrupdate - qscintilla - qt - readline - suitesparse - texinfo - tiff
author Michael Goffioul <michael.goffioul@gmail.com>
date Sat, 09 Nov 2013 23:28:04 -0500
parents 863a239f0685
children 13be64f9f16d
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 :=
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
7 $(PKG)_CHECKSUM := 3e042e5f2c7223bffdaac9646a533b8c758b65b5
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
8 $(PKG)_SUBDIR := ncurses-$($(PKG)_VERSION)
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
9 $(PKG)_FILE := ncurses-$($(PKG)_VERSION).tar.gz
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
10 $(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
11 $(PKG)_DEPS :=
2405
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
12
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
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
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
16 head -1
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
17 endef
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
18
3121
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
19 ifeq ($(MXE_SYSTEM),msvc)
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
20 $(PKG)_CONFIG_OPTS := \
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
21 --without-normal \
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
22 --with-shared \
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
23 --with-libtool
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
24 else
3035
513a8deac0f0 Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3013
diff changeset
25 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes)
513a8deac0f0 Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3013
diff changeset
26 $(PKG)_CONFIG_OPTS := --with-normal --without-shared
513a8deac0f0 Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3013
diff changeset
27 else
513a8deac0f0 Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3013
diff changeset
28 $(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
29 endif
3121
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
30 endif
3035
513a8deac0f0 Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3013
diff changeset
31
2405
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
32 define $(PKG)_BUILD
2406
3264ca2f154f package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents: 2405
diff changeset
33 cd '$(1)' && ./configure \
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-term-driver \
3264ca2f154f package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents: 2405
diff changeset
40 --enable-interop \
3264ca2f154f package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents: 2405
diff changeset
41 --without-debug \
3264ca2f154f package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents: 2405
diff changeset
42 --without-ada \
3264ca2f154f package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents: 2405
diff changeset
43 --without-manpages \
3264ca2f154f package ncurses:fix whitespace
Tony Theodore <tonyt@logyst.com>
parents: 2405
diff changeset
44 --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
45 CONFIG_SITE=/dev/null \
3035
513a8deac0f0 Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3013
diff changeset
46 $($(PKG)_CONFIG_OPTS)
513a8deac0f0 Update ncurses for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3013
diff changeset
47
3121
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
48 # 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
49 # command-line flag. Bug is reported. Disable optimization for
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
50 # the time being.
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
51 if test x$(MXE_SYSTEM) = xmsvc; then \
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
52 find '$(1)' -name Makefile \
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
53 -exec $(SED) -i 's,-\<O2\>,,' {} \; ; \
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
54 fi
21f598a028ec [MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
55
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3206
diff changeset
56 $(MAKE) -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)'
2405
7f4703a75221 new package: ncurses
Allen Choong <allencch@hotmail.com>
parents:
diff changeset
57 endef