pkgsrc/lang/tcl85/buildlink3.mk
jperkin 842c8f3479 Remove mk/find-prefix.mk usage from the lang category.
The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
2015-11-25 12:51:16 +00:00

29 lines
750 B
Makefile

# $NetBSD: buildlink3.mk,v 1.3 2015/11/25 12:51:17 jperkin Exp $
BUILDLINK_TREE+= tcl
.if !defined(TCL_BUILDLINK3_MK)
TCL_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.tcl+= tcl>=8.5.7<8.6
BUILDLINK_ABI_DEPENDS.tcl+= tcl>=8.5.7<8.6
BUILDLINK_PKGSRCDIR.tcl?= ../../lang/tcl85
BUILDLINK_FILES.tcl+= bin/tclsh*
#
# Make "-ltcl" and "-ltcl8.5" resolve into "-ltcl85", so that we don't
# need to patch so many Makefiles.
#
BUILDLINK_TRANSFORM+= l:tcl:tcl85
BUILDLINK_TRANSFORM+= l:tcl8.5:tcl85
_TOOLS_USE_PKGSRC.tclsh= yes
TCLCONFIG_SH?= ${BUILDLINK_PREFIX.tcl}/lib/tclConfig.sh
TCLSH= ${BUILDLINK_PREFIX.tcl}/bin/tclsh
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.endif # TCL_BUILDLINK3_MK
BUILDLINK_TREE+= -tcl