xref: /mports/math/ipopt/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1PORTNAME=	Ipopt
2DISTVERSIONPREFIX=	releases/
3DISTVERSION=	3.14.19
4CATEGORIES=	math
5
6MAINTAINER=	ports@MidnightBSD.org
7COMMENT=	Software package for large-scale nonlinear optimization
8WWW=		https://projects.coin-or.org/Ipopt
9
10LICENSE=	epl
11
12LIB_DEPENDS=	libcoinasl.so:math/asl \
13		libcoinmetis.so:math/coin-or-metis \
14		libcoinmumps.so:math/coin-or-mumps
15TEST_DEPENDS=	bash:shells/bash
16
17USES=		blaslapack compiler:c++11-lang fortran libtool pathfix \
18		pkgconfig shebangfix
19USE_LDCONFIG=	yes
20
21USE_GITHUB=	yes
22GH_ACCOUNT=	coin-or
23
24SHEBANG_FILES=	test/run_unitTests.in
25
26INSTALL_TARGET=	install-strip
27TEST_TARGET=	test
28
29GNU_CONFIGURE=	yes
30CONFIGURE_ENV+=	PKG_CONFIG_PATH=${PREFIX}/libdata/pkgconfig \
31		CXX="${CXX} -B${LOCALBASE}/bin"
32CONFIGURE_ARGS=	--with-lapack-lib="${LAPACKLIB} -L${LOCALBASE}/lib"	\
33		--with-blas-lib="${BLASLIB} -L${LOCALBASE}/lib" \
34		--disable-java
35
36CXXFLAGS+=	-ffast-math
37DEBUG_CXXFLAGS=	-fomit-frame-pointer
38
39DOCSDIR=	${PREFIX}/share/coin/doc/${PORTNAME}
40
41OPTIONS_DEFINE=		DEBUG
42
43CONFLICTS_BUILD=	coin-or-hsl # coin-or-hsl doesn't contain required by Ipopt code
44
45.include <bsd.port.pre.mk>
46
47.if ${GCC_DEFAULT} >= 10
48# workaround for Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
49FFLAGS+=	-fallow-argument-mismatch
50.endif
51
52.include <bsd.port.post.mk>
53

served by {OpenGrok

Last Index Update: Sun Mar 22 17:06:33 EDT 2026