view src/build-ninja.mk @ 5534:372ea4c0afb2

Move of-ocs PKG_XXXX to inst dir and add break patch * src/of-ocs-3-break-fixes.patch, src/of-ocs-4-pkgadd-fixes.patch: new files * dist-files.mk: add ref to files
author John Donoghue <john.donoghue@ieee.org>
date Sun, 13 Sep 2020 08:15:14 -0400
parents 455bb9c9a7eb
children e11a949724ef
line wrap: on
line source

# 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