diff options
Diffstat (limited to 'science/netcdf4/Makefile')
-rw-r--r-- | science/netcdf4/Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/science/netcdf4/Makefile b/science/netcdf4/Makefile index 9455b3c9fa46..7ef4c97f6305 100644 --- a/science/netcdf4/Makefile +++ b/science/netcdf4/Makefile @@ -23,6 +23,7 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC -Df2cFor GNU_CONFIGURE= yes USE_LDCONFIG= yes CONFIGURE_ENV+= ${MAKE_ENV} +PORTDOCS= COPYRIGHT README RELEASE_NOTES MAN1= ncdump.1 ncgen.1 MAN3= netcdf.3 @@ -44,10 +45,8 @@ post-install: ${LN} -fs libnetcdf.so.4 ${PREFIX}/lib/libnetcdf.so ${LN} -fs libnetcdf_c++.so.4 ${PREFIX}/lib/libnetcdf_c++.so .if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for file in COPYRIGHT README RELEASE_NOTES - ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} -.endfor + @${INSTALL} -d ${DOCSDIR} + @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .else CONFIGURE_ARGS+= --disable-docs-install .endif |