pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
scdoc: add tool.mk
Module Name: pkgsrc-wip
Committed By: kikadf <kikadf.01%gmail.com@localhost>
Pushed By: kikadf
Date: Sat Dec 20 20:42:00 2025 +0100
Changeset: 97c6c1e9686d4f352542454006ae62647a0dcf21
Added Files:
scdoc/tool.mk
Log Message:
scdoc: add tool.mk
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=97c6c1e9686d4f352542454006ae62647a0dcf21
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
scdoc/tool.mk | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diffs:
diff --git a/scdoc/tool.mk b/scdoc/tool.mk
new file mode 100644
index 0000000000..9dbba8185e
--- /dev/null
+++ b/scdoc/tool.mk
@@ -0,0 +1,32 @@
+# $NetBSD: $
+#
+# This mk fragment can be included in all packages that uses `scdoc'
+# as a tool.
+#
+# Keywords: man
+#
+
+.if !defined(SCDOC_TOOL_MK)
+SCDOC_TOOL_MK= defined
+
+BUILDLINK_TARGETS+= buildlink-bin-scdoc buildlink-pkgconfig-scdoc
+
+.PHONY: buildlink-bin-scdoc
+buildlink-bin-scdoc:
+ ${RUN} \
+ f="${PREFIX}/bin/scdoc"; \
+ t="${BUILDLINK_DIR}/bin/scdoc"; \
+ if ${TEST} -f $$f -a ! -f $$t ; then \
+ ${LN} -sf $$f $$t; \
+ fi
+
+.PHONY: buildlink-pkgconfig-scdoc
+buildlink-pkgconfig-scdoc:
+ ${RUN} \
+ f="${PREFIX}/share/pkgconfig/scdoc.pc"; \
+ t="${BUILDLINK_DIR}/share/pkgconfig/scdoc.pc"; \
+ if ${TEST} -f $$f -a ! -f $$t ; then \
+ ${LN} -sf $$f $$t; \
+ fi
+
+.endif # SCDOC_TOOL_MK
Home |
Main Index |
Thread Index |
Old Index