Mercurial > mxe-octave
changeset 5497:455bb9c9a7eb
Add build rule for ninja (bug #58689).
* src/build-ninja.mk: New file to build ninja.
* dist-files.mk: Add new file to list.
* index.html: Add new package to list.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 02 Jul 2020 17:31:59 +0200 |
parents | eca02b351da6 |
children | 4edf49596bf0 |
files | dist-files.mk index.html src/build-ninja.mk |
diffstat | 3 files changed, 28 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dist-files.mk Tue Jul 28 10:53:09 2020 -0400 +++ b/dist-files.mk Thu Jul 02 17:31:59 2020 +0200 @@ -38,6 +38,7 @@ build-mako.mk \ build-markupsafe.mk \ build-msvctools.mk \ + build-ninja.mk \ build-perl.mk \ build-pkg-config-1-fixes.patch \ build-pkg-config.mk \
--- a/index.html Tue Jul 28 10:53:09 2020 -0400 +++ b/index.html Thu Jul 02 17:31:59 2020 +0200 @@ -1042,6 +1042,10 @@ <td class="website"></td> </tr> <tr> + <td class="package">build-ninja</td> + <td class="website"><a href="https://ninja-build.org/">build-ninja</a></td> + </tr> + <tr> <td class="package">build-perl</td> <td class="website"><a href="http://www.perl.org">perl</a></td> </tr>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/build-ninja.mk Thu Jul 02 17:31:59 2020 +0200 @@ -0,0 +1,23 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := build-ninja +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.10.0 +$(PKG)_CHECKSUM := 7134bca607e17238d272e281ce1cae05d04be970 +$(PKG)_SUBDIR := ninja-$($(PKG)_VERSION) +$(PKG)_FILE := ninja-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := https://codeload.github.com/ninja-build/ninja/tar.gz/v$($(PKG)_VERSION) +$(PKG)_DEPS := build-python3 + +define $(PKG)_UPDATE + echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2; + echo $($(PKG)_VERSION) +endef + +define $(PKG)_BUILD + cd '$(1)' && $(PYTHON3) configure.py --bootstrap + + $(INSTALL) -d '$(3)$(BUILD_TOOLS_PREFIX)/bin' + $(INSTALL) -m755 '$(1)/ninja' '$(3)$(BUILD_TOOLS_PREFIX)/bin'; +endef