math/R installs the shared library lib/R/lib/libR.so Currently, this statement is needed in order to depend on it: > LIB_DEPENDS=libR.so:math/R and this statement doesn't work: > LIB_DEPENDS=R/lib/libR.so:math/R The latter statement should be used, because there is a possibility that many shared library files with the same name can be installed by the port. Framework shouldn't make an assumption that there is only one fine with this name, neither should it take liberty and always choose the first one. Additionally, this statement should also work in case the library isn't under lib/: > LIB_DEPENDS=${LOCALBASE}/full/path/to/libFoo.so:dir/portname Example: devel/rstudio (https://reviews.freebsd.org/D13139)
If you want to depend on a full path, don't use LIB_DEPENDS.