pkg.m4: add $PKG_VERSION to available variables.
@hanetzer
Submitted by hanetzer Assigned to pkg..@..op.org
Link to original bug (#104543)
Description
Created attachment 136623 pkg.m4.in-modversion.patch
Occasionally one would like to be able to query the version of a given package at build time, possibly to include into debug messages or maybe the 'help->about' menu on their app in order to list what version of a library a given program is compiled against.
Its a trivial change as far as I can see, just a two-liner patch unless there are some intricacies I'm missing. Find attached a patch showing the needed changes made as far as my admittedly limited knowledge of m4/autotools/etc shows.
Attachment 136623, "pkg.m4.in-modversion.patch":
file_104543.txt