1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/science/py-netCDF4/Makefile
Sunpoet Po-Chuan Hsieh 9a1f45d861 - Update to 1.10.0
- Add LICENSE_FILE
- Remove outdated PORTSCOUT
- Re-enable SZIP option by default: it was changed unintentionally in r398300

Changes:	https://www.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.0/src/hdf5-1.10.0-RELEASE.txt
		https://www.hdfgroup.org/HDF5/doc/ADGuide/Changes.html
2016-04-20 20:42:39 +00:00

54 lines
1.5 KiB
Makefile

# Created by: Wen Heping <wenheping@gmail.com>
# $FreeBSD$
PORTNAME= netCDF4
PORTVERSION= 1.2.4
DISTVERSIONPREFIX= v
DISTVERSIONSUFFIX= rel
PORTREVISION= 1
CATEGORIES= science python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= bofh@FreeBSD.org
COMMENT= Python Interface to the NetCDF Library (versions 3 and 4)
LICENSE= MIT
BUILD_DEPENDS= ${PYNUMPY}
LIB_DEPENDS= libhdf5.so:science/hdf5 \
libnetcdf.so:science/netcdf
RUN_DEPENDS:= ${BUILD_DEPENDS}
OPTIONS_DEFINE= DOCS EXAMPLES
USES= python
USE_PYTHON= autoplist distutils
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
PORTDOCS= *
PORTEXAMPLES= *
GH_ACCOUNT= Unidata
GH_PROJECT= netcdf4-python
USE_GITHUB= yes
post-patch:
@${ECHO_CMD} -n > ${WRKSRC}/setup.cfg
@${ECHO_CMD} "[options]" >> ${WRKSRC}/setup.cfg
@${ECHO_CMD} "use_ncconfig=True" >> ${WRKSRC}/setup.cfg
@${ECHO_CMD} "ncconfig=${LOCALBASE}/bin/nc-config" >> ${WRKSRC}/setup.cfg
@${ECHO_CMD} "[directories]" >> ${WRKSRC}/setup.cfg
@${ECHO_CMD} "HDF5_libdir=${LOCALBASE}/lib" >> ${WRKSRC}/setup.cfg
@${ECHO_CMD} "HDF5_incdir=${LOCALBASE}/include" >> ${WRKSRC}/setup.cfg
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/netCDF4/_netCDF4.so
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/netcdftime/_datetime.so
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${INSTALL_DATA} * ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>