pkgsrc-wip/erlang-git/Makefile.versions

28 lines
1.1 KiB
Makefile

# $NetBSD: Makefile.versions,v 1.62 2022/12/27 16:47:52 schmonz Exp $
# When making any update to the versions below (even patch level),
# please check to see if the erlang-doc or erlang-man packages also
# need their PLISTs regenerated, as they almost always will.
DIST_VERSION_MAJOR= 26
DIST_VERSION_MINOR= 0
#DIST_VERSION_PATCH= 0
.include "versions.mk"
PLIST_SUBST+= VERSION=${DIST_VERSION_MAJOR}
.for name version in ${_VERSIONS}
VERSION.${name}= ${version}
PLIST_SUBST+= VERSION.${name}=${version}
.endfor
# Generate PLIST
.for pkg version in ${_VERSIONS}
PRINT_PLIST_AWK+= {if ($$0 ~ /\/${pkg}-${version}\//) {sub(/\/${pkg}-${version}\//,"/${pkg}-$${VERSION.${pkg}}/", $$0);}}
# documentation:
PRINT_PLIST_AWK+= {gsub(/\/${pkg}-${version}\.pdf/,"/${pkg}-$${VERSION.${pkg}}.pdf", $$0);}
.endfor
PRINT_PLIST_AWK+= {if ($$0 ~ /\/releases\/${DIST_VERSION_MAJOR}\//) {sub(/\/releases\/${DIST_VERSION_MAJOR}\//,"/releases/$${VERSION}/", $$0);}}
# documentation:
PRINT_PLIST_AWK+= {gsub(/\/otp-system-documentation-${VERSION.erts}\.pdf/,"/otp-system-documentation-$${VERSION.erts}.pdf", $$0);}