summaryrefslogtreecommitdiff
path: root/textproc/scrollkeeper
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/scrollkeeper')
-rw-r--r--textproc/scrollkeeper/Makefile14
-rw-r--r--textproc/scrollkeeper/buildlink3.mk50
-rw-r--r--textproc/scrollkeeper/omf.mk4
3 files changed, 59 insertions, 9 deletions
diff --git a/textproc/scrollkeeper/Makefile b/textproc/scrollkeeper/Makefile
index b0c8558e54f..1adc9208f55 100644
--- a/textproc/scrollkeeper/Makefile
+++ b/textproc/scrollkeeper/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2004/01/24 15:13:20 grant Exp $
+# $NetBSD: Makefile,v 1.20 2004/02/11 04:35:21 xtraeme Exp $
#
DISTNAME= scrollkeeper-0.3.14
@@ -15,7 +15,7 @@ BUILD_USES_MSGFMT= yes
DEPENDS= docbook-xml>=4.2:../../textproc/docbook-xml
GNU_CONFIGURE= yes
-USE_BUILDLINK2= yes
+USE_BUILDLINK3= yes
USE_GNU_TOOLS+= make
USE_LIBTOOL= yes
USE_PKGINSTALL= yes
@@ -48,10 +48,10 @@ FILES_SUBST+= SCROLLKEEPER_REBUILDDB="${SCROLLKEEPER_REBUILDDB}"
EGDIR= ${PREFIX}/share/examples/scrollkeeper
CONF_FILES= ${EGDIR}/scrollkeeper.conf ${PKG_SYSCONFDIR}/scrollkeeper.conf
-.include "../../devel/gettext-lib/buildlink2.mk"
-.include "../../textproc/libxml2/buildlink2.mk"
-.include "../../textproc/libxslt/buildlink2.mk"
-.include "../../textproc/intltool/buildlink2.mk"
-.include "../../textproc/xmlcatmgr/buildlink2.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../textproc/libxslt/buildlink3.mk"
+.include "../../textproc/intltool/buildlink3.mk"
+.include "../../textproc/xmlcatmgr/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/scrollkeeper/buildlink3.mk b/textproc/scrollkeeper/buildlink3.mk
new file mode 100644
index 00000000000..281bcfb96c8
--- /dev/null
+++ b/textproc/scrollkeeper/buildlink3.mk
@@ -0,0 +1,50 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/02/11 04:35:21 xtraeme Exp $
+#
+# This Makefile fragment is included by packages that use scrollkeeper.
+#
+# This file was created automatically using createbuildlink-3.1.
+#
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+SCROLLKEEPER_BUILDLINK3_MK:= ${SCROLLKEEPER_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= scrollkeeper
+.endif
+
+.if !empty(SCROLLKEEPER_BUILDLINK3_MK:M+)
+BUILDLINK_PACKAGES+= scrollkeeper
+BUILDLINK_DEPENDS.scrollkeeper+= scrollkeeper>=0.3.12nb2
+BUILDLINK_PKGSRCDIR.scrollkeeper?= ../../textproc/scrollkeeper
+
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../textproc/libxslt/buildlink3.mk"
+.include "../../textproc/xmlcatmgr/buildlink3.mk"
+
+BUILDLINK_TARGETS+= scrollkeeper-buildlink-fake
+
+_SK_FAKE_UPDATE= ${BUILDLINK_DIR}/bin/scrollkeeper-update
+_SK_FAKE_REBUILDDB= ${BUILDLINK_DIR}/bin/scrollkeeper-rebuilddb
+
+scrollkeeper-buildlink-fake:
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ if [ ! -f ${_SK_FAKE_UPDATE} ]; then \
+ ${ECHO_BUILDLINK_MSG} "Creating ${_SK_FAKE_UPDATE}"; \
+ ${MKDIR} ${_SK_FAKE_UPDATE:H}; \
+ ${ECHO} "#!/bin/sh" > ${_SK_FAKE_UPDATE}; \
+ ${ECHO} "echo '[pkgsrc] Doing nothing for scrollkeeper-update' \$$*" >> ${_SK_FAKE_UPDATE}; \
+ ${CHMOD} +x ${_SK_FAKE_UPDATE}; \
+ fi
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ if [ ! -f ${_SK_FAKE_REBUILDDB} ]; then \
+ ${ECHO_BUILDLINK_MSG} "Creating ${_SK_FAKE_REBUILDDB}"; \
+ ${MKDIR} ${_SK_FAKE_REBUILDDB:H}; \
+ ${ECHO} "#!/bin/sh" > ${_SK_FAKE_REBUILDDB}; \
+ ${ECHO} "echo '[pkgsrc] Doing nothing for scrollkeeper-rebuilddb' \$$*" >> ${_SK_FAKE_REBUILDDB}; \
+ ${CHMOD} +x ${_SK_FAKE_REBUILDDB}; \
+ fi
+
+.endif # SCROLLKEEPER_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/textproc/scrollkeeper/omf.mk b/textproc/scrollkeeper/omf.mk
index d68ad268c10..7120bf694f3 100644
--- a/textproc/scrollkeeper/omf.mk
+++ b/textproc/scrollkeeper/omf.mk
@@ -1,4 +1,4 @@
-# $NetBSD: omf.mk,v 1.1 2003/02/18 14:39:03 jmmv Exp $
+# $NetBSD: omf.mk,v 1.2 2004/02/11 04:35:21 xtraeme 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
@@ -28,6 +28,6 @@ FILES_SUBST+= SCROLLKEEPER_DATADIR="${SCROLLKEEPER_DATADIR}"
FILES_SUBST+= SCROLLKEEPER_REBUILDDB="${SCROLLKEEPER_REBUILDDB}"
FILES_SUBST+= SCROLLKEEPER_UPDATEDB="${SCROLLKEEPER_UPDATEDB}"
-.include "../../textproc/scrollkeeper/buildlink2.mk"
+.include "../../textproc/scrollkeeper/buildlink3.mk"
.endif # SCROLLKEEPER_OMF_MK