Date: Sat, 3 May 2014 12:40:30 +0200 From: Tijl Coosemans <tijl@FreeBSD.org> To: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> Cc: svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org Subject: Re: svn commit: r352857 - in head/science: . netcdf-fortran Message-ID: <20140503124030.3ded39c3@kalimero.tijl.coosemans.org> In-Reply-To: <201405030320.s433KmwX011923@svn.freebsd.org> References: <201405030320.s433KmwX011923@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 3 May 2014 03:20:48 +0000 (UTC) Sunpoet Po-Chuan Hsieh wrote: > Author: sunpoet > Date: Sat May 3 03:20:47 2014 > New Revision: 352857 > URL: http://svnweb.freebsd.org/changeset/ports/352857 > QAT: https://qat.redports.org/buildarchive/r352857/ > > Log: > - Add netcdf-fortran 4.2 > > NetCDF (network Common Data Form) is an interface for array-oriented > data access and a library that provides an implementation of the > interface. The netCDF library also defines a machine-independent > format for representing scientific data. Together, the interface, > library, and format support the creation, access, and sharing of > scientific data. The netCDF software was developed at the Unidata > Program Center in Boulder, Colorado. > > Git repository: https://github.com/Unidata/netcdf-fortran > > WWW: http://www.unidata.ucar.edu/software/netcdf/ > > Added: > head/science/netcdf-fortran/ > head/science/netcdf-fortran/Makefile (contents, props changed) > head/science/netcdf-fortran/distinfo (contents, props changed) > head/science/netcdf-fortran/pkg-descr (contents, props changed) > head/science/netcdf-fortran/pkg-plist (contents, props changed) > Modified: > head/science/Makefile > > Modified: head/science/Makefile > ============================================================================== > --- head/science/Makefile Sat May 3 03:18:06 2014 (r352856) > +++ head/science/Makefile Sat May 3 03:20:47 2014 (r352857) > @@ -103,6 +103,7 @@ > SUBDIR += ncs > SUBDIR += netcdf > SUBDIR += netcdf-cxx > + SUBDIR += netcdf-fortran > SUBDIR += netcdf-ftn > SUBDIR += netcdf3-ftn > SUBDIR += netcdf4 > > Added: head/science/netcdf-fortran/Makefile > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/science/netcdf-fortran/Makefile Sat May 3 03:20:47 2014 (r352857) > @@ -0,0 +1,38 @@ > +# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> > +# $FreeBSD$ > + > +PORTNAME= netcdf-fortran > +PORTVERSION= 4.2 > +CATEGORIES= science > +MASTER_SITES= https://github.com/Unidata/${PORTNAME}/archive/ \ > + LOCAL/sunpoet > + > +MAINTAINER= sunpoet@FreeBSD.org > +COMMENT= Fortran library for machine-independent, array-oriented data access > + > +LIB_DEPENDS= libnetcdf.so:${PORTSDIR}/science/netcdf > + > +CONFLICTS= netcdf-ftn-[0-9]* netcdf3-ftn-[0-9]* > + > +CPPFLAGS+= -I${LOCALBASE}/include -fPIC -DPIC > +GNU_CONFIGURE= yes > +LDFLAGS+= -L${LOCALBASE}/lib > +MAKE_ENV= MAKEINFOFLAGS=--no-split > +MAKE_JOBS_UNSAFE= yes > +USE_AUTOTOOLS= aclocal autoconf autoheader automake libtoolize > +USE_LDCONFIG= yes > +USES= fortran libtool pathfix > +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTNAME}-${PORTVERSION} > + > +INFO= netcdf-f77 netcdf-f90 > + > +AUTOMAKE_ARGS= --add-missing > +PATHFIX_MAKEFILEIN= Makefile.am > + > +post-install: > + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libnetcdff.so.5 > + > +regression-test test: build > + cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check > + > +.include <bsd.port.mk> > > Added: head/science/netcdf-fortran/distinfo > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/science/netcdf-fortran/distinfo Sat May 3 03:20:47 2014 (r352857) > @@ -0,0 +1,2 @@ > +SHA256 (netcdf-fortran-4.2.tar.gz) = ab82c5edbb305d9ae6568eb0ac129b64bd8aca68fad4fa221ba8def399363bbb > +SIZE (netcdf-fortran-4.2.tar.gz) = 454043 > > Added: head/science/netcdf-fortran/pkg-descr > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/science/netcdf-fortran/pkg-descr Sat May 3 03:20:47 2014 (r352857) > @@ -0,0 +1,11 @@ > +NetCDF (network Common Data Form) is an interface for array-oriented > +data access and a library that provides an implementation of the > +interface. The netCDF library also defines a machine-independent > +format for representing scientific data. Together, the interface, > +library, and format support the creation, access, and sharing of > +scientific data. The netCDF software was developed at the Unidata > +Program Center in Boulder, Colorado. > + > +Git repository: https://github.com/Unidata/netcdf-fortran > + > +WWW: http://www.unidata.ucar.edu/software/netcdf/ > > Added: head/science/netcdf-fortran/pkg-plist > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/science/netcdf-fortran/pkg-plist Sat May 3 03:20:47 2014 (r352857) > @@ -0,0 +1,10 @@ > +bin/nf-config > +include/netcdf.inc > +include/netcdf.mod > +include/typesizes.mod > +lib/libnetcdff.a > +lib/libnetcdff.so > +lib/libnetcdff.so.5 > +libdata/pkgconfig/netcdf-fortran.pc > +man/man3/netcdf_f77.3.gz > +man/man3/netcdf_f90.3.gz I suspect you have to add "LIBTOOLIZE_ARGS=-i -c -f" to the Makefile such that libtoolize copies files rather than linking them. With links USES=libtool doesn't work and that's why you have libnetcdff.so.5 in pkg-plist instead of libnetcdff.so.X.Y.Z. I've opened a PR about making those LIBTOOLIZE_ARGS the default because this is currently a bit tricky.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140503124030.3ded39c3>