842c8f3479
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.
33 lines
942 B
Makefile
33 lines
942 B
Makefile
# $NetBSD: buildlink3.mk,v 1.2 2015/11/25 12:51:17 jperkin Exp $
|
|
|
|
BUILDLINK_TREE+= gcc5
|
|
|
|
.if !defined(GCC5_BUILDLINK3_MK)
|
|
GCC5_BUILDLINK3_MK:=
|
|
|
|
BUILDLINK_API_DEPENDS.gcc5+= gcc5>=${_GCC_REQD}
|
|
BUILDLINK_ABI_DEPENDS.gcc5+= gcc5>=5.1
|
|
BUILDLINK_PKGSRCDIR.gcc5= ../../lang/gcc5
|
|
BUILDLINK_DEPMETHOD.gcc5?= build
|
|
|
|
BUILDLINK_PASSTHRU_DIRS+= ${BUILDLINK_PREFIX.gcc5}/gcc5
|
|
|
|
BUILDLINK_FILES.gcc5= #empty
|
|
BUILDLINK_AUTO_VARS.gcc5= no
|
|
|
|
# Packages that link against shared libraries need a full dependency.
|
|
#.if defined(_USE_GCC_SHLIB)
|
|
#DEPENDS+= {gcc5, gcc5-libs}>=${_GCC_REQD}:../../lang/gcc5-libs
|
|
#ABI_DEPENDS+= {gcc5,gcc5-libs}>=5.1.0:../../lang/gcc5-libs
|
|
#.endif
|
|
|
|
pkgbase := gcc5
|
|
.include "../../mk/pkg-build-options.mk"
|
|
.if !empty(PKG_BUILD_OPTIONS.gcc5:Mgcc-java)
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.endif
|
|
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.endif # GCC5_BUILDLINK3_MK
|
|
BUILDLINK_TREE+= -gcc5
|