1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/science/py-netCDF4/Makefile
Sunpoet Po-Chuan Hsieh 5930db6305 - Update to 1.1.1
- Strip shared library

Changes:	https://github.com/Unidata/netcdf4-python/blob/master/Changelog
PR:		ports/195356
Submitted by:	sunpoet (myself)
Approved by:	Muhammad Moinur Rahman <5u623l20@gmail.com> (maintainer)
2014-12-05 17:52:52 +00:00

52 lines
1.4 KiB
Makefile

# Created by: Wen Heping <wenheping@gmail.com>
# $FreeBSD$
PORTNAME= netCDF4
PORTVERSION= 1.1.1
CATEGORIES= science python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= 5u623l20@gmail.com
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>