aboutsummaryrefslogtreecommitdiff
path: root/math/lemon/Makefile
blob: d21453ebf93c8ca57060b79ed9d5730b7084050e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
PORTNAME=	lemon
DISTVERSION=	1.3.1
PORTREVISION=	3
CATEGORIES=	math
MASTER_SITES=	https://lemon.cs.elte.hu/pub/sources/
PKGNAMEPREFIX=	coin-or-

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Library for Efficient Modeling and Optimization in Networks

LICENSE=	BSL
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libCbc.so:math/cbc \
		libCgl.so:math/cgl \
		libClp.so:math/clp \
		libCoinUtils.so:math/coinutils \
		libOsi.so:math/osi

USES=		cmake
USE_LDCONFIG=	yes

CMAKE_ON=	BUILD_SHARED_LIBS

CONFLICTS_BUILD=	SoPlex # Incompatible with SoPlex-4.0.0 optional dependency: https://lemon.cs.elte.hu/trac/lemon/ticket/616

OPTIONS_DEFINE=		GLPK
OPTIONS_DEFAULT=	GLPK

GLPK_DESC=		Build with GLPK solver
GLPK_CMAKE_BOOL=	LEMON_ENABLE_GLPK
GLPK_LIB_DEPENDS=	libglpk.so:math/glpk

post-install:
	@${RM} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-0.x-to-1.x.sh

.include <bsd.port.mk>