freebsd-ports/math/casadi/Makefile
Steve Wills fb44dca45d Fix math/openblas and bump dependent ports
* Fix build on i386 [1]
* Fix science/code_saturne build with new openblas [2]
* Avoid installing private headers [3]
* Prevent build from optimizing for host by correcting build confg [4]
* Bump portrevision of dependent ports [5]

This is correcting issues from r523749 [1][2][4] and r515970 [3]

PR:		231371
Reported by:	build cluster [1]
Reported by:	Dima Pasechnik <dimpase+freebsd@gmail.com> [2]
Reported by:	many [5]
Reviewed by:	mat, bapt
Approved by:	implicit, since this is a build fix
2020-01-30 14:17:44 +00:00

72 lines
1.8 KiB
Makefile

# $FreeBSD$
PORTNAME= casadi
DISTVERSION= 3.5.1
PORTREVISION= 1
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Symbolic framework for numeric optimization
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= cmake compiler:c++11-lang pkgconfig
USE_GITHUB= yes
USE_LDCONFIG= yes
CFLAGS+= -fPIC
CXXFLAGS+= -fPIC
CMAKE_OFF= WITH_DEEPBIND WITH_BUILD_BLASFEO
# cmake-3.16: disable build of examples (they are not installed anyways),
# and fail due to not setting up the linker environment properly:
CMAKE_OFF+= WITH_EXAMPLES
OPTIONS_DEFINE= BLASFEO BONMIN CLANG IPOPT LAPACK QPOASES
OPTIONS_DEFAULT= BLASFEO BONMIN IPOPT LAPACK QPOASES
OPTIONS_SUB= yes
BLASFEO_DESC= Build with BLASFEO
BLASFEO_CMAKE_BOOL= WITH_BLASFEO
BLASFEO_BUILD_DEPENDS= blasfeo>0:math/blasfeo
BONMIN_DESC= Build with Bonmin
BONMIN_CMAKE_BOOL= WITH_BONMIN
BONMIN_USES= blaslapack:netlib fortran
BONMIN_LIB_DEPENDS= libbonmin.so:math/bonmin \
libCbcSolver.so:math/coinmp \
libipopt.so:math/ipopt
CLANG_DESC= Build with clang for JIT
CLANG_CMAKE_BOOL= WITH_CLANG
CLANG_BROKEN= Fails to find clang
IPOPT_DESC= Build with IPopt
IPOPT_CMAKE_BOOL= WITH_IPOPT
IPOPT_USES= blaslapack:netlib fortran
IPOPT_LIB_DEPENDS= libipopt.so:math/ipopt
LAPACK_DESC= Build with LAPACK
LAPACK_CMAKE_BOOL= WITH_LAPACK
LAPACK_USES= blaslapack:openblas
QPOASES_DESC= Build with qpOASES
QPOASES_CMAKE_BOOL= WITH_QPOASES
QPOASES_LIB_DEPENDS= libopenblas.so:math/openblas
QPOASES_IMPLIES= LAPACK
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCLANG}
# use clang from ports because cmake can't find base llvm for JIT
BUILD_DEPENDS+= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
RUN_DEPENDS+= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
CPP= clang-cpp${LLVM_DEFAULT}
CC= clang${LLVM_DEFAULT}
CXX= clang++${LLVM_DEFAULT}
.endif
.include <bsd.port.mk>