1999-07-30 14:12:53 +00:00
|
|
|
# New ports collection makefile for: netcdf
|
|
|
|
# Date created: 29 July 1999
|
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
|
|
|
#
|
1999-08-25 07:23:21 +00:00
|
|
|
# $FreeBSD$
|
1999-07-30 14:12:53 +00:00
|
|
|
#
|
|
|
|
|
2000-04-14 07:20:58 +00:00
|
|
|
PORTNAME= netcdf
|
2000-05-29 03:40:22 +00:00
|
|
|
PORTVERSION= 3.5b3
|
1999-07-30 14:12:53 +00:00
|
|
|
CATEGORIES= math
|
|
|
|
MASTER_SITES= ftp://unidata.ucar.edu/pub/netcdf/
|
2000-05-29 03:40:22 +00:00
|
|
|
DISTFILES= ${PORTNAME}-3.5-beta3.tar.Z
|
1999-07-30 14:12:53 +00:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
|
2000-05-29 03:40:22 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-3.5-beta3/src
|
2000-06-16 21:52:40 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
1999-07-30 14:12:53 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2000-05-29 03:40:22 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-fPIC -DPIC -Df2cFortran"
|
1999-07-30 14:12:53 +00:00
|
|
|
|
|
|
|
MAN1= ncdump.1 ncgen.1
|
2000-05-29 03:40:22 +00:00
|
|
|
MAN3= netcdf.3
|
1999-07-30 14:12:53 +00: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:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libsrc/libnetcdf.so ${PREFIX}/lib/libnetcdf.so.1
|
2000-05-29 03:40:22 +00:00
|
|
|
${LN} -sf libnetcdf.so.1 ${PREFIX}/lib/libnetcdf.so
|
1999-07-30 14:12:53 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/cxx/libnetcdf_c++.so ${PREFIX}/lib/libnetcdf_c++.so.1
|
2000-05-29 03:40:22 +00:00
|
|
|
${LN} -sf libnetcdf_c++.so.1 ${PREFIX}/lib/libnetcdf_c++.so
|
1999-07-30 14:12:53 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|