summaryrefslogtreecommitdiff
path: root/textproc/rarian
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2009-01-04 18:00:58 +0000
committerwiz <wiz@pkgsrc.org>2009-01-04 18:00:58 +0000
commit55fa90af5f06165694c2b19f11de75277ea6260e (patch)
treecc54a699c1856b06ed92aefa844e4c63b8c5441a /textproc/rarian
parent9d9b84950d2ad19b8cff2f494fd4cdc25b22d26e (diff)
downloadpkgsrc-55fa90af5f06165694c2b19f11de75277ea6260e.tar.gz
Move scrollkeeper/omf.mk to rarian/omf.mk.
scrollkeeper is nowadays included in rarian, so the omf.mk file should be there as well. Adapt all references.
Diffstat (limited to 'textproc/rarian')
-rw-r--r--textproc/rarian/omf.mk40
1 files changed, 40 insertions, 0 deletions
diff --git a/textproc/rarian/omf.mk b/textproc/rarian/omf.mk
new file mode 100644
index 00000000000..ce48e5a2533
--- /dev/null
+++ b/textproc/rarian/omf.mk
@@ -0,0 +1,40 @@
+# $NetBSD: omf.mk,v 1.1 2009/01/04 18:01:01 wiz Exp $
+#
+# This Makefile fragment is intended to be included by packages that install
+# OMF files. It takes care of registering them in scrollkeeper's global
+# database.
+#
+# The following variables are automatically defined for free use in packages:
+# SCROLLKEEPER_DATADIR - scrollkeeper's data directory.
+# SCROLLKEEPER_REBUILDDB - scrollkeeper-rebuilddb binary program.
+# SCROLLKEEPER_UPDATEDB - scrollkeeper-update binary program.
+#
+
+.if !defined(SCROLLKEEPER_OMF_MK)
+SCROLLKEEPER_OMF_MK= # defined
+
+.include "../../mk/bsd.prefs.mk"
+
+# scrollkeeper's data directory.
+SCROLLKEEPER_DATADIR= ${BUILDLINK_PREFIX.rarian}/libdata/scrollkeeper
+
+# scrollkeeper binary programs.
+SCROLLKEEPER_REBUILDDB= ${BUILDLINK_PREFIX.rarian}/bin/scrollkeeper-rebuilddb
+SCROLLKEEPER_UPDATEDB= ${BUILDLINK_PREFIX.rarian}/bin/scrollkeeper-update
+
+INSTALL_TEMPLATES+= \
+ ${.CURDIR}/../../textproc/rarian/files/install-scrollkeeper.tmpl
+DEINSTALL_TEMPLATES+= \
+ ${.CURDIR}/../../textproc/rarian/files/install-scrollkeeper.tmpl
+
+FILES_SUBST+= SCROLLKEEPER_DATADIR=${SCROLLKEEPER_DATADIR:Q}
+FILES_SUBST+= SCROLLKEEPER_REBUILDDB=${SCROLLKEEPER_REBUILDDB:Q}
+FILES_SUBST+= SCROLLKEEPER_UPDATEDB=${SCROLLKEEPER_UPDATEDB:Q}
+
+PRINT_PLIST_AWK+= /^@dirrm share\/omf$$/ \
+ { print "@comment in rarian: " $$0; \
+ next; }
+
+.include "../../textproc/rarian/buildlink3.mk"
+
+.endif # SCROLLKEEPER_OMF_MK