ports/math/lemon/Makefile
Muhammad Moinur Rahman 95274bf4f9 */*: Fix build with llvm16 on 13.2-STABLE
As like as HEAD(14.0-RELEASE) llvm16 was merged in base for 13.2-STABLE
with the OSVERSION 1302507.

- Utilize USE_CXXSTD=c++14 or similar solution where applicable
- Update conditionals to addtionally check for OSVERSION greater than
  1302507 and less than 1400000

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
2023-07-26 02:48:20 +02:00

40 lines
927 B
Makefile

PORTNAME= lemon
DISTVERSION= 1.3.1
PORTREVISION= 4
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
WWW= https://lemon.cs.elte.hu/trac/lemon/
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_CXXSTD= c++14
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>