28 lines
966 B
Makefile
28 lines
966 B
Makefile
# $NetBSD: buildlink3.mk,v 1.2 2019/04/30 22:14:57 gdt Exp $
|
|
|
|
# Note that while scons is a build tool, it requires running a python
|
|
# program on the host that uses the scons library. Currently, the
|
|
# python version on the host and the version being used on the target
|
|
# for the package being built are linked.
|
|
# \todo Consider if this can be BUILD_DEPENDS (or TOOL), instead of buildlink.
|
|
|
|
# scons scripts (SConstruct) have a number of common problems,
|
|
# including not passing environment variables set by pkgsrc to
|
|
# invocations of the compiler. See the
|
|
# /usr/pkgsrc/*/*/patch-SConstruct for typical remediations.
|
|
|
|
SCONSBIN= ${PREFIX}/bin/scons
|
|
|
|
.include "../../lang/python/pyversion.mk"
|
|
|
|
BUILDLINK_TREE+= scons
|
|
|
|
.if !defined(SCONS_BUILDLINK3_MK)
|
|
SCONS_BUILDLINK3_MK:=
|
|
|
|
BUILDLINK_DEPMETHOD.scons?= build
|
|
BUILDLINK_API_DEPENDS.scons+= ${PYPKGPREFIX}-scons>=3.0.2
|
|
BUILDLINK_PKGSRCDIR.scons?= ../../devel/scons
|
|
.endif # SCONS_BUILDLINK3_MK
|
|
|
|
BUILDLINK_TREE+= -scons
|