Lines 2-26
Link Here
|
2 |
# $FreeBSD: head/science/py-netCDF4/Makefile 307818 2012-11-27 03:28:28Z bdrewery $ |
2 |
# $FreeBSD: head/science/py-netCDF4/Makefile 307818 2012-11-27 03:28:28Z bdrewery $ |
3 |
|
3 |
|
4 |
PORTNAME= netCDF4 |
4 |
PORTNAME= netCDF4 |
5 |
PORTVERSION= 1.0.2 |
5 |
PORTVERSION= 1.0.4 |
6 |
CATEGORIES= science python |
6 |
CATEGORIES= science python |
7 |
MASTER_SITES= http://netcdf4-python.googlecode.com/files/ \ |
7 |
MASTER_SITES= GOOGLE_CODE |
8 |
CHEESESHOP |
8 |
PROJECTHOST= netcdf4-python |
9 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
9 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
10 |
|
10 |
|
11 |
MAINTAINER= ports@FreeBSD.org |
11 |
MAINTAINER= ports@FreeBSD.org |
12 |
COMMENT= Python Interface to the NetCDF Library(versions 3 and 4) |
12 |
COMMENT= Python Interface to the NetCDF Library (versions 3 and 4) |
13 |
|
13 |
|
14 |
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy |
14 |
LICENSE= MIT |
15 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
15 |
LICENSE_FILE= ${WRKSRC}/COPYING |
|
|
16 |
|
17 |
BUILD_DEPENDS= ${PYNUMPY} |
16 |
LIB_DEPENDS= hdf5:${PORTSDIR}/science/hdf5-18 \ |
18 |
LIB_DEPENDS= hdf5:${PORTSDIR}/science/hdf5-18 \ |
17 |
netcdf:${PORTSDIR}/science/netcdf4 |
19 |
netcdf:${PORTSDIR}/science/netcdf4 |
|
|
20 |
RUN_DEPENDS= ${PYNUMPY} |
21 |
|
22 |
OPTIONS_DEFINE= DOCS EXAMPLES |
18 |
|
23 |
|
19 |
USE_PYTHON= 2.5+ |
24 |
USE_DOS2UNIX= utils/nc3tonc4 |
|
|
25 |
USE_PYTHON= yes |
20 |
USE_PYDISTUTILS= yes |
26 |
USE_PYDISTUTILS= yes |
|
|
27 |
MAKE_ENV= HDF5_INCDIR=${LOCALBASE}/include \ |
28 |
HDF5_LIBDIR=${LOCALBASE}/lib \ |
29 |
NETCDF4_INCDIR=${LOCALBASE}/include \ |
30 |
NETCDF4_LIBDIR=${LOCALBASE}/lib |
31 |
|
32 |
PORTDOCS= * |
33 |
PORTEXAMPLES= * |
34 |
PLIST_FILES= bin/nc3tonc4 \ |
35 |
bin/nc4tonc3 \ |
36 |
%%PYTHON_SITELIBDIR%%/netCDF4.so \ |
37 |
%%PYTHON_SITELIBDIR%%/netCDF4_utils.py \ |
38 |
%%PYTHON_SITELIBDIR%%/netCDF4_utils.pyc \ |
39 |
%%PYTHON_SITELIBDIR%%/netCDF4_utils.pyo \ |
40 |
%%PYTHON_SITELIBDIR%%/netcdftime.py \ |
41 |
%%PYTHON_SITELIBDIR%%/netcdftime.pyc \ |
42 |
%%PYTHON_SITELIBDIR%%/netcdftime.pyo |
43 |
|
44 |
.include <bsd.port.options.mk> |
21 |
|
45 |
|
22 |
post-patch: |
46 |
post-patch: |
23 |
@${REINPLACE_CMD} -e 's#/usr/local#${LOCALBASE}#g' \ |
47 |
@${REINPLACE_CMD} -e \ |
24 |
${WRKSRC}/setup.py |
48 |
"/dirstosearch/s|=.*|= ['${LOCALBASE}']|" ${WRKSRC}/setup.py |
|
|
49 |
|
50 |
post-install: |
51 |
.if ${PORT_OPTIONS:MDOCS} |
52 |
@${MKDIR} ${DOCSDIR} |
53 |
(cd ${WRKSRC}/docs && ${INSTALL_DATA} * ${DOCSDIR}) |
54 |
.endif |
55 |
.if ${PORT_OPTIONS:MEXAMPLES} |
56 |
@${MKDIR} ${EXAMPLESDIR} |
57 |
(cd ${WRKSRC}/examples && ${INSTALL_DATA} * ${EXAMPLESDIR}) |
58 |
.endif |
25 |
|
59 |
|
26 |
.include <bsd.port.mk> |
60 |
.include <bsd.port.mk> |