Correct the call to pkgconf

In older pkgconf, pkgconf --version and pkgconf --modversion were both
printing out the version of the .pc modules, for compatibility with freedesktop
pkg-config behaviour. This compatibility has been removed in order for pkgconf to
print its own version and modversion actually is the switch to ask for the module
version
This commit is contained in:
Baptiste Daroussin 2020-06-20 14:29:28 +00:00
parent 2b0a543951
commit f8e5c8d39b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=539740

View file

@ -50,7 +50,7 @@ LDFLAGS+= -lthr
.else .else
FUSEPKG= fuse FUSEPKG= fuse
.endif .endif
FUSE_VERSION= "`pkgconf --version ${FUSEPKG} | \ FUSE_VERSION= "`pkgconf --modversion ${FUSEPKG} | \
${SED} -E 's,^([0-9]+)\.([0-9]+)\..*,\1\2,'`" ${SED} -E 's,^([0-9]+)\.([0-9]+)\..*,\1\2,'`"
.include <bsd.port.post.mk> .include <bsd.port.post.mk>