mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
0eaae11a7b
Changelog: https://github.com/cglogic/gn/compare/v1823...v1897 PR: 255365 Submitted by: Oleh Hushchenkov <o.hushchenkov@gmail.com> (maintainer)
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# Created by: Oleh Hushchenkov <o.hushchenkov@gmail.com>
|
|
|
|
PORTNAME= gn
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1897
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= o.hushchenkov@gmail.com
|
|
COMMENT= Gn meta build framework - standalone version
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BROKEN_riscv64= fails to build: ../src/util/build_config.h:168:2: Please add support for your architecture in build_config.h
|
|
|
|
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_SCRIPT= build/gen.py
|
|
CONFIGURE_ARGS= --platform freebsd ${WITH_DEBUG:D--debug}
|
|
CONFIGURE_ENV= GN_VERSION=${PORTVERSION}
|
|
CONFIGURE_OUTSOURCE= yes
|
|
ALL_TARGET= # empty
|
|
|
|
CONFLICTS_INSTALL= chromium-gn
|
|
|
|
CONFIGURE_WRKSRC= ${WRKSRC}/out # --out-path breaks "make test"
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's/"python3"/"${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>
|