git: c582c6930d4f - main - astro/phd2: fix build on non-x86/non-ARM

Piotr Kubaj pkubaj at FreeBSD.org
Wed Jun 9 19:55:48 UTC 2021


The branch main has been updated by pkubaj:

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

commit c582c6930d4f38d02dc62c781a18a6495c4fbcd4
Author:     Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-06-09 19:55:41 +0000
Commit:     Piotr Kubaj <pkubaj at 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>


More information about the dev-commits-ports-main mailing list