summaryrefslogtreecommitdiffstats
path: root/math/clp/Makefile
blob: fcba01a9a70c2d16a1b0f5f57bf3284b3f53e0d1 (plain)
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
# Created by: Robin Schilham
# $FreeBSD$

PORTNAME=	Clp
PORTVERSION=	1.16.10
PORTREVISION=	2
CATEGORIES=	math
MASTER_SITES=	http://www.coin-or.org/download/source/${PORTNAME}/ \
		http://www.mavetju.org/download/adopted/

MAINTAINER=	co9co9@gmail.com
COMMENT=	Linear Programming Solver

LICENSE=	EPL

BROKEN_powerpc64=	does not build

USES=		blaslapack fortran libtool tar:tgz pathfix
CXXFLAGS+=	-ffast-math

GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
TEST_TARGET=	unitTest
TEST_WRKSRC=	${WRKSRC}/${PORTNAME}

CONFIGURE_ARGS=	--with-lapack-lib="${LAPACKLIB} -L${LOCALBASE}/lib" \
		--with-blas-lib="${BLASLIB} -L${LOCALBASE}/lib" \
		--datadir=${DATADIR}

OPTIONS_DEFINE=	DEBUG
PORTDOCS=	*

DEBUG_CXXFLAGS=	-fomit-frame-pointer

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so

.include <bsd.port.mk>
OpenPOWER on IntegriCloud