ports/math/py-basemap/Makefile
Gerald Pfeifer ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

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, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00

43 lines
1.1 KiB
Makefile

# Created by: mainland@apeiron.net
# $FreeBSD$
PORTNAME= basemap
PORTVERSION= 1.0.7
PORTREVISION= 4
CATEGORIES= math python
MASTER_SITES= SF/matplotlib/matplotlib-toolkits/${PORTNAME}-${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= bofh@FreeBSD.org
COMMENT= Plots data on map projections with boundaries
LICENSE= GPLv2 LGPL21 MIT
LICENSE_COMB= multi
BUILD_DEPENDS= ${PYNUMPY}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR}
LIB_DEPENDS= libgeos.so:graphics/geos
USES= python
USE_PYTHON= autoplist distutils
DATADIR= ${PREFIX}/share/py-${PORTNAME}-data
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
MAKE_ENV= BASEMAP_DATA_PATH=${DATADIR}
OPTIONS_DEFINE= EXAMPLES
PORTEXAMPLES= *
post-patch:
@${GREP} -lR "share/basemap" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
-e "s,share/basemap,share/py-basemap-data,g"
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_geoslib.so
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/mpl_toolkits/basemap/_proj.so
.include <bsd.port.mk>