1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/math/lapack95/Makefile
Gerald Pfeifer a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
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
2018-12-12 01:35:33 +00:00

83 lines
2.2 KiB
Makefile

# Created by: NAKATA, Maho <maho@FreeBSD.org>
# $FreeBSD$
PORTNAME= lapack95
PORTVERSION= 1.0
PORTREVISION= 16
CATEGORIES= math
MASTER_SITES= NL
DISTNAME= ${PORTNAME}
DIST_SUBDIR= lapack95
MAINTAINER= ports@FreeBSD.org
COMMENT= LAPACK95, Fortran90/95 wrapper for LAPACK
USES= fortran tar:tgz
OPTIONS_DEFINE= EXAMPLES
OPTIONS_RADIO= BLAS
OPTIONS_RADIO_BLAS= REFERENCE ATLAS
OPTIONS_DEFAULT= REFERENCE
REFERENCE_DESC= Blas / Lapack
REFERENCE_USES= blaslapack:netlib
ATLAS_DESC= ATLAS
ATLAS_USES= blaslapack:atlas
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/LAPACK95
MAKE_JOBS_UNSAFE=yes
.include <bsd.port.options.mk>
.if ${ARCH} == "sparc64"
PICFLAG?= -fPIC
.else
PICFLAG?= -fpic
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
PORTEXAMPLES= make.inc EXAMPLES1 EXAMPLES2
.endif
pre-configure:
${REINPLACE_CMD} -e 's|%%BLAS%%|${BLASLIB}|g ; \
s|%%FC%%|${FC}|g ; \
s|%%FFLAGS%%|${FFLAGS} $${PICFLAG}|g ; \
s|%%LAPACK%%|${LAPACKLIB}|g ; \
s|%%LDFLAGS%%|${LDFLAGS}|g ; \
s|%%LOCALBASE%%|${LOCALBASE}|g ; \
s|%%PREFIX%%|${PREFIX}|g' \
${WRKSRC}/make.inc
${REINPLACE_CMD} -e 's|ranlib|${RANLIB}|g ; \
s|ar cr|${AR} cr|g' \
${WRKSRC}/SRC/makefile \
${WRKSRC}/TESTING/makefile \
${WRKSRC}/EXAMPLES1/makefile*
${MKDIR} ${WRKSRC}/lapack95_modules
${CP} -r ${WRKSRC} ${WRKSRC}_SHARED
do-build:
cd ${WRKSRC}/SRC; ${SETENV} ${MAKE_ENV} PICFLAG= \
${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} single_double_complex_dcomplex
cd ${WRKSRC}_SHARED/SRC; ${SETENV} ${MAKE_ENV} PICFLAG=${PICFLAG} \
${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} single_double_complex_dcomplex
cd ${WRKSRC}_SHARED ; ${LD} -Bshareable -o liblapack95.so.1 -x -soname \
liblapack95.so.1 --whole-archive lapack95.a
do-install:
${INSTALL_DATA} ${WRKSRC}/lapack95.a ${STAGEDIR}${PREFIX}/lib/liblapack95.a
${INSTALL_LIB} ${WRKSRC}_SHARED/liblapack95.so.1 ${STAGEDIR}${PREFIX}/lib
${LN} -sf liblapack95.so.1 ${STAGEDIR}${PREFIX}/lib/liblapack95.so
${MKDIR} ${STAGEDIR}${PREFIX}/lib/lapack95_modules
${INSTALL_DATA} ${WRKSRC}_SHARED/lapack95_modules/*.mod ${STAGEDIR}${PREFIX}/lib/lapack95_modules
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTEXAMPLES}" ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>