blob: c41640acfb4a95d3a6c476a83b08e0ba17a4b1f4 (
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
38
39
40
41
42
43
44
45
|
# $FreeBSD$
PORTNAME= slepc
DISTVERSION= 3.10.1
CATEGORIES= math devel
MASTER_SITES= http://slepc.upv.es/download/distrib/
MAINTAINER= yuri@FreeBSD.org
COMMENT= Scalable Library for Eigenvalue Problem Computations
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libblas.so:math/blas \
liblapack.so:math/lapack \
libmpich.so:net/mpich \
libpetsc.so:science/PETSc
USES= gmake fortran python:2.7 shebangfix
SHEBANG_FILES= configure
SHEBANG_GLOB= *.py
MAKEFILE= makefile
MAKE_ENV= PETSC_DIR=${LOCALBASE} PETSC_ARCH="" SLEPC_DIR=${WRKSRC} PYTHON=${PYTHON_CMD}
USE_XORG= x11 # not really needed, but is inherited from the PETSc setup
USE_LDCONFIG= yes
OS_VER= ${OPSYS:tl}${OSVERSION:C/(.*)...../\\1/}
BINARY_ALIAS= python=${PYTHON_CMD}
OPTIONS_DEFINE= EXAMPLES
PORTEXAMPLES= *
do-configure:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./configure
@${REINPLACE_CMD} -e 's|^SLEPC_DESTDIR *=.*|SLEPC_DESTDIR = ${PREFIX}|' \
${WRKSRC}/installed-arch-${OS_VER}-c-debug/lib/slepc/conf/slepcvariables # otherwise it fills a wrong value for some reason
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libslepc.so.${PORTVERSION}
@${REINPLACE_CMD} -i '' -e 's|#!/usr/bin/env python|#!${PYTHON_CMD}|' \
${STAGEDIR}${PREFIX}/lib/slepc/conf/reconfigure-installed-arch-${OS_VER}-c-debug.py
.include <bsd.port.mk>
|