freebsd-ports/math/cmlib/Makefile
Tobias Kortkamp 812251d9df math/cmlib: Unbreak build with GCC 10
dbocls.f:185:19:

   62 |      * 2,LMDW,MCON+MOUT, 0,RDUM,RDUM)
      |                           2
......
  185 |      * 1,J,IDUM, 2,BL(J),BU(J))
      |                   1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/REAL(4)).
dbocls.f:371:18:

   62 |      * 2,LMDW,MCON+MOUT, 0,RDUM,RDUM)
      |                           2
......
  371 |      * 1,J,IDUM,1,RW(J),RDUM)
      |                  1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/REAL(4)).
dbocls.f:423:19:

   62 |      * 2,LMDW,MCON+MOUT, 0,RDUM,RDUM)
      |                           2
......
  423 |      * 1,JP,IDUM,0,IDUM,IDUM)
      |                   1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).

http://package18.nyi.freebsd.org/data/121amd64-default-PR244494/2020-06-10_18h04m44s/logs/errors/cmlib-3.0_8.log

PR:		246700
2020-07-04 11:29:28 +00:00

54 lines
1.6 KiB
Makefile

# Created by: Anton Shterenlikht <mexas@bris.ac.uk>
# $FreeBSD$
PORTNAME= cmlib
PORTVERSION= 3.0
PORTREVISION= 8
CATEGORIES= math
MASTER_SITES= NL/blas:blas ftp://ftp.nist.gov/pub/cmlib/
# Get d1mach.f, i1mach.f, r1mach.f from BLAS, rather than from CMLIB.
# See Netlib FAQ #2.17: http://netlib.org/misc/faq.html#2.17
DISTFILES= src.tar.Z d1mach.f:blas i1mach.f:blas r1mach.f:blas
DIST_SUBDIR= cmlib
EXTRACT_ONLY= src.tar.Z
MAINTAINER= fortran@FreeBSD.org
COMMENT= NIST Core math library (CMLIB)
USES= fortran uidfix
USE_LDCONFIG= yes
SHLIB_MAJOR= 1
LDFLAGS+= ${FFLAGS}
LDADD ?= -lgfortran -lm
SRCCONF= /dev/null
MAKE_ENV= LDADD="${LDADD}" SHLIB_MAJOR="${SHLIB_MAJOR}" \
SRCCONF="${SRCCONF}"
FFLAGS+= -std=legacy
NO_WRKSUBDIR= yes
OPTIONS_DEFINE= DOCS
post-extract:
${CP} ${_DISTDIR}/[dir]1mach.f ${WRKSRC}/src/machcon
${CP} ${FILESDIR}/make.inc ${WRKSRC}
post-patch:
${REINPLACE_CMD} -e 's|../../src|src|g' ${WRKSRC}/Makefile
${REINPLACE_CMD} -e 's|../../utils|utils|g' ${WRKSRC}/Makefile
${REINPLACE_CMD} -e 's|testall :|testall : libcm|g' ${WRKSRC}/Makefile
${REINPLACE_CMD} -e 's|../../utils|utils|g' ${WRKSRC}/utils/Testall
${REINPLACE_CMD} -e 's|../../test|test|g' ${WRKSRC}/utils/Testall
${REINPLACE_CMD} -e 's|../../utils|utils|g' ${WRKSRC}/utils/Update
${REINPLACE_CMD} -e 's|../../src|src|g' ${WRKSRC}/utils/Upar
${REINPLACE_CMD} -e 's|../../utils|utils|g' ${WRKSRC}/utils/Upar
do-install:
${INSTALL_DATA} ${WRKSRC}/libcm.a ${STAGEDIR}${PREFIX}/lib
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>