aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2021-06-09 19:55:41 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2021-06-09 19:55:41 +0000
commitc582c6930d4f38d02dc62c781a18a6495c4fbcd4 (patch)
tree9de9d8cbfe591ca961ec961a584dfa2c47aa299e
parenta8bba36b6980a8c7d7e1ad000f8d53ffe61d70de (diff)
astro/phd2: fix build on non-x86/non-ARM
CMake Error at thirdparty/thirdparty.cmake:1349 (message): unknown system architecture
-rw-r--r--astro/phd2/Makefile6
1 files changed, 6 insertions, 0 deletions
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>