Mercurial > mxe-octave
view src/ncurses.mk @ 5531:eae508c12529
Add build rule for build-octave (bug #49503).
* src/build-octave.mk: Add new build rule for build-octave which can be used for
cross-building binary packages that depend on Octave as a build tool.
* dist-files.mk: Add new file to list.
* index.html: Add new package to list.
* src/of-communications.mk, src/of-image.mk, src/of-mapping.mk,
src/of-optiminterp.mk, src/of-sparsersb.mk, src/of-statistics.mk,
src/of-windows.mk: Add optional dependency on build-octave.
* configure.ac: Add new configure switch "--disable-system-octave" that is
needed to build the build-octave package.
* Makefile.in: Add variable "USE_SYSTEM_OCTAVE". Exclude build-octave from the
default build tools and build it only if a package explicitly depends on it.
Display warning about missing native Octave version only if necessary.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 08 Sep 2020 23:04:38 +0200 |
parents | 9fb478d2036b |
children |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. # ncurses PKG := ncurses $(PKG)_IGNORE := $(PKG)_VERSION := 6.1 $(PKG)_CHECKSUM := 57acf6bc24cacd651d82541929f726f4def780cc $(PKG)_SUBDIR := ncurses-$($(PKG)_VERSION) $(PKG)_FILE := ncurses-$($(PKG)_VERSION).tar.gz $(PKG)_URL := http://ftp.gnu.org/pub/gnu/ncurses/$($(PKG)_FILE) $(PKG)_DEPS := define $(PKG)_UPDATE $(WGET) -q -O- 'http://ftp.gnu.org/pub/gnu/ncurses/?C=M;O=D' | \ $(SED) -n 's,.*<a href="ncurses-\([0-9][^"]*\)\.tar.*,\1,p' | \ head -1 endef ifeq ($(MXE_SYSTEM),msvc) $(PKG)_CONFIG_OPTS := \ --without-normal \ --with-shared \ --with-libtool else ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) $(PKG)_CONFIG_OPTS := --with-normal --without-shared else $(PKG)_CONFIG_OPTS := --with-normal $(WITH_SHARED_OR_STATIC) endif endif $(PKG)_COMMON_CONFIG_OPTS := \ $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ --prefix=$(HOST_PREFIX) \ --disable-home-terminfo \ --enable-sp-funcs \ --enable-interop \ --without-debug \ --without-ada \ --without-manpages \ --enable-pc-files \ CONFIG_SITE=/dev/null \ $($(PKG)_CONFIG_OPTS) define $(PKG)_BUILD ## Normal char version: mkdir '$(1)/.build' && cd '$(1)/.build' && ../configure \ $($(PKG)_COMMON_CONFIG_OPTS) # MSVC generates invalid code in panel library when using -O2 # command-line flag. Bug is reported. Disable optimization for # the time being. if test x$(MXE_SYSTEM) = xmsvc; then \ find '$(1)/.build' -name Makefile \ -exec $(SED) -i 's,-\<O2\>,,' {} \; ; \ fi $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$(3)' ## Wide char version: mkdir '$(1)/.build-widec' && cd '$(1)/.build-widec' && ../configure \ --enable-widec \ $($(PKG)_COMMON_CONFIG_OPTS) # MSVC generates invalid code in panel library when using -O2 # command-line flag. Bug is reported. Disable optimization for # the time being. if test x$(MXE_SYSTEM) = xmsvc; then \ find '$(1)/.build-widec' -name Makefile \ -exec $(SED) -i 's,-\<O2\>,,' {} \; ; \ fi $(MAKE) -C '$(1)/.build-widec' -j '$(JOBS)' install DESTDIR='$(3)' endef