Full changelog: https://github.com/cglogic/gn/compare/v1600...v1714 Changelog highlights: * Rust compilation tool and toolchain support * Teach gn to handle systems with > 64 processors * Switch to C++17 * Support for RISC-V * Improve support for frameworks in gn * Speed up source file set operations PR: 244307 Submitted by: o.hushchenkov@gmail.com (maintainer)
39 lines
951 B
Makefile
39 lines
951 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= gn
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1714
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= o.hushchenkov@gmail.com
|
|
COMMENT= Gn meta build framework - standalone version
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
CONFLICTS_INSTALL= chromium-gn
|
|
|
|
USES= alias compiler:c++17-lang ninja python:build shebangfix
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= cglogic # mirror
|
|
SHEBANG_FILES= ${CONFIGURE_SCRIPT}
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_OUTSOURCE= yes
|
|
CONFIGURE_SCRIPT= build/gen.py
|
|
CONFIGURE_WRKSRC= ${WRKSRC}/out # --out-path breaks "make test"
|
|
CONFIGURE_ENV= GN_VERSION=${PORTVERSION}
|
|
CONFIGURE_ARGS= --platform freebsd ${WITH_DEBUG:D--debug}
|
|
ALL_TARGET= # empty
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's/"python"/"${PYTHON_CMD:T}"/' \
|
|
${WRKSRC}/src/gn/exec_process_unittest.cc
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
do-test:
|
|
${TEST_WRKSRC}/gn_unittests
|
|
|
|
.include <bsd.port.mk>
|