summaryrefslogtreecommitdiff
path: root/mk/omf-scrollkeeper.mk
blob: e1d7c9a19ae76a1bc031ce380fb43c9dfd565783 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# $NetBSD: omf-scrollkeeper.mk,v 1.1 2007/11/12 20:45:52 drochner Exp $
#
# This Makefile fragment is intended to be included by packages that install
# OMF files. It redirects callers to compatibility scripts provided
# by textproc/rarian.
#
# 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