1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/math/p5-NetCDF/Makefile
Sunpoet Po-Chuan Hsieh a63f38bc06 - Update to 4.3.2 (from science/netcdf4)
- Bump PORTREVISION for science/netcdf shlib change and
  dependency change from science/netcdf4 to science/netcdf [1]

Changes:	http://www.unidata.ucar.edu/software/netcdf/docs/release_notes.html
Approved by:	portmgr (bapt) [1]
2014-05-03 03:17:19 +00:00

31 lines
914 B
Makefile

# Created by: Douglas K. Rand (rand@meridian-enviro.com)
# $FreeBSD$
PORTNAME= NetCDF
PORTVERSION= 1.2.4
PORTREVISION= 2
CATEGORIES= math perl5
MASTER_SITES= ftp://ftp.unidata.ucar.edu/pub/netcdf-perl/
PKGNAMEPREFIX= p5-
DISTNAME= netcdf-perl-${PORTVERSION}
MAINTAINER= rand@meridian-enviro.com
COMMENT= Perl5 module to read and write netCDF files
LIB_DEPENDS= libnetcdf.so:${PORTSDIR}/science/netcdf
USES= perl5
WRKSRC= ${WRKDIR}/${DISTNAME}/src
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPP_NETCDF=-I${LOCALBASE}/include LD_NETCDF=-lnetcdf \
PERL_MANDIR=${STAGEDIR}${MAN1PREFIX}/man PERL=${PERL5}
pre-install:
@${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' ${WRKSRC}/perl/Makefile
post-install:
-@[ -d ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto ] && ${FIND} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto -name .packlist -exec ${SED} -i '' 's|^${STAGEDIR}||' '{}' \;
.include <bsd.port.mk>