pkgsrc/textproc/scrollkeeper/omf.mk
jmmv e3f5102cf0 Update to 0.3.12. There have been lots of changes since 0.2 (this version
is almost a rewrite of the program).  Note that this is still a development
version but includes new features that may be required by packages using
scrollkeeper (which won't work with the old 0.2).

Provide a framework to automatically rebuild scrollkeeper's database from
packages installing OMF files under share/omf/;  they only need to include
omf.mk in their Makefile and take care to install OMF files in the said
directory.

Reviewed by rh and wiz.
2003-02-18 14:39:02 +00:00

33 lines
1.3 KiB
Makefile

# $NetBSD: omf.mk,v 1.1 2003/02/18 14:39:03 jmmv 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-updatedb binary program.
#
.if !defined(SCROLLKEEPER_OMF_MK)
SCROLLKEEPER_OMF_MK= # defined
# scrollkeeper's data directory.
SCROLLKEEPER_DATADIR= ${BUILDLINK_PREFIX.scrollkeeper}/libdata/scrollkeeper
# scrollkeeper binary programs.
SCROLLKEEPER_REBUILDDB= ${BUILDLINK_PREFIX.scrollkeeper}/bin/scrollkeeper-rebuilddb
SCROLLKEEPER_UPDATEDB= ${BUILDLINK_PREFIX.scrollkeeper}/bin/scrollkeeper-updatedb
USE_PKGINSTALL= YES
INSTALL_EXTRA_TMPL+= ${.CURDIR}/../../textproc/scrollkeeper/files/install.tmpl
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/../../textproc/scrollkeeper/files/install.tmpl
FILES_SUBST+= SCROLLKEEPER_DATADIR="${SCROLLKEEPER_DATADIR}"
FILES_SUBST+= SCROLLKEEPER_REBUILDDB="${SCROLLKEEPER_REBUILDDB}"
FILES_SUBST+= SCROLLKEEPER_UPDATEDB="${SCROLLKEEPER_UPDATEDB}"
.include "../../textproc/scrollkeeper/buildlink2.mk"
.endif # SCROLLKEEPER_OMF_MK