annotate src/msys-diffutils.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 ae4193aad5fe
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2956
dfa81fbfc1f5 msys binary packages
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # This file is part of MXE.
dfa81fbfc1f5 msys binary packages
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 # See index.html for further information.
dfa81fbfc1f5 msys binary packages
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
dfa81fbfc1f5 msys binary packages
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 PKG := msys-diffutils
dfa81fbfc1f5 msys binary packages
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
3480
13be64f9f16d move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
6 $(PKG)_VERSION := 2.8.7.20071206cvs-3
2956
dfa81fbfc1f5 msys binary packages
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 $(PKG)_CHECKSUM := 674d3e0be4c8ffe84290f48ed1dd8eb21bc3f805
dfa81fbfc1f5 msys binary packages
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 $(PKG)_REMOTE_SUBDIR := diffutils/diffutils-$($(PKG)_VERSION)
dfa81fbfc1f5 msys binary packages
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 $(PKG)_SUBDIR :=
dfa81fbfc1f5 msys binary packages
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 $(PKG)_FILE := diffutils-$($(PKG)_VERSION)-msys-1.0.13-bin.tar.lzma
dfa81fbfc1f5 msys binary packages
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11 $(PKG)_URL := $(MSYS_BASE_URL)/$($(PKG)_REMOTE_SUBDIR)/$($(PKG)_FILE)/download
dfa81fbfc1f5 msys binary packages
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 $(PKG)_DEPS :=
dfa81fbfc1f5 msys binary packages
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13
dfa81fbfc1f5 msys binary packages
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 define $(PKG)_UPDATE
3561
ae4193aad5fe revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
15 $(WGET) -q -O- '$(MSYS_BASE_URL)/diffutils' | \
ae4193aad5fe revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
16 $(SED) -n 's,.*title="diffutils-\([0-9][^"]*\)".*,\1,p' | \
ae4193aad5fe revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
17 head -1
2956
dfa81fbfc1f5 msys binary packages
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 endef
dfa81fbfc1f5 msys binary packages
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19
dfa81fbfc1f5 msys binary packages
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 define $(PKG)_BUILD
dfa81fbfc1f5 msys binary packages
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 mkdir -p '$(MSYS_BASE_DIR)'
dfa81fbfc1f5 msys binary packages
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 cd '$(1)' && tar cf - . | ( cd '$(MSYS_BASE_DIR)'; tar xpf - )
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2956
diff changeset
23 mkdir -p '$(MSYS_INFO_DIR)'
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2956
diff changeset
24 cd '$(1)' && find . > '$(MSYS_INFO_DIR)'/$(PKG).list
2956
dfa81fbfc1f5 msys binary packages
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 endef