multimedia/x265: Fix cross-build.

This commit is contained in:
riastradh 2024-01-26 03:16:46 +00:00
parent 5d4c06f1c0
commit 37c7b4fe64
1 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.36 2023/01/24 18:36:31 wiz Exp $
# $NetBSD: Makefile,v 1.37 2024/01/26 03:16:46 riastradh Exp $
DISTNAME= x265_3.5
PKGNAME= ${DISTNAME:S/_/-/}
@ -31,5 +31,12 @@ TOOL_DEPENDS+= nasm>=2.13.0:../../devel/nasm
. endif
.endif
.if ${USE_CROSS_COMPILE:tl} == "yes"
CMAKE_ARGS+= -DCMAKE_SYSTEM:STRING=${OPSYS:Q}-${OS_VERSION:Q}
CMAKE_ARGS+= -DCMAKE_SYSTEM_NAME:STRING=${OPSYS:Q}
CMAKE_ARGS+= -DCMAKE_SYSTEM_VERSION:STRING=${OS_VERSION:Q}
CMAKE_ARGS+= -DCMAKE_SYSTEM_PROCESSOR:STRING=${MACHINE_ARCH:Q}
.endif
.include "../../devel/cmake/build.mk"
.include "../../mk/bsd.pkg.mk"