mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
402f859c5c
Reference: http://beefy2.nyi.freebsd.org/data/93amd64-default/388357/logs/librsb-1.2.0r1.log
43 lines
1013 B
Makefile
43 lines
1013 B
Makefile
# 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>
|