summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
Diffstat (limited to 'textproc')
-rw-r--r--textproc/gsed/buildlink2.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/textproc/gsed/buildlink2.mk b/textproc/gsed/buildlink2.mk
new file mode 100644
index 00000000000..edd5eb2d3de
--- /dev/null
+++ b/textproc/gsed/buildlink2.mk
@@ -0,0 +1,26 @@
+# $NetBSD: buildlink2.mk,v 1.1 2003/04/16 12:52:35 jmc Exp $
+
+.if !defined(GSED_BUILDLINK2_MK)
+GSED_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= gsed
+BUILDLINK_DEPENDS.gsed?= gsed>=3.02
+BUILDLINK_PKGSRCDIR.gsed?= ../../textproc/gsed
+BUILDLINK_DEPMETHOD.gsed= build
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.gsed=gsed
+BUILDLINK_PREFIX.gsed_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.gsed= bin/${GNU_PROGRAM_PREFIX}sed
+
+BUILDLINK_TARGETS+= gsed-buildlink gsed-buildlink-bin
+
+gsed-buildlink: _BUILDLINK_USE
+
+gsed-buildlink-bin:
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ cd ${BUILDLINK_DIR}/bin; \
+ if [ ! -f sed ]; then \
+ ${LN} -fs ${GNU_PROGRAM_PREFIX}sed sed ; \
+ fi
+
+.endif # GSED_BUILDLINK2_MK