1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-30 21:49:25 +00:00
freebsd-ports/science/netcdf4/Makefile
Steve Price 479bf056d3 Update to version 3.5b3.
PR:		18748
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
2000-05-29 03:40:22 +00:00

37 lines
975 B
Makefile

# New ports collection makefile for: netcdf
# Date created: 29 July 1999
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= netcdf
PORTVERSION= 3.5b3
CATEGORIES= math
MASTER_SITES= ftp://unidata.ucar.edu/pub/netcdf/
DISTFILES= ${PORTNAME}-3.5-beta3.tar.Z
MAINTAINER= ports@FreeBSD.org
WRKSRC= ${WRKDIR}/${PORTNAME}-3.5-beta3/src
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-fPIC -DPIC -Df2cFortran"
MAN1= ncdump.1 ncgen.1
MAN3= netcdf.3
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
${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
${LDCONFIG} -m ${PREFIX}/lib
.include <bsd.port.mk>