aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2021-04-30 08:59:51 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2021-04-30 10:09:03 +0000
commit373e06cd1dc4b0288e0b6344256ecfeda4663cee (patch)
tree5772fb756ff893fc1c5ac720e19c1482ae96169c
parent6002f9b187c1a9469cafd800cebcf3ec3b592103 (diff)
downloadports-373e06cd1dc4b0288e0b6344256ecfeda4663cee.tar.gz
ports-373e06cd1dc4b0288e0b6344256ecfeda4663cee.zip
math/lemon: Add GLPK option, remove DOCS option
GLPK license is very different, so it's better to make this dependency conditional on the port option The port doesn't install any docs.
-rw-r--r--math/lemon/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/math/lemon/Makefile b/math/lemon/Makefile
index d7b6a4ddfec1..6fa38a466249 100644
--- a/math/lemon/Makefile
+++ b/math/lemon/Makefile
@@ -1,5 +1,6 @@
PORTNAME= lemon
DISTVERSION= 1.3.1
+PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= https://lemon.cs.elte.hu/pub/sources/
PKGNAMEPREFIX= coin-or-
@@ -10,8 +11,7 @@ COMMENT= Library for Efficient Modeling and Optimization in Networks
LICENSE= BSL
LICENSE_FILE= ${WRKSRC}/LICENSE
-LIB_DEPENDS= libCbc.so:math/coinmp \
- libglpk.so:math/glpk
+LIB_DEPENDS= libCbc.so:math/coinmp
USES= cmake
USE_LDCONFIG= yes
@@ -20,9 +20,12 @@ 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= DOCS
+OPTIONS_DEFINE= GLPK
+OPTIONS_DEFAULT= GLPK
-PORTDOCS= *
+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