1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/science/py-scipy/Makefile
Piotr Kubaj b9fbf136a4 science/py-scipy: fix build on GCC architectures
/usr/local/lib/python3.7/site-packages/pybind11/include/pybind11/detail/common.h:65:6: error: #error pybind11 requires gcc 4.8 or newer

MFH:		2021Q1
2021-01-04 21:33:16 +00:00

54 lines
1.4 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= scipy
DISTVERSION= 1.5.4
PORTREVISION= 1
CATEGORIES= science python
MASTER_SITES= https://docs.scipy.org/doc/scipy-${PORTVERSION:R}.1/:doc \
CHEESESHOP:source \
SF:source
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source \
scipy-ref-${PORTVERSION:R}.1.pdf:doc
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= python@FreeBSD.org
COMMENT= Scientific tools for Python
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BUILD_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pybind11>0:devel/py-pybind11@${PY_FLAVOR}
LIB_DEPENDS= libblas.so:math/blas
RUN_DEPENDS= ${PYNUMPY}
USES= compiler:c++14-lang fortran python:3.6+ shebangfix
USE_PYTHON= autoplist concurrent distutils
FFLAGS+= -std=legacy
LDFLAGS+= -shared
PYDISTUTILS_BUILDARGS= --fcompiler=gnu95
PYDISTUTILS_CONFIGUREARGS= --fcompiler=gnu95
PORTDOCS= scipy-ref-${PORTVERSION:R}.1.pdf
SHEBANG_FILES= scipy/sparse/linalg/isolve/tests/test_gcrotmk.py
OPTIONS_DEFINE= DOCS
post-patch:
# This line help fix the plist error because autoplist list it as a file but it is a directory
@${TOUCH} ${WRKSRC}/scipy/stats/tests/data/tmp
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/scipy/ -name '*.so' | ${XARGS} ${STRIP_CMD}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>