Mercurial > mxe-octave
annotate src/msys-dos2unix.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 | f3c8a0461199 |
children |
rev | line source |
---|---|
3260
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
1 # This file is part of MXE. |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
2 # See index.html for further information. |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
3 |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
4 PKG := msys-dos2unix |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
4731 | 6 $(PKG)_VERSION := 7.4.0-1 |
7 $(PKG)_CHECKSUM := 837734cd2a51c06dbb764f04986ebe30e31a4c15 | |
3260
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
8 $(PKG)_REMOTE_SUBDIR := dos2unix/dos2unix-$($(PKG)_VERSION) |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
9 $(PKG)_SUBDIR := |
4731 | 10 $(PKG)_FILE := dos2unix-$($(PKG)_VERSION)-msys-1.0.19-bin.tar.lzma |
3260
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
11 $(PKG)_URL := $(MSYS_EXTENSION_URL)/$($(PKG)_REMOTE_SUBDIR)/$($(PKG)_FILE)/download |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
12 $(PKG)_DEPS := |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
13 |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
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_EXTENSION_URL)/dos2unix' | \ |
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
16 $(SED) -n 's,.*title="dos2unix-\([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 |
3260
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
18 endef |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
19 |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
20 define $(PKG)_BUILD |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
21 mkdir -p '$(MSYS_EXTENSION_DIR)' |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
22 cd '$(1)' && tar cf - . | ( cd '$(MSYS_EXTENSION_DIR)'; tar xpf - ) |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
23 mkdir -p '$(MSYS_INFO_DIR)' |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
24 cd '$(1)' && find . > '$(MSYS_INFO_DIR)'/$(PKG).list |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
25 endef |