2004-02-01 07:22:05 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.5 2004/02/01 12:22:05 sturm Exp $
|
2000-12-26 07:22:53 -05:00
|
|
|
# $FreeBSD: ports/math/netcdf/Makefile,v 1.7 2000/06/16 21:51:39 asami Exp $
|
|
|
|
#
|
|
|
|
|
2001-05-05 21:58:40 -04:00
|
|
|
COMMENT= "library for machine-independent, array-oriented data access"
|
|
|
|
|
2004-02-01 07:22:05 -05:00
|
|
|
DISTNAME= netcdf-3.5.0
|
2000-12-26 07:22:53 -05:00
|
|
|
CATEGORIES= math
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.unidata.ucar.edu/packages/netcdf/
|
|
|
|
|
|
|
|
MAINTAINER= Tom Knienieder <tom@knienieder.com>
|
|
|
|
|
2004-02-01 07:22:05 -05:00
|
|
|
# BSD-like
|
2000-12-26 07:22:53 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2004-02-01 07:22:05 -05:00
|
|
|
MASTER_SITES= ftp://unidata.ucar.edu/pub/netcdf/
|
|
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIST}/src
|
2000-12-26 07:22:53 -05:00
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu dest
|
2004-02-01 07:22:05 -05:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
2000-12-26 07:22:53 -05:00
|
|
|
|
|
|
|
MAKE_FLAGS= CPPFLAGS="-fPIC -DPIC -Df2cFortran -I${WRKSRC}/libsrc"
|
|
|
|
|
2004-02-01 07:22:05 -05:00
|
|
|
REGRESS_DEPENDS= ::math/netcdf
|
2000-12-26 07:22:53 -05:00
|
|
|
|
|
|
|
post-build:
|
|
|
|
@(cd ${WRKSRC}/libsrc && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE} linux_shared_library)
|
|
|
|
@(cd ${WRKSRC}/cxx && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE} linux_shared_library)
|
|
|
|
|
|
|
|
post-install:
|
2004-02-01 07:22:05 -05:00
|
|
|
test -f ${WRKSRC}/libsrc/libnetcdf.so && ${INSTALL_DATA} \
|
|
|
|
${WRKSRC}/libsrc/libnetcdf.so ${PREFIX}/lib/libnetcdf.so.1.0
|
|
|
|
test -f ${WRKSRC}/cxx/libnetcdf_c++.so && ${INSTALL_DATA} \
|
|
|
|
${WRKSRC}/cxx/libnetcdf_c++.so ${PREFIX}/lib/libnetcdf_c++.so.1.0
|
2000-12-26 07:22:53 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|