1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00
freebsd-ports/astro/phd2/Makefile
Jan Beich 1deb43e443 astro/phd2: unbreak build after 4aec6e1243
In file included from contributions/MPI_IS_gaussian_process/tests/gaussian_process/gaussian_process_test.cpp:38:
In file included from /usr/local/include/gtest/gtest.h:64:
In file included from /usr/local/include/gtest/gtest-assertion-result.h:46:
In file included from /usr/local/include/gtest/gtest-message.h:57:
/usr/local/include/gtest/internal/gtest-port.h:270:2: error: C++ versions less than C++14 are not supported.
 #error C++ versions less than C++14 are not supported.
  ^

Reported by:	pkg-fallout
2023-05-06 23:06:50 +00:00

44 lines
1.0 KiB
Makefile

PORTNAME= phd2
DISTVERSIONPREFIX=v
DISTVERSION= 2.6.10
PORTREVISION= 7
CATEGORIES= astro
MAINTAINER= acm@FreeBSD.org
COMMENT= Guiding software inspired by Stark Labs PHD Guiding
WWW= https://openphdguiding.org/
LICENSE= BSD3CLAUSE
LIB_DEPENDS= libcfitsio.so:astro/cfitsio \
libgmock.so:devel/googletest \
libindidriver.so:devel/indi \
libcurl.so:ftp/curl
RUN_DEPENDS= indiserver:devel/indi
USES= cmake eigen:3 gettext ninja pkgconfig xorg
USE_GITHUB= yes
GH_ACCOUNT= OpenPHDGuiding
USE_CXXSTD= c++14 # googletest 1.13
USE_WX= 3.2+
USE_XORG= x11
WX_COMPS= wx
CMAKE_ARGS+= -DUSE_SYSTEM_GTEST:BOOL=YES \
-DUSE_SYSTEM_CFITSIO:BOOL=YES \
-DUSE_SYSTEM_LIBUSB:BOOL=YES \
-DUSE_SYSTEM_LIBINDI:BOOL=YES \
-DUSE_SYSTEM_EIGEN3:BOOL=YES \
-DwxWidgets_CONFIG_EXECUTABLE=${LOCALBASE}/bin/wxgtk3u-3.2-config
.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>