aboutsummaryrefslogtreecommitdiff
path: root/math/librsb/Makefile
blob: 128bfa0915c94a7604562170d1e10df00cb4d017 (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
40
41
42
# Created by: stephen@FreeBSD.org
# $FreeBSD$

PORTNAME=	librsb
PORTVERSION=	1.2.0r1
PORTREVISION=	1
CATEGORIES=	math
MASTER_SITES=	SF/librsb
DISTNAME=	${PORTNAME}-${PORTVERSION:S/r/-rc/}

MAINTAINER=	stephen@FreeBSD.org
COMMENT=	Sparse matrix library

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	gsed:${PORTSDIR}/textproc/gsed \
		bash:${PORTSDIR}/shells/bash

USES=		fortran compiler:openmp gmake shebangfix
GNU_CONFIGURE=	yes
CFLAGS+=	-fPIC
CONFIGURE_ARGS=	--enable-fortran-module-install \
		--enable-matrix-types="double, double complex" \
		--with-memhinfo="${RSB_USER_SET_MEM_HIERARCHY_INFO}"
SHEBANG_FILES=	scripts/*.sh

MANUAL_PACKAGE_BUILD=	Optimizes for the local machine

pre-configure:
	@if [ -z "${RSB_USER_SET_MEM_HIERARCHY_INFO}" ]; then \
		${CAT} ${FILESDIR}/memhinfo.txt; \
		exit 1; \
	fi

post-patch:
	@${REINPLACE_CMD} -E s/sed/gsed/g ${WRKSRC}/scripts/*.sh

check regression-test test: build
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} qtests

.include <bsd.port.mk>