Commit 521a9557 authored by Yuri Victorovich's avatar Yuri Victorovich
Browse files

science/plumed: Add missing dependencies and binary alias which fixes most tests.

parent e8cc50a1
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
PORTNAME=	plumed
DISTVERSIONPREFIX=	v
DISTVERSION=	2.8b
PORTREVISION=	1
CATEGORIES=	science graphics

MAINTAINER=	yuri@FreeBSD.org
@@ -12,9 +13,14 @@ LICENSE_FILE= ${WRKSRC}/COPYING.LESSER
BROKEN_i386=	undefined reference to `__atomic_load'

BUILD_DEPENDS=	bash:shells/bash
LIB_DEPENDS=	libblas.so:math/blas \
		libfftw3.so:math/fftw3 \
		libgsl.so:math/gsl \
		liblapack.so:math/lapack
RUN_DEPENDS=	bash:shells/bash
TEST_DEPENDS=	gawk:lang/gawk

USES=		autoreconf compiler:c++11-lang gmake pkgconfig shebangfix
USES=		autoreconf compiler:c++11-lang gmake localbase pkgconfig shebangfix
USE_LDCONFIG=	yes

SHEBANG_GLOB=	*.sh
@@ -31,7 +37,9 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS=	--enable-shared --disable-python

TEST_TARGET=	check # the 'installcheck' target checks installed version
# 27 tests are known to fail: https://github.com/plumed/plumed2/issues/782
# 1 test is known to fail: https://github.com/plumed/plumed2/issues/782

BINARY_ALIAS=	make=${GMAKE} # only needed for tests

post-patch:
	@${REINPLACE_CMD} -e 's|#! /bin/bash|#! ${LOCALBASE}/bin/bash|' ${WRKSRC}/src/lib/Makefile