aboutsummaryrefslogtreecommitdiff
path: root/math/scs/Makefile
blob: 62a0620367ed647bf0b08368572f3480ce8598b4 (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
PORTNAME=	scs
DISTVERSION=	3.2.0
CATEGORIES=	math

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Solver of convex cone problems via operator splitting
WWW=		https://github.com/cvxgrp/scs

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

USES=		gmake blaslapack:openblas fortran # fortran is for openblas
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	cvxgrp

MAKE_ARGS=	BLASLDFLAGS="-lopenblas"

ALL_TARGET=	default

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

do-test:
	cd ${WRKSRC} && \
		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} out/demo_socp_indirect && \
		out/demo_socp_indirect 50 0.3 0.3 50 && \
		${ECHO} "Test succeeded"

.include <bsd.port.mk>