summaryrefslogtreecommitdiff
path: root/math/scs/Makefile
blob: cbc0b33d8febfdb18710c6c6d231ab45644eefb2 (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
# $FreeBSD$

PORTNAME=	scs
DISTVERSIONPREFIX=	v
DISTVERSION=	2.0.2-22
DISTVERSIONSUFFIX=	-gb03e156
CATEGORIES=	math

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Solver of convex cone problems via operator splitting

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

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

MAKE_ARGS=	BLASLDFLAGS="-lopenblas"

ALL_TARGET=	out/libscsdir.so out/libscsindir.so

HEADERS=	accel.h cones.h cs.h ctrlc.h glbopts.h linalg.h linsys.h normalize.h scs.h util.h

PLIST_FILES=	${ALL_TARGET:S/out/lib/} ${HEADERS:S/^/include\/${PORTNAME}\//}

do-install:
.for so in ${ALL_TARGET}
	${INSTALL_LIB} ${WRKSRC}/${so} ${STAGEDIR}${PREFIX}/lib
.endfor
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME}
.for h in ${HEADERS}
	${INSTALL_DATA} ${WRKSRC}/include/${h} ${STAGEDIR}${PREFIX}/include/${PORTNAME}
.endfor

.include <bsd.port.mk>