mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
ad6b1685fd
- Fix build with gcc 4.X PR: ports/107117 Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net> (maintainer)
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
# New ports collection makefile for: netcdf
|
|
# Date created: 29 July 1999
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= netcdf
|
|
PORTVERSION= 3.6.1
|
|
CATEGORIES= science
|
|
MASTER_SITES= ftp://ftp.unidata.ucar.edu/pub/netcdf/%SUBDIR%/ \
|
|
http://sunpoet.net/distfiles/
|
|
MASTER_SITE_SUBDIR= . old
|
|
|
|
MAINTAINER= sunpoet@sunpoet.net
|
|
COMMENT= Library for machine-independent, array-oriented data access
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
|
|
CONFLICTS= hdf-4.*
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-fPIC -DPIC -Df2cFortran"
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
MAN1= ncdump.1 ncgen.1
|
|
MAN3= netcdf.3 netcdf.3f
|
|
|
|
post-build:
|
|
@(cd ${WRKSRC}/libsrc && \
|
|
${SETENV} ${MAKE_ENV} ${MAKE} linux_shared_library)
|
|
@(cd ${WRKSRC}/cxx && \
|
|
${SETENV} ${MAKE_ENV} ${MAKE} linux_shared_library)
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${PREFIX}/bin/ncdump
|
|
@${STRIP_CMD} ${PREFIX}/bin/ncgen
|
|
${INSTALL_DATA} ${WRKSRC}/libsrc/libnetcdf.so ${PREFIX}/lib/libnetcdf.so.1
|
|
${LN} -sf libnetcdf.so.1 ${PREFIX}/lib/libnetcdf.so
|
|
${INSTALL_DATA} ${WRKSRC}/cxx/libnetcdf_c++.so ${PREFIX}/lib/libnetcdf_c++.so.1
|
|
${LN} -sf libnetcdf_c++.so.1 ${PREFIX}/lib/libnetcdf_c++.so
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for file in COPYRIGHT README RELEASE_NOTES
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|