math/blas linking to gfortran with LDADD?= -lgfortran

jhell jhell at
Tue Aug 31 21:39:54 UTC 2010

Looking closer at the math/blas & math/lapack ports:

This statement does not make any sense. The logic is backwards for every
instance. And WITH_PROFILE would do.
.if !(defined(NOPROFILE) || defined(NO_PROFILE) || defined(WITHOUT_PROFILE))
PLIST_FILES+=   lib/libblas_p.a

Which is basically saying:
Add that profile lib if NOPROFILE is not defined "_p is a profiled lib
why would you want to install this if the admin has NOT defined NOPROFILE?

Second add that lib if NO_PROFILE is defined ? see previous question
still doing the wrong thing here.

Third add that lib if WITHOUT_PROFILE is defined ? see previous two
question still not doing the right thing here.

Simple following would do.
.if (defined(WITH_PROFILE)
PLIST_FILES+=   lib/libblas_p.a

Then if it is really a concern that this has to default to on, then use
the options framework to present that to the user. At least in this
instance the user will at least know whats going on.




More information about the freebsd-ports mailing list