Hi,
I have got a report and figured that current version gathering method for devel/mongo-c-driver may not work for some use cases, such as Raivo's.
In this patch, instead of:
MONGOC_VERSION!= cd ${.CURDIR}/../../devel/mongo-c-driver; make -V DISTVERSIONwe do:
.include <bsd.port.pre.mk> (if not existent, add it since PORTSDIR variable doesn't work without it being present.)
MONGOC_VERSION!= ${MAKE} -C ${PORTSDIR}/devel/mongo-c-driver -V DISTVERSIONThanks in advance.
Reported by: Raivo Hool <raivo@lehma.com> (via PR #296605)
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296605#c3
They also stated that ${.CURDIR:H:H} wouldn't work either, so ${PORTSDIR} seems to be the way.