5e76b18444
This is a copy of the previous lang/erlang of that release, with a few bits tidied up, and configured to live alongside the newer lang/erlang package by using a versioned library directory. This version is required for at least databases/couchdb, and may be required for other software that is incompatible with OTP 23.
25 lines
982 B
Text
25 lines
982 B
Text
# $NetBSD: Makefile.versions,v 1.1 2021/01/27 16:13:51 jperkin Exp $
|
|
|
|
DIST_VERSION_MAJOR= 21
|
|
DIST_VERSION_MINOR= 3
|
|
# Only set when sources for patch level releases are published on erlang.org
|
|
DIST_VERSION_PATCH= 6
|
|
|
|
.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);}
|