1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00
freebsd-ports/math/slepc/Makefile
Yuri Victorovich 1e7103688e science/PETSc: Update 3.9.4->3.10.1; math/py-petsc4py: Update 3.9.1->3.10.0; math/slepc: Update 3.9.2->3.10.0; math/py-slepc4py: Update 3.9.0->3.10.0
Bump math/sundials and math/petiga.
On commit because they depend on each other and don't build unless versions match.
2018-10-02 23:11:15 +00:00

46 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= slepc
DISTVERSION= 3.10.0
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} FREEBSD_STAGEDIR=${STAGEDIR} 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>