Files
pkgsrc-ng/databases/couchdb/Makefile.versions
2014-11-05 12:41:07 +01:00

25 lines
628 B
Makefile

# $NetBSD: Makefile.versions,v 1.2 2014/01/02 17:10:22 fhajny Exp $
_VERSIONS= \
couch_dbupdates 0.1 \
couch_index 0.1 \
couch_mrview 0.1 \
couch_plugins 0.1 \
couch_replicator 0.1 \
ejson 0.1.0 \
ibrowse 2.2.0 \
mochiweb 1.4.1 \
snappy 1.0.5
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);}}
.endfor