summaryrefslogtreecommitdiff
path: root/textproc/scrollkeeper
diff options
context:
space:
mode:
authorjlam <jlam>2004-02-12 10:05:08 +0000
committerjlam <jlam>2004-02-12 10:05:08 +0000
commit45beadc4d384ec298e3ebd4c7b8b5020156d414a (patch)
treed04c9d6056e0a1f4b551f8a2c7cb8d07e7c5827a /textproc/scrollkeeper
parent4a7230a0b7e145e46a15222d7dcaff97e8805a4e (diff)
downloadpkgsrc-45beadc4d384ec298e3ebd4c7b8b5020156d414a.tar.gz
Allow this file to keep working with packages that haven't been bl3ified.
Diffstat (limited to 'textproc/scrollkeeper')
-rw-r--r--textproc/scrollkeeper/omf.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/textproc/scrollkeeper/omf.mk b/textproc/scrollkeeper/omf.mk
index 7120bf694f3..672b777535d 100644
--- a/textproc/scrollkeeper/omf.mk
+++ b/textproc/scrollkeeper/omf.mk
@@ -1,4 +1,4 @@
-# $NetBSD: omf.mk,v 1.2 2004/02/11 04:35:21 xtraeme Exp $
+# $NetBSD: omf.mk,v 1.3 2004/02/12 10:05:08 jlam 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
@@ -13,6 +13,8 @@
.if !defined(SCROLLKEEPER_OMF_MK)
SCROLLKEEPER_OMF_MK= # defined
+. include "../../mk/bsd.prefs.mk"
+
# scrollkeeper's data directory.
SCROLLKEEPER_DATADIR= ${BUILDLINK_PREFIX.scrollkeeper}/libdata/scrollkeeper
@@ -28,6 +30,12 @@ FILES_SUBST+= SCROLLKEEPER_DATADIR="${SCROLLKEEPER_DATADIR}"
FILES_SUBST+= SCROLLKEEPER_REBUILDDB="${SCROLLKEEPER_REBUILDDB}"
FILES_SUBST+= SCROLLKEEPER_UPDATEDB="${SCROLLKEEPER_UPDATEDB}"
-.include "../../textproc/scrollkeeper/buildlink3.mk"
+.if !defined(NO_BUILDLINK)
+. if !empty(USE_BUILDLINK3:M[yY][eE][sS])
+. include "../../textproc/scrollkeeper/buildlink3.mk"
+. elif empty(USE_BUILDLINK2:M[nN][oO])
+. include "../../textproc/scrollkeeper/buildlink3.mk"
+. endif
+.endif
.endif # SCROLLKEEPER_OMF_MK