freebsd-ports/science/py-obspy/Makefile
Gerald Pfeifer e59c88cece Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 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, c++11-lib, c++11-lang,
   c++14-lang, c++0x, c11, or gcc-c++11-lib.

PR:		219275
2017-09-10 20:55:38 +00:00

41 lines
1.2 KiB
Makefile

# Created by: Wen Heping <wenheping@gmail.com>
# $FreeBSD$
PORTNAME= obspy
PORTVERSION= 1.0.3
PORTREVISION= 2
CATEGORIES= science python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= wen@FreeBSD.org
COMMENT= Python framework for seismological observatories
LICENSE= LGPL3
BUILD_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}scipy>=0.9.0:science/py-scipy \
${PYTHON_PKGNAMEPREFIX}future>=0.12.4:devel/py-future \
${PYTHON_PKGNAMEPREFIX}matplotlib>=1.1.0:math/py-matplotlib \
${PYTHON_PKGNAMEPREFIX}lxml>=2.2:devel/py-lxml \
${PYTHON_PKGNAMEPREFIX}suds>=0.4.0:net/py-suds \
${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests \
${PYTHON_PKGNAMEPREFIX}decorator>=0:devel/py-decorator \
${PYTHON_PKGNAMEPREFIX}sqlalchemy10>=0:databases/py-sqlalchemy10
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= fortran python shebangfix zip
SHEBANG_FILES= obspy/taup/tests/data/TauP_test_data/gendata.sh
USE_LDCONFIG= yes
LDFLAGS+= -shared
USE_PYTHON= autoplist distutils
LDFLAGS+= -shared
post-patch:
${REINPLACE_CMD} -e "s#FC#${FC}#g" ${WRKSRC}/setup.py
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/obspy/lib/*.so
.include <bsd.port.mk>