Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jun 2021 19:55:47 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: c582c6930d4f - main - astro/phd2: fix build on non-x86/non-ARM
Message-ID:  <202106091955.159JtlM5035642@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c582c6930d4f38d02dc62c781a18a6495c4fbcd4

commit c582c6930d4f38d02dc62c781a18a6495c4fbcd4
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-06-09 19:55:41 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-06-09 19:55:41 +0000

    astro/phd2: fix build on non-x86/non-ARM
    
    CMake Error at thirdparty/thirdparty.cmake:1349 (message):
      unknown system architecture
---
 astro/phd2/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/astro/phd2/Makefile b/astro/phd2/Makefile
index 737ed3235a42..14808df8db10 100644
--- a/astro/phd2/Makefile
+++ b/astro/phd2/Makefile
@@ -31,4 +31,10 @@ CMAKE_ARGS+=	-DUSE_SYSTEM_GTEST:BOOL=YES \
 		-DUSE_SYSTEM_LIBINDI:BOOL=YES \
 		-DUSE_SYSTEM_EIGEN3:BOOL=YES
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} != aarch64 && ${ARCH} != armv6 && ${ARCH} != armv7 && ${ARCH} != amd64 && ${ARCH} != i386
+CMAKE_ARGS+=	-DOPENSOURCE_ONLY:BOOL=YES
+.endif
+
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106091955.159JtlM5035642>