summaryrefslogtreecommitdiff
path: root/databases/couchdb/Makefile.versions
diff options
context:
space:
mode:
Diffstat (limited to 'databases/couchdb/Makefile.versions')
-rw-r--r--databases/couchdb/Makefile.versions20
1 files changed, 20 insertions, 0 deletions
diff --git a/databases/couchdb/Makefile.versions b/databases/couchdb/Makefile.versions
new file mode 100644
index 00000000000..898c20791bd
--- /dev/null
+++ b/databases/couchdb/Makefile.versions
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile.versions,v 1.1 2013/09/09 13:39:10 fhajny Exp $
+
+_VERSIONS= \
+ couch_dbupdates 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