freebsd-ports/devel/ninja/Makefile
Grzegorz Blach d9aafdf41c - Update devel/ninja to 1.6.0
- Remove devel/ninja16
- Replace files/patch-configure.py with REINPLACE_CMD
- Move share/doc/ninja/COPYING
  to share/licenses/ninja-${PKGVERSION}/APACHE20
2015-08-29 14:40:37 +00:00

41 lines
890 B
Makefile

# Created by: Grzegorz Blach <gblach@FreeBSD.org>
# $FreeBSD$
PORTNAME= ninja
PORTVERSION= 1.6.0
DISTVERSIONPREFIX= v
PORTEPOCH= 2
CATEGORIES= devel
MAINTAINER= gblach@FreeBSD.org
COMMENT= Ninja is a small build system closest in spirit to Make
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/COPYING
USE_GITHUB= yes
GH_ACCOUNT= martine
CONFLICTS= irc/ninja-[0-9]*
USES= python:build
PLIST_FILES= bin/ninja
PORTDOCS= HACKING.md README manual.asciidoc
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} "s/'-g', //" ${WRKSRC}/configure.py
do-build:
@(cd ${WRKSRC} && \
CXX="${CXX}" CFLAGS="${CXXFLAGS}" ${PYTHON_CMD} configure.py --bootstrap)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ninja ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && \
${INSTALL_DATA} HACKING.md README doc/manual.asciidoc \
${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>