blob: 34ed0de534a5f2601949b7d334e2c7eca23e10fa (
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
38
39
|
# New ports collection makefile for: Clp
# Date created: 22 July 2007
# Whom: Robin Schilham
#
# $FreeBSD$
#
PORTNAME= Clp
PORTVERSION= 1.7.4
CATEGORIES= math
MASTER_SITES= http://www.coin-or.org/download/source/Clp/ \
http://www.mavetju.org/download/adopted/
EXTRACT_SUFX= .tgz
MAINTAINER= co9co9@gmail.com
COMMENT= Linear Programming Solver
LIB_DEPENDS= lapack.4:${PORTSDIR}/math/lapack
.ifdef WITH_GMPL
LIB_DEPENDS+= glpk.14:${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 \
--with-gmpl-lib="-L${LOCALBASE}/lib -lglpk"
.endif
regression-test:
(cd ${WRKSRC}/Clp && ${MAKE} unitTest )
.include <bsd.port.mk>
|