aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ninja/Makefile
blob: b8551392750d4d5ab036114e250bc1aaaf1f9156 (plain) (blame)
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
38
39
40
# Created by: Grzegorz Blach <gblach@FreeBSD.org>
# $FreeBSD$

PORTNAME=   ninja
PORTVERSION=    1.3.2
PORTEPOCH=  1
CATEGORIES= devel

MAINTAINER= gblach@FreeBSD.org
COMMENT=    Ninja is a small build system closest in spirit to Make

LICENSE=    AL2

USE_GITHUB= yes
GH_ACCOUNT= martine
GH_TAGNAME= v${PORTVERSION}
GH_COMMIT=  4956108

CONFLICTS=  irc/ninja-[0-9]*
USE_PYTHON= yes

PLIST_FILES=    bin/ninja
PORTDOCS=   COPYING HACKING.md README manual.asciidoc

.include <bsd.port.options.mk>

do-build:
    @(cd ${WRKSRC} && \
        CXX=${CXX} CFLAGS="${CXXFLAGS}" ./bootstrap.py --verbose)

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/ninja ${PREFIX}/bin
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    @(cd ${WRKSRC} && \
        ${INSTALL_DATA} COPYING HACKING.md README doc/manual.asciidoc \
        ${DOCSDIR})
.endif

.include <bsd.port.mk>