636b8ba178
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.
41 lines
962 B
Makefile
41 lines
962 B
Makefile
# $NetBSD: buildlink3.mk,v 1.35 2015/11/25 12:54:23 jperkin Exp $
|
|
|
|
BUILDLINK_TREE+= tk
|
|
|
|
.if !defined(TK_BUILDLINK3_MK)
|
|
TK_BUILDLINK3_MK:=
|
|
|
|
BUILDLINK_API_DEPENDS.tk+= tk>=8.5.7
|
|
BUILDLINK_ABI_DEPENDS.tk+= tk>=8.6.1
|
|
BUILDLINK_PKGSRCDIR.tk?= ../../x11/tk
|
|
|
|
BUILDLINK_FILES.tk+= bin/wish*
|
|
#
|
|
# Make "-ltk" and "-ltk8.6" resolve into "-ltk86", so that we don't
|
|
# need to patch so many Makefiles.
|
|
#
|
|
BUILDLINK_TRANSFORM+= l:tk:tk86
|
|
BUILDLINK_TRANSFORM+= l:tk8.6:tk86
|
|
|
|
TKCONFIG_SH?= ${BUILDLINK_PREFIX.tk}/lib/tkConfig.sh
|
|
|
|
_TOOLS_USE_PKGSRC.wish= yes
|
|
|
|
WISH= ${LOCALBASE}/bin/wish
|
|
|
|
pkgbase := tk
|
|
.include "../../mk/pkg-build-options.mk"
|
|
|
|
.if !empty(PKG_BUILD_OPTIONS.tk:Mxft2)
|
|
. include "../../x11/libXft/buildlink3.mk"
|
|
.endif
|
|
|
|
.include "../../mk/bsd.fast.prefs.mk"
|
|
.if ${OPSYS} != "Darwin"
|
|
. include "../../x11/libX11/buildlink3.mk"
|
|
.endif
|
|
.include "../../lang/tcl/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.endif # TK_BUILDLINK3_MK
|
|
|
|
BUILDLINK_TREE+= -tk
|