summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorjmc <jmc@pkgsrc.org>2003-04-16 12:52:35 +0000
committerjmc <jmc@pkgsrc.org>2003-04-16 12:52:35 +0000
commit7ce4cab67cc2f02c34ebb8ba265642609c1678c1 (patch)
tree71c0571982df659fd810eea96feafee4cc55295e /textproc
parentc96ed52879830f38a960babe1cb0f13360ad7518 (diff)
downloadpkgsrc-7ce4cab67cc2f02c34ebb8ba265642609c1678c1.tar.gz
Provide a buildlink structure so sed and gsed appear in buildlink/bin as some
programs require GNU sed, but refer to 'sed' directly in their scripts.
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