Files
2026-10-04 04:07:15 +00:00

39 lines
909 B
Makefile

PORTNAME= scipoptsuite
DISTVERSION= 10.0.0
PORTREVISION= 2
CATEGORIES= math
MASTER_SITES= https://scipopt.org/download/release/
MAINTAINER= yuri@FreeBSD.org
COMMENT= SCIP Optimization Suite
WWW= https://scipopt.org/
LICENSE= GPLv3
BUILD_DEPENDS= ${LOCALBASE}/include/boost/variant.hpp:devel/boost-libs
LIB_DEPENDS= libboost_iostreams.so:devel/boost-libs \
libcliquer.so:math/cliquer \
libgmp.so:math/gmp \
libgsl.so:math/gsl \
libipopt.so:math/ipopt \
libjansson.so:devel/jansson \
libmpfr.so:math/mpfr \
libtbb.so:devel/onetbb
USES= bison cmake compiler:c++14-lang mpi:openmpi pkgconfig readline tar:tgz
USE_LDCONFIG= yes
CMAKE_ON= BUILD_SHARED_LIBS
LDFLAGS+= -lpthread # fix build after it began breaking on 2025-11-03 for unclear reason
INSTALL_CONFLICTS= SCIP
.if exists(/usr/include/omp.h)
PLIST_SUB+= OPENMP=""
.else
PLIST_SUB+= OPENMP="@comment "
.endif
.include <bsd.port.mk>