summaryrefslogtreecommitdiff
path: root/lang/tcl
diff options
context:
space:
mode:
Diffstat (limited to 'lang/tcl')
-rw-r--r--lang/tcl/Makefile4
-rw-r--r--lang/tcl/buildlink2.mk23
2 files changed, 25 insertions, 2 deletions
diff --git a/lang/tcl/Makefile b/lang/tcl/Makefile
index 24c55fd9bfc..ad43e09db87 100644
--- a/lang/tcl/Makefile
+++ b/lang/tcl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2002/03/20 18:04:04 jlam Exp $
+# $NetBSD: Makefile,v 1.16 2002/08/25 18:39:28 jlam Exp $
#
DISTNAME= tcl8.3.4
@@ -19,7 +19,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/unix
GNU_CONFIGURE= yes
MAKE_ENV+= TOUCH="${TOUCH}"
-USE_BUILDLINK_ONLY= yes
+USE_BUILDLINK2= yes
USE_LIBTOOL= yes
INSTALL_TARGET= install
diff --git a/lang/tcl/buildlink2.mk b/lang/tcl/buildlink2.mk
new file mode 100644
index 00000000000..47b3c3591d2
--- /dev/null
+++ b/lang/tcl/buildlink2.mk
@@ -0,0 +1,23 @@
+# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 18:39:28 jlam Exp $
+
+.if !defined(TCL_BUILDLINK2_MK)
+TCL_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= tcl
+BUILDLINK_DEPENDS.tcl?= tcl>=8.3.4
+BUILDLINK_PKGSRCDIR.tcl?= ../../lang/tcl
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.tcl=tcl
+BUILDLINK_PREFIX.tcl_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.tcl= include/tcl.h
+BUILDLINK_FILES.tcl+= include/tclDecls.h
+BUILDLINK_FILES.tcl+= include/tclPlatDecls.h
+BUILDLINK_FILES.tcl+= include/tcl/*/*.h
+BUILDLINK_FILES.tcl+= lib/libtcl83.*
+BUILDLINK_FILES.tcl+= lib/libtclstub83.*
+
+BUILDLINK_TARGETS+= tcl-buildlink
+
+tcl-buildlink: _BUILDLINK_USE
+
+.endif # TCL_BUILDLINK2_MK