summaryrefslogtreecommitdiff
path: root/lang/libtcl-nothread/buildlink3.mk
blob: 552083abe5df521e2c173137b3832a462acb73a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $NetBSD: buildlink3.mk,v 1.2 2004/10/03 00:15:01 tv Exp $

BUILDLINK_DEPTH:=	${BUILDLINK_DEPTH}+
TCLNT_BUILDLINK3_MK:=	${TCLNT_BUILDLINK3_MK}+

.if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+=	tclnt
.endif

BUILDLINK_PACKAGES:=	${BUILDLINK_PACKAGES:Ntclnt}
BUILDLINK_PACKAGES+=	tclnt

.if !empty(TCLNT_BUILDLINK3_MK:M+)
BUILDLINK_DEPENDS.tclnt+=	libtcl-nothread>=8.4.6
BUILDLINK_RECOMMENDED.tclnt+=	libtcl-nothread>=8.4.6nb1
BUILDLINK_PKGSRCDIR.tclnt?=	../../lang/libtcl-nothread

BUILDLINK_FILES.tcl=	bin/tclsh*
#
# Make "-ltcl" and "-ltcl8.4" resolve into "-ltcl84", so that we don't
# need to patch so many Makefiles.
#
BUILDLINK_TRANSFORM+=	l:tcl:tcl84-nothread
BUILDLINK_TRANSFORM+=	l:tcl8.4:tcl84-nothread

TCLCONFIG_SH?=		${BUILDLINK_PREFIX.tcl}/lib/tclConfig-nothread.sh
BUILD_ENV+=		_TCL_NOTHREAD=yes

.endif	# TCLNT_BUILDLINK3_MK

_TCL_NOTHREAD=		yes
.include "../../lang/tcl/buildlink3.mk"

BUILDLINK_DEPTH:=	${BUILDLINK_DEPTH:S/+$//}