1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/science/netcdf/Makefile
Rong-En Fan f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +00:00

43 lines
1021 B
Makefile

# New ports collection makefile for: netcdf
# Date created: 29 July 1999
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= netcdf
PORTVERSION= 3.6.2
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
CONFLICTS= hdf-4.*
CONFIGURE_ARGS= --enable-shared --disable-f77
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC -Df2cFortran"
USE_BZIP2= YES
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
MAN1= ncdump.1 ncgen.1
MAN3= netcdf.3
post-install:
@${STRIP_CMD} ${PREFIX}/bin/ncdump ${PREFIX}/bin/ncgen
${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
.endif
.include <bsd.port.mk>