Lines 2-12
Link Here
|
2 |
# $FreeBSD: head/science/py-netCDF4/Makefile 348918 2014-03-24 02:45:01Z swills $ |
2 |
# $FreeBSD: head/science/py-netCDF4/Makefile 348918 2014-03-24 02:45:01Z swills $ |
3 |
|
3 |
|
4 |
PORTNAME= netCDF4 |
4 |
PORTNAME= netCDF4 |
5 |
PORTVERSION= 1.0.5 |
5 |
PORTVERSION= 1.0.8 |
6 |
PORTREVISION= 2 |
|
|
7 |
CATEGORIES= science python |
6 |
CATEGORIES= science python |
8 |
MASTER_SITES= GOOGLE_CODE |
7 |
MASTER_SITES= GH |
9 |
PROJECTHOST= netcdf4-python |
|
|
10 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
11 |
|
9 |
|
12 |
MAINTAINER= ports@FreeBSD.org |
10 |
MAINTAINER= ports@FreeBSD.org |
Lines 15-44
Link Here
|
15 |
LICENSE= MIT |
13 |
LICENSE= MIT |
16 |
|
14 |
|
17 |
BUILD_DEPENDS= ${PYNUMPY} |
15 |
BUILD_DEPENDS= ${PYNUMPY} |
18 |
LIB_DEPENDS= libhdf5.so:${PORTSDIR}/science/hdf5-18 \ |
16 |
LIB_DEPENDS= libhdf5.so.7:${PORTSDIR}/science/hdf5-18 \ |
19 |
libnetcdf.so:${PORTSDIR}/science/netcdf4 |
17 |
libnetcdf.so.7:${PORTSDIR}/science/netcdf4 |
20 |
RUN_DEPENDS= ${PYNUMPY} |
18 |
RUN_DEPENDS= ${PYNUMPY} |
21 |
|
19 |
|
22 |
OPTIONS_DEFINE= DOCS EXAMPLES |
20 |
USE_GITHUB= yes |
|
|
21 |
GH_ACCOUNT= Unidata |
22 |
GH_PROJECT= netcdf4-python |
23 |
GH_TAGNAME= v${PORTVERSION}rel |
24 |
GH_COMMIT= 1344040 |
23 |
|
25 |
|
24 |
USES= dos2unix |
|
|
25 |
DOS2UNIX_FILES= utils/nc3tonc4 |
26 |
USE_PYTHON= yes |
26 |
USE_PYTHON= yes |
27 |
USE_PYDISTUTILS= yes |
27 |
USE_PYDISTUTILS= yes |
28 |
PYDISTUTILS_AUTOPLIST= yes |
28 |
PYDISTUTILS_AUTOPLIST= yes |
29 |
MAKE_ENV= HDF5_INCDIR=${LOCALBASE}/include \ |
29 |
|
30 |
HDF5_LIBDIR=${LOCALBASE}/lib \ |
30 |
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} |
31 |
NETCDF4_INCDIR=${LOCALBASE}/include \ |
31 |
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} |
32 |
NETCDF4_LIBDIR=${LOCALBASE}/lib |
|
|
33 |
|
32 |
|
34 |
PORTDOCS= * |
33 |
PORTDOCS= * |
35 |
PORTEXAMPLES= * |
34 |
PORTEXAMPLES= * |
36 |
|
35 |
|
37 |
.include <bsd.port.options.mk> |
36 |
OPTIONS_DEFINE= DOCS EXAMPLES |
38 |
|
37 |
|
39 |
post-patch: |
38 |
post-patch: |
40 |
@${REINPLACE_CMD} -e \ |
39 |
@${ECHO_CMD} -n > ${WRKSRC}/setup.cfg |
41 |
"/dirstosearch/s|=.*|= ['${LOCALBASE}']|" ${WRKSRC}/setup.py |
40 |
@${ECHO_CMD} "[options]" >> ${WRKSRC}/setup.cfg |
|
|
41 |
@${ECHO_CMD} "use_ncconfig=True" >> ${WRKSRC}/setup.cfg |
42 |
@${ECHO_CMD} "ncconfig=${LOCALBASE}/bin/nc-config" \ |
43 |
>> ${WRKSRC}/setup.cfg |
44 |
@${ECHO_CMD} "[directories]" >> ${WRKSRC}/setup.cfg |
45 |
@${ECHO_CMD} "HDF5_libdir=${LOCALBASE}/lib" \ |
46 |
>> ${WRKSRC}/setup.cfg |
47 |
@${ECHO_CMD} "HDF5_incdir=${LOCALBASE}/include" \ |
48 |
>> ${WRKSRC}/setup.cfg |
42 |
|
49 |
|
43 |
post-install: |
50 |
post-install: |
44 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
51 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |