6e5edf87e4
- Update MASTER_SITES - Use INSTALL_TARGET=install-strip instead of MAKE_ENV=INSTALL_STRIP_FLAG=${STRIP} - Bump PORTREVISION for science/hdf5 shlib change Changes: http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.14-RELEASE.txt http://www.hdfgroup.org/HDF5/doc/ADGuide/Changes.html
52 lines
1.5 KiB
Makefile
52 lines
1.5 KiB
Makefile
# Created by: Wen Heping <wenheping@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= netCDF4
|
|
PORTVERSION= 1.1.1
|
|
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:${PORTSDIR}/science/hdf5 \
|
|
libnetcdf.so:${PORTSDIR}/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_COMMIT= 08e4708
|
|
GH_PROJECT= netcdf4-python
|
|
GH_TAGNAME= v${PORTVERSION}rel
|
|
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.so
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC}/docs && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR})
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
(cd ${WRKSRC}/examples && ${INSTALL_DATA} * ${STAGEDIR}${EXAMPLESDIR})
|
|
|
|
.include <bsd.port.mk>
|