ports/118532: update math/clp to 1.6.0
Pedro F. Giffuni
giffunip at tutopia.com
Mon Dec 10 15:50:05 UTC 2007
>Number: 118532
>Category: ports
>Synopsis: update math/clp to 1.6.0
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Mon Dec 10 15:50:04 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: Pedro F. Giffuni
>Release: 6.3-RC1
>Organization:
>Environment:
FreeBSD kakumen.cable.net.co 6.3-RC1 FreeBSD 6.3-RC1 #6: Mon Dec 3 16:11:52 COT 2007 root at kakumen.cable.net.co:/usr/src/sys/amd64/compile/SMP amd64
>Description:
- Update to version 1.6.0
- Add BLAS and LAPACK support
- add a knob for GMPL support (through glpk)
The GMPL is not the default because it's use is not documented (it doesn't seem it can be used from the clp executable) and it depends on ports/118265.
>How-To-Repeat:
>Fix:
diff -ruN clp.orig/Makefile clp/Makefile
--- clp.orig/Makefile 2007-11-21 19:37:28.000000000 -0500
+++ clp/Makefile 2007-12-10 10:29:46.000000000 -0500
@@ -6,7 +6,7 @@
#
PORTNAME= Clp
-PORTVERSION= 1.4.0
+PORTVERSION= 1.6.0
CATEGORIES= math
MASTER_SITES= http://www.coin-or.org/download/source/Clp/
EXTRACT_SUFX= .tgz
@@ -14,7 +14,22 @@
MAINTAINER= co9co9 at gmail.com
COMMENT= Linear Programming Solver
+LIB_DEPENDS= lapack.4:${PORTSDIR}/math/lapack
+.ifdef WITH_GMPL
+LIB_DEPENDS+= glpk.9:${PORTSDIR}/math/glpk
+.endif
+
+USE_FORTRAN= yes
+
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
+CONFIGURE_ENV+= ${MAKE_ENV}
+CONFIGURE_ARGS= --with-blas="-L${LOCALBASE}/lib -lblas" \
+ --with-lapack="-L${LOCALBASE}/lib -llapack"
+.ifdef WITH_GMPL
+CONFIGURE_ARGS+= --with-gmpl-incdir=${LOCALBASE}/include/gmpl \
+ --with-gmpl-lib="-L${LOCALBASE}/lib -lglpk"
+.endif
+
.include <bsd.port.mk>
diff -ruN clp.orig/distinfo clp/distinfo
--- clp.orig/distinfo 2007-11-21 19:37:28.000000000 -0500
+++ clp/distinfo 2007-12-10 10:39:59.000000000 -0500
@@ -1,3 +1,3 @@
-MD5 (Clp-1.4.0.tgz) = e15af653c3f5db7d1943aa559d1c86af
-SHA256 (Clp-1.4.0.tgz) = 5a57b919cf76657392f16f4287271fbde72805adfe19b642c1c3fe547d8d624b
-SIZE (Clp-1.4.0.tgz) = 6884869
+MD5 (Clp-1.6.0.tgz) = 07295a5d25d33a50c32dcceb87cd3f7c
+SHA256 (Clp-1.6.0.tgz) = 6c17e2bc6dbe27be1a537299dcc21fe499bdfe078036ae73a9141b93b8351ee1
+SIZE (Clp-1.6.0.tgz) = 3103536
diff -ruN clp.orig/pkg-plist clp/pkg-plist
--- clp.orig/pkg-plist 2007-11-21 19:37:28.000000000 -0500
+++ clp/pkg-plist 2007-11-26 19:33:39.000000000 -0500
@@ -1,8 +1,12 @@
bin/clp
+include/CbcOrClpParam.hpp
include/ClpCholeskyBase.hpp
include/ClpCholeskyDense.hpp
include/ClpCholeskyWssmp.hpp
include/ClpConfig.h
+include/ClpConstraint.hpp
+include/ClpConstraintLinear.hpp
+include/ClpConstraintQuadratic.hpp
include/ClpDualRowDantzig.hpp
include/ClpDualRowPivot.hpp
include/ClpDualRowSteepest.hpp
@@ -75,6 +79,7 @@
include/CoinShallowPackedVector.hpp
include/CoinSignal.hpp
include/CoinSmartPtr.hpp
+include/CoinSnapshot.hpp
include/CoinSort.hpp
include/CoinTime.hpp
include/CoinTypes.hpp
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list