6.0: math/lapack fails with NO_PROFILE (fix)

Brooks Davis brooks at one-eyed-alien.net
Thu Oct 13 11:18:03 PDT 2005


On Thu, Oct 13, 2005 at 11:02:04AM -0500, Scot Hetzel wrote:
> On 10/13/05, Christopher Illies <christopher.illies at ki.se> wrote:
> > On my FreeBSD 6.0 system math/lapack fails to install while I have
> > NO_PROFILE=true set in /etc/make.conf. Obviously the follwing patch
> > fixes this problem on my system:
> >
> > --- /usr/ports/math/lapack/Makefile.orig        Thu Oct 13 14:47:16
> > 2005
> > +++ /usr/ports/math/lapack/Makefile     Thu Oct 13 14:47:35 2005
> > @@ -215,7 +215,7 @@
> >        @${ECHO} "Set ENABLE_TESTING to YES to enable testing and
> > timing."
> >  .endif
> >  pre-install:
> > -.if !defined(NOPROFILE)
> > +.if !defined(NO_PROFILE)
> >        @${CAT} ${PKGDIR}/pkg-plist > ${PLIST}
> >  .else
> >        @${SED} -e /_p.a/d ${PKGDIR}/pkg-plist > ${PLIST}
> > @@ -224,7 +224,7 @@
> >  do-install:
> >        ${INSTALL_DATA} ${WRKSRC}/BLAS/SRC/libblas.* ${PREFIX}/lib
> >        ${INSTALL_DATA} ${WRKSRC}/SRC/liblapack.* ${PREFIX}/lib
> > -.if !defined(NOPROFILE)
> > +.if !defined(NO_PROFILE)
> >        ${INSTALL_DATA} ${WRKSRC}/BLAS/SRC/libblas_p.a ${PREFIX}/lib
> >        ${INSTALL_DATA} ${WRKSRC}/SRC/liblapack_p.a ${PREFIX}/lib
> >  .endif
> >
> > I seem to remember that the change from NOPROFILE to NO_PROFILE was a
> > recent change that does not apply to all versions of FreeBSD. What
> > would be the correct way to do this?
> >
> Try adding this to the port:
> 
> .if ${OSVERSION} < 600000 && defined(NOPROFILE)
> NO_PROFILE= true
> .endif

Minor nit, it might be better to do it the other way around since
eventually we'll stop supporting NOPROFILE.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20051013/aa1b1f79/attachment.bin


More information about the freebsd-ports mailing list