blob: a2621391c6fe801ababe2298dbacdc38eb358b15 (
plain) (
blame)
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
|
# $FreeBSD$
#
# Provide support to use the scons
#
# Feature: scons
# Usage: USES=scons
#
# MAINTAINER: python@FreeBSD.org
.if !defined(_INCLUDE_USES_SCONS_MK)
_INCLUDE_USES_SCONS_MK= yes
.if defined(scons_ARGS)
IGNORE= Incorrect 'USES+= scons:${scons_ARGS}' scons takes no arguments
.endif
MAKEFILE= #
MAKE_FLAGS= #
ALL_TARGET= #
LIBPATH?= ${LOCALBASE}/lib
CPPPATH?= ${LOCALBASE}/include
SCONS= ${LOCALBASE}/bin/scons
BUILD_DEPENDS+= ${SCONS}:${PORTSDIR}/devel/scons
MAKE_CMD?= ${SCONS}
MAKE_ENV+= PKGCONFIGDIR="${PKGCONFIGDIR}" \
CCFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" \
LIBPATH="${LIBPATH}" CPPPATH="${CPPPATH}"
.if !defined(NO_STAGE)
MAKE_ARGS+= ${DESTDIRNAME:tl}=${STAGEDIR}
.endif
.endif
|