7c47779cb9
${PERL5} points to a specific version of perl, say, perl5.22.1, it is fine to use it in a ports Makefile to do Perly things, but ports using it must use ${PERL}, that points to /usr/local/bin/perl so that if the minor version is updated, the shebang keep working. While there, make some ports use shebangfix, regen a few patches, and bump PORTREVISION where a shebang went from PERL5 to PERL. PR: 205367 With hat: portmgr Sponsored by: Absolight
27 lines
724 B
Makefile
27 lines
724 B
Makefile
# Created by: Douglas K. Rand (rand@meridian-enviro.com)
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= NetCDF
|
|
PORTVERSION= 1.2.4
|
|
PORTREVISION= 4
|
|
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 fakeroot
|
|
|
|
WRKSRC_SUBDIR= src
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CPP_NETCDF=-I${LOCALBASE}/include LD_NETCDF=-lnetcdf \
|
|
PERL_MANDIR=${STAGEDIR}${SITE_PERL}/man PERL=${PERL}
|
|
|
|
pre-install:
|
|
@${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' ${WRKSRC}/perl/Makefile
|
|
|
|
.include <bsd.port.mk>
|