summaryrefslogtreecommitdiff
path: root/package/ninja/Makefile
blob: 2ab4e6df17d9c8d9d7d4817436b82b6955c16b5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		ninja
PKG_VERSION:=		1.8.2
PKG_RELEASE:=		2
PKG_HASH:=		86b8700c3d0880c2b44c2ff67ce42774aaf8c28cbf57725cb881569288c1c6f4
PKG_DESCR:=		build utility
PKG_SECTION:=		dev/tools
HOST_BUILDDEP:=		python3-host
PKG_URL:=		http://www.ninja-build.org/
PKG_SITES:=		https://github.com/ninja-build/ninja/archive/

DISTFILES:=		v${PKG_VERSION}.tar.gz

PKG_CFLINE_NINJA:=	depends on ADK_HOST_ONLY

include $(ADK_TOPDIR)/mk/host.mk
include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call HOST_template,NINJA,ninja,$(PKG_VERSION)-${PKG_RELEASE}))

HOST_STYLE:=		manual

host-configure:
	(cd $(WRKBUILD); ./configure.py --bootstrap)

host-build:

ninja-hostinstall:
	$(INSTALL_BIN) $(WRKBUILD)/ninja \
	       $(STAGING_HOST_DIR)/usr/bin

include ${ADK_TOPDIR}/mk/host-bottom.mk
include ${ADK_TOPDIR}/mk/pkg-bottom.mk