mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
a9f015d155
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t GCC 8.2 under most circumstances. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, as a double check, everything INDEX-11 showed depending on lang/gcc7. PR: 231590
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= slepc
|
|
DISTVERSION= 3.10.1
|
|
PORTREVISION= 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>
|