summaryrefslogtreecommitdiff
path: root/textproc/groff
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2004-07-07 19:06:23 +0000
committerdrochner <drochner@pkgsrc.org>2004-07-07 19:06:23 +0000
commit0f908e5c63cec913f401521ceb8c1cc8f5cab701 (patch)
treef069cde8916e81919483af4daaf737c6efe07c00 /textproc/groff
parent211083ce88e30942a7df2e21a1888ad831213ae3 (diff)
downloadpkgsrc-0f908e5c63cec913f401521ceb8c1cc8f5cab701.tar.gz
add this to allow pkgs to depend on groff, whether it is part of the
base system or not
Diffstat (limited to 'textproc/groff')
-rw-r--r--textproc/groff/buildlink3.mk20
-rw-r--r--textproc/groff/builtin.mk10
2 files changed, 30 insertions, 0 deletions
diff --git a/textproc/groff/buildlink3.mk b/textproc/groff/buildlink3.mk
new file mode 100644
index 00000000000..09fd4738a90
--- /dev/null
+++ b/textproc/groff/buildlink3.mk
@@ -0,0 +1,20 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/07/07 19:06:23 drochner Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+GROFF_BUILDLINK3_MK:= ${GROFF_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= groff
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ngroff}
+BUILDLINK_PACKAGES+= groff
+
+.if !empty(GROFF_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.groff+= groff>=1.19nb4
+BUILDLINK_PKGSRCDIR.groff?= ../../textproc/groff
+
+BUILDLINK_DEPMETHOD.groff?= build
+.endif # GROFF_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/textproc/groff/builtin.mk b/textproc/groff/builtin.mk
new file mode 100644
index 00000000000..29db228727a
--- /dev/null
+++ b/textproc/groff/builtin.mk
@@ -0,0 +1,10 @@
+# $NetBSD: builtin.mk,v 1.1 2004/07/07 19:06:23 drochner Exp $
+
+.if !defined(IS_BUILTIN.groff)
+IS_BUILTIN.groff= no
+. if exists(/usr/bin/groff)
+IS_BUILTIN.groff= yes
+. endif
+.endif # IS_BUILTIN.groff
+
+USE_BUILTIN.groff?= ${IS_BUILTIN.groff}